Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2007
    Location
    Upstate New York
    Posts
    15
    Plugin Contributions
    0

    red flag Fatal Error on my Admin/login.php page

    My customer called me today to report that he can't login to the admin portion of the site. Instead of seeing a login box, there is a page full of raw php code, followed by an error code:
    here is the code at the bottom as it appears:

    Fatal error: Call to undefined function: zen_get_top_level_domain() in /home/content/t/e/r/terrysmith8499/html/admin/includes/init_includes/init_tlds.php on line 13

    I've tried uploading fresh copies of admin.php, index.php, and the init_tlds.php file mentioned in the error code.

    Any suggestions? I've out of ideas.
    Terry Smith
    [FONT=Arial Black]
    [/FONT]

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,285
    Plugin Contributions
    0

    Default Re: Fatal Error on my Admin/login.php page

    upload admin/includes/functions/general.php file , you might have missing or corrupted files. , if that didn't solve the problem , upload entire admin folder ..

  3. #3
    Join Date
    Jan 2007
    Location
    Upstate New York
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error on my Admin/login.php page

    I tried to upload just a fresh copy of the general.php file, and it got rid of the page full of text, but replaced it with another error code. I then tried uploaded the whole admin folder. Now I get a generic:

    Page Load Error: Firefox can't establish a connection to the server at ncuniforms.com. Do I need to reset some settings at this point to reconnect to the server?
    Terry Smith
    [FONT=Arial Black]
    [/FONT]

  4. #4
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,285
    Plugin Contributions
    0

    Default Re: Fatal Error on my Admin/login.php page

    admin / include / configure.php file , this might be missing . do you have a backup copy of this file ?
    check your server and see if that file exist within mentioned path .. if not you need to upload a copy

  5. #5
    Join Date
    Jan 2007
    Location
    Upstate New York
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error on my Admin/login.php page

    configure.php is in the admin/includes folder. here is the content of that file:


    //
    /**
    *
    * @package Configuration Settings
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // Main webserver: eg, http://localhost - should not be empty for productive servers
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    /*
    * URLs for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    */
    define('HTTP_SERVER', 'http://ncuniforms.com');
    define('HTTPS_SERVER', 'https://ncuniforms.com');
    define('HTTP_CATALOG_SERVER', 'http://ncuniforms.com');
    define('HTTPS_CATALOG_SERVER', 'https://ncuniforms.com');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/home/content/t/e/r/terrysmith8499/html/admin/');
    define('DIR_FS_CATALOG', '/home/content/t/e/r/terrysmith8499/html/');

    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'p41mysql77.secureserver.net');
    define('DB_SERVER_USERNAME', 'ncuniforms');
    define('DB_SERVER_PASSWORD', 'jrZYx8zzU8');
    define('DB_DATABASE', 'ncuniforms');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/content/t/e/r/terrysmith8499/html/cache');

    ?>

    see any issues here at all? thanks for the help.
    Terry Smith
    [FONT=Arial Black]
    [/FONT]

  6. #6
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,285
    Plugin Contributions
    0

    Default Re: Fatal Error on my Admin/login.php page

    i see no issue . you are well advised at this point to rename admin folder and change your user name and pass for your database connection since you have posted everything here ..
    if you have time you might be able to edit your post and remove those entries ASAP

  7. #7
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,285
    Plugin Contributions
    0

    Default Re: Fatal Error on my Admin/login.php page

    do you get that error when you go to admin login page or loading admin interface ?
    i can get to your login page with no problem. you can clear your browser catch and see if that any help .

  8. #8
    Join Date
    Jan 2007
    Location
    Upstate New York
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error on my Admin/login.php page

    didnt realize how much information I was posting. i no longer have access to edit the post.
    i'll have to rename the folder I suppose. This site has run flawlessly for 2 years, and now I'm very rusty on editing and updating it as the customer rarely calls me, and this the only currect zencart site I have online.

    Very frustrating.
    Terry Smith
    [FONT=Arial Black]
    [/FONT]

  9. #9
    Join Date
    Jan 2007
    Location
    Upstate New York
    Posts
    15
    Plugin Contributions
    0

    Default Re: Fatal Error on my Admin/login.php page

    cleared cache - works fine now. Thanks for all your help. If I rename my admin folder, will I have to change settings elsewhere to access the admin site correctly?
    Terry Smith
    [FONT=Arial Black]
    [/FONT]

  10. #10
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,285
    Plugin Contributions
    0

    Default Re: Fatal Error on my Admin/login.php page

    i can not offer much at this point , just make sure you also change your mysql database information and update the info in both configure.php files
    include / configure.php
    admin / include / configure.php

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Fatal error during admin login
    By meeven in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 28 Jan 2010, 06:25 AM
  2. Fatal Error on Admin Login Attempt
    By tishost in forum General Questions
    Replies: 2
    Last Post: 30 Jul 2008, 07:14 PM
  3. Fatal error can't login to admin
    By scubasteve in forum General Questions
    Replies: 1
    Last Post: 4 Jun 2008, 03:35 AM
  4. Fatal Error : Admin Login
    By globeriding in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 10 Dec 2007, 10:47 AM
  5. Fatal error - admin login problem
    By scot_giant in forum General Questions
    Replies: 2
    Last Post: 6 Oct 2007, 05:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •