Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31
  1. #21
    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.

  2. #22
    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.

  3. #23
    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.

  4. #24
    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.

  5. #25
    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.

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

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

    LMAO! Thank the Gods, I thought I would never shut up.

    This looks almost promising -

    In shop I now get:

    Warning: Cannot modify header information - headers already sent by (output started at /home/tgadmin/public_html/shop/includes/classes/class.smtp.php:2019) in /home/tgadmin/public_html/shop/includes/init_includes/init_database.php on line 57


    In admin I now get this message:

    0 DB_ERROR_NOT_CONNECTED
    in:
    [db_cache table]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


    I already went looking in the files for spaces in the php coding but maybe I missed something?

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

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

    I keep seeing references to 'zc_install/index.php' in the lines of code referenced by the error messages. Is this significant to the problem at hand?

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

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

    Going to try a database repair... someone else had the "Cannot modify header information" error and I also have the DB_ERROR_NOT_CONNECTED so...

    *Nope, no difference.

    NEXT -

  9. #29
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Every place where zc_install/index.php is referenced is inside a safety condition clause that will only send you to zc_install if the safety check fails.

    Common causes of the failures are:
    - incomplete uploads of all the files on your site (did your FTP upload fail on anything? are you SURE?)
    - incomplete configure.php files
    - incorrect contents in your configure.php files
    - incorrect settings for accessing your database ... in the configure.php files.

    Here's an FAQ on the move process: https://www.zen-cart.com/tutorials/i...hp?article=100

    You might need to do a comparison of what you uploaded vs what you attempted to upload (by re-downloading it to another folder, and comparing the folders): http://www.zen-cart.com/wiki/index.p...Obscure_Issues

    And you will need to be sure your configure.php files are correct.
    One way to get correct configure.php files for the new server is to do a FRESH install on the new server, preserve the generated configure.php files, and then import your database again ... as explained in the FAQ.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

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



    As much as I'm enjoying navigating the labyrinth it's probably best if I just start over. I really wanted to win this one but you're right.

    Tomorrow I will back up my databases and shop, and do a fresh install. Compare the configure.php files so I can learn what a Proper configure.php file looks like. It'll just Work if I do that.

    Thanks for all the help, I'm learning it. And I'll make another donation when I get paid again, for sure.

    Happy New Year - Brody

 

 
Page 3 of 4 FirstFirst 1234 LastLast

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