Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2009
    Posts
    36
    Plugin Contributions
    0

    Default PHP Fatal error: Class 'QueryCache' not found

    Long story short, I've been attempting to upgrade from 1.3.9 to 1.5.4. After trying the traditional route of upgrade, I decided a clean install actually made more sense and would probably be simpler, considering I want to totally revamp my store anyway. Easier said than done, of course.

    I installed a clean version of 1.5.4 in a subdirectory for testing
    I created a new DB for the test install and imported my current DB into it
    I ran zc_install.
    My admin panel works. My shop does not:

    http://smarmyclothes.com/testclean/

    The error in the debug logs is:
    Code:
    PHP Fatal error:  Class 'QueryCache' not found in /home/smarmy8/public_html/testclean/includes/autoload_func.php on line 79
    I searched and found this thread:
    https://www.zen-cart.com/showthread....ad_func-php%29

    I followed the suggestions: re-uploaded /includes/classes/query_cache.php and /includes/autoload_func.php several times.
    I even deleted them and uploaded fresh, just to make sure. But the problem (and the debug error) persists.

    Any help is greatly appreciated, because I am lost.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: PHP Fatal error: Class 'QueryCache' not found

    Chances are your /includes/init_includes/ files are not all new, and perhaps you've got files in the /includes/init_includes/overrides/ folder that are from a previous version and need updating if you intend to keep them.

    Or, your /includes/auto_loaders/ folder has outdated or damaged files.
    .

    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.

  3. #3
    Join Date
    Feb 2009
    Posts
    36
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Class 'QueryCache' not found

    This is a clean install, so there aren't any overrides. I haven't touched any of the files except for adding the two configure files.

    I deleted /includes/init_includes/ and /includes/auto_loaders/ in their entirety and re-uploaded just now. Same error in the error log.

    Should I delete/re-upload the entire includes directory? Or start over the entire installation process?

  4. #4
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: PHP Fatal error: Class 'QueryCache' not found

    I would try another clean install to a clean DB (no tables) and clean folder on the filesystem (download new copy of distribution Zen Cart archive to be on safe side). Make sure to use the same DB prefix as live site when installing Zen Cart. Let Zen Cart generate new configure.php files. Ensure the new clean install works (both store and admin). If all is good, then follow the "rebuild site on new version" article on this website.

    Not unusual to see issues when coping old configure files - especially when upgrading to a new Major version (almost always better in this case to just generate new ones). Rare to see issues with the DB upgrade (unless import was partial or corrupt), but following this + the rebuild process should help isolate where in the process things are failing. This method also usually results in Debug logs when an error occurs.

    It may also be useful to know what version of PHP is being detected by zc_install.

  5. #5
    Join Date
    Feb 2009
    Posts
    36
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Class 'QueryCache' not found

    Thank you, I'll try that. I was just thinking it was too bad I didn't make a fresh database first, so I could at least figure out where things went awry. I'll do that this time.

  6. #6
    Join Date
    Feb 2009
    Posts
    36
    Plugin Contributions
    0

    Default Re: PHP Fatal error: Class 'QueryCache' not found

    Just wanted to check in and say that after starting over with a fresh database and a fresh install, things seem to be working. Thank you for the help!

 

 

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. Help - PHP Fatal error: Class 'order' not found
    By Sevenhelmets in forum Managing Customers and Orders
    Replies: 3
    Last Post: 15 Jan 2011, 04:27 AM
  3. PHP Fatal error: Class 'queryFactoryResult' not found
    By timdwyer42 in forum General Questions
    Replies: 5
    Last Post: 5 Nov 2009, 11:48 PM
  4. PHP Fatal error: Class 'order' not found
    By 7and2suited in forum General Questions
    Replies: 3
    Last Post: 28 Apr 2009, 06:54 AM

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