Results 1 to 10 of 31

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    New Mexico
    Posts
    35
    Plugin Contributions
    0

    Default Re: Problem with install - cannot instantiate class - autoload_func.php

    I get these errors for admin:

    Warning: main(/home/buzzardr/public_html/tgadmin/shop/includes/autoload_func.php) [function.main]: failed to open stream: Permission denied in /home/tgadmin/public_html/shop/admin/includes/application_top.php on line 273

    Warning: main(/home/buzzardr/public_html/tgadmin/shop/includes/autoload_func.php) [function.main]: failed to open stream: Permission denied in /home/tgadmin/public_html/shop/admin/includes/application_top.php on line 273

    Fatal error: main() [function.require]: Failed opening required '/home/buzzardr/public_html/tgadmin/shop/includes/autoload_func.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tgadmin/public_html/shop/admin/includes/application_top.php on line 273


    I will see if there's another place in the control panel to change file permissions - I was doing it in the file manager.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,700
    Plugin Contributions
    11

    Default Re: Problem with install - cannot instantiate class - autoload_func.php

    please post both your config files WITHOUT username and password. The two files mentioned in your error do not have 273 lines of code combined
    Your version?
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Aug 2006
    Location
    New Mexico
    Posts
    35
    Plugin Contributions
    0

    Default Re: Problem with install - cannot instantiate class - autoload_func.php

    For Zen Cart v. 1.3.7.1

    /public_html/shop/admin/includes/configure.php
    ----------------------------------------------


    application/x-httpd-php configure.php
    PHP script text

    <?php
    //
    /**
    *
    * @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://transgentry.com');
    define('HTTPS_SERVER', 'https://transgentry.com');
    define('HTTP_CATALOG_SERVER', 'http://transgentry.com');
    define('HTTPS_CATALOG_SERVER', 'https://transgentry.com');

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

    // 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', '/shop/admin/');
    define('DIR_WS_CATALOG', '/shop/');
    define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    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/tgadmin/public_html/shop/admin/');
    define('DIR_FS_CATALOG', '/home/tgadmin/public_html/shop/');

    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', 'localhost');
    define('DB_SERVER_USERNAME', '**********');
    define('DB_SERVER_PASSWORD', '*******');
    define('DB_DATABASE', '********');
    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/tgadmin/public_html/shop/cache');

    ?>


    I'll post the other file in a separate window - I did just now spot the db server designation of "localhost' - do I need to post a specific server name there?

  4. #4
    Join Date
    Aug 2006
    Location
    New Mexico
    Posts
    35
    Plugin Contributions
    0

    Default Re: Problem with install - cannot instantiate class - autoload_func.php

    /public_html/shop/includes/configure.php



    application/x-httpd-php configure.php
    PHP script text

    <?php
    /**
    *
    * @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 "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    define('HTTP_SERVER', 'http://transgentry.com');
    define('HTTPS_SERVER', 'https://transgentry.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // 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_CATALOG', '/shop/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * 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_CATALOG', '/home/tgadmin/public_html/shop/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '*********');
    define('DB_SERVER_PASSWORD', '*********');
    define('DB_DATABASE', '*********');
    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/tgadmin/public_html/shop/cache');

    ?>


    I returned both these files as close to how they were originally as I could; was basically undoing changes as soon as I saw what didn't work.

  5. #5
    Join Date
    Aug 2006
    Location
    New Mexico
    Posts
    35
    Plugin Contributions
    0

    Default Re: Problem with install - cannot instantiate class - autoload_func.php

    Actually the full path was originally written as: /home/buzzardr/public_html/tgadmin/shop/

    The actual path appears to be more like:
    /home/buzzardr/public_html/tgadmin/public_html/shop/

    I did try this but still got the same errors. So then I truncated the path to simply /home/tgadmin/public_html/shop/ and got fewer errors - but that's probably because I diminished accessibility to my site.

    buzzardr administers tgadmin. In the old account the path was just like this. In the new account I'm not certain how buzzardr ties to tgadmin. My new file structure doesn't show this - everything is separate.

    I really appreciate the help I'm getting here - my brain is out of practice for this kind of thinking.

  6. #6
    Join Date
    Aug 2006
    Location
    New Mexico
    Posts
    35
    Plugin Contributions
    0

    Default Re: Problem with install - cannot instantiate class - autoload_func.php

    Okay.

    I have compared the buzzardr config files that work, to the tgadmin config files that do not.

    I have compared the config files from the old server that were working, to the new config files that, again, do not work.

    I have made adjustments per these comparisons. The store still doesn't work.

    As I see it now my options are to:

    Try running a database repair, which is a little scary.

    Try moving the Shop folder directly into the tgadmin home folder, where it was on the old server.

    Reinstall the whole store and run a whole new gamut of issues.

    Upgrade to v. 1.3.8a and, again, deal with a whole new group of problems.

    They say whatever you are doing at midnight on New Year's is what you will be doing for the rest of the year. I don't mind that I'm working, that's a good thing. But I really would like to be successful before I give it up and go to bed.

    I will therefore keep working.

  7. #7
    Join Date
    Aug 2006
    Location
    New Mexico
    Posts
    35
    Plugin Contributions
    0

    Default Re: Problem with install - cannot instantiate class - autoload_func.php

    I have now learned to use the code editor to quickly find lines cited in error messages. I'm very excited.

    Apparently this line in shop/includes/application_top.php is exceedingly offensive:

    if (!is_dir(DIR_FS_CATALOG.'/includes/classes')) header('location: zc_install/index.php');

    I will keep digging.

  8. #8
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Problem with install - cannot instantiate class - autoload_func.php

    brodybro1, you're having such a good conversation with yourself I almost hate to barge in.

    In both your 'config' files, change the following:

    - from
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/tgadmin/public_html/shop/cache');

    ?>


    - to
    define('SQL_CACHE_METHOD', 'database');
    define('DIR_FS_SQL_CACHE', '/home/tgadmin/public_html/shop/cache');

    ?>


    See what happens.

 

 

Similar Threads

  1. v151 PHP Fatal error: Class 'QueryCache' (autoload_func.php)
    By Debbie2014 in forum General Questions
    Replies: 2
    Last Post: 20 Oct 2012, 05:01 PM
  2. Fatal error: Cannot instantiate non-existent class:
    By winterstorm in forum General Questions
    Replies: 3
    Last Post: 2 Sep 2007, 04:29 AM
  3. Cannot instantiate non-existent class: fckeditor
    By pipc in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Jul 2007, 09:45 PM
  4. Fatal error: Cannot instantiate non-existent class...
    By encosion in forum Installing on a Windows Server
    Replies: 2
    Last Post: 6 Jul 2007, 09:39 PM

Posting Permissions

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