Author Topic: All edits fail with error in cache.php  (Read 5159 times)

Offline wwoolies

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
All edits fail with error in cache.php
« 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!

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5813
  • Karma: +274/-2
    • View Profile
Re: All edits fail with error in cache.php
« Reply #1 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

Offline wwoolies

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: All edits fail with error in cache.php
« Reply #2 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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5813
  • Karma: +274/-2
    • View Profile
Re: All edits fail with error in cache.php
« Reply #3 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

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: All edits fail with error in cache.php
« Reply #4 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?
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

Offline wwoolies

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: All edits fail with error in cache.php
« Reply #5 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!

Offline wwoolies

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: All edits fail with error in cache.php
« Reply #6 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.

Offline wwoolies

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: All edits fail with error in cache.php
« Reply #7 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.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4359
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: All edits fail with error in cache.php
« Reply #8 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.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline wwoolies

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: All edits fail with error in cache.php
« Reply #9 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?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5813
  • Karma: +274/-2
    • View Profile
Re: All edits fail with error in cache.php
« Reply #10 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

 

Powered by SMFPacks Social Login Mod