AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: wwoolies on December 12, 2016, 11:17:38 PM

Title: All edits fail with error in cache.php
Post by: wwoolies on December 12, 2016, 11:17:38 PM
Hi all,

I'm new to AbanteCart and am setting up a store for my wife's business.  I was putting some final touches on her store inventory before going live and noticed the notification to upgrade to 1.2.8.  The upgrade did not complete and now any editing on the store creates the following error:

     Fatal error: Call to a member function clean() on a non-object in .../public_html/store/core/lib/cache.php on line 378

I searched the forum and found that this is often a permissions issue.  I've changed the permissions on the referenced file to 0777 but to no avail.  I changed the permissions at the folder levels for core and lib, still no go.  I checked the error log and see many instances of this:

2016-12-13 4:06:22 - App Error:  AbanteCart core v.1.2.8 Cache storage driver file can not be loaded! in /home/wwoolies/public_html/store/core/lib/config.php on line 115

Any suggestions on next steps would be greatly appreciated.

Thanks!
Title: Re: All edits fail with error in cache.php
Post by: Basara on December 13, 2016, 12:03:07 AM
Hello,

You need to change permission to cache folder and all files/subforlder inside. Go to Admin > System > Settings > System and enable System Check this will report other permission issues after some time
Title: Re: All edits fail with error in cache.php
Post by: wwoolies on December 13, 2016, 10:18:47 PM
Thanks for your willingness to help.  Unfortunately when I save after enabling system check, I get the same error:

Fatal error: Call to a member function clean() on a non-object in /home/wwoolies/public_html/store/core/lib/cache.php on line 378

FYI, I saw another thread that recommended changing the cache.php file from the master source for version 1.2.8.  I did that too but no success.  Any other thoughts?  Thanks.
Title: Re: All edits fail with error in cache.php
Post by: Basara on December 14, 2016, 12:18:15 AM
Can you please provide some more data about your install?
AbanteCart version,
php version (go to Admin > System > Settings > System and click Php Info button)
server os type (Linux, Windows or any...)

thank you
Title: Re: All edits fail with error in cache.php
Post by: eCommerce Core on December 14, 2016, 06:31:23 AM
It looks like you have an old file somewhere that is not compatible with 1.2.8.
Did you try to upgrade and it was not done successfully?
Did you replace any files? Do you have any extension that is not compatible?
Title: Re: All edits fail with error in cache.php
Post by: wwoolies on December 14, 2016, 09:48:58 PM
For the system info:
Linux server508.webhostingpad.com 2.6.18-448.16.1.el5.lve0.8.70 #1 SMP Wed Sep 4 19:35:44 EEST 2013 x86_64

What other info would help?

The version on the main page shows AbanteCart 1.2.8.  What I'm not sure is if the version was 1.2.7 before I started the upgrade.  Perhaps I tried to skip a version which is why it failed?

Thanks!
Title: Re: All edits fail with error in cache.php
Post by: wwoolies on December 14, 2016, 09:50:58 PM
Might you have a suggestion on how to identify which files might not be compatible with 1.2.8?  Yes, I believe the upgrade did not properly complete.
Title: Re: All edits fail with error in cache.php
Post by: wwoolies on December 14, 2016, 09:55:48 PM
I just looked at the error logs and it does indeed look like I tried to go from 1.2.6 to 1.2.8.  Any suggested resolution?  Thanks.
Title: Re: All edits fail with error in cache.php
Post by: abantecart on December 14, 2016, 10:24:10 PM
You cannot upgrade from 1.2.6 directly to 1.2.8. You can not skip 1.2.7. Run 1.2.7 upgrade.
Title: Re: All edits fail with error in cache.php
Post by: wwoolies on December 14, 2016, 10:37:57 PM
Unfortunately, I understand that now but when I try to run the 1.2.7 upgrade, it tells me I'm already at 1.2.8.  Is there a rollback procedure?
Title: Re: All edits fail with error in cache.php
Post by: Basara on December 15, 2016, 04:51:43 AM
There are a lot of tools for batch file compare
check your installation with master branch https://github.com/abantecart/abantecart-src to be sure all files are upgraded