v 3.10.0: Cannot Update Database
-
After updating to v 3.10.0, a prompt appeared to update the database: “Your WP eCommerce data needs to be updated. You’ve upgraded from a previous version of the WP eCommerce plugin, and your store needs updating.
You should update your database for your store to continue working.”
After clicking the link provided, WP told me “You do not have sufficient permissions to access this page.” Yet I am the administrator with no other users.
Please can you tell me how I can get round this without uninstalling the plugin and losing all my products. Thanks.
Martin
-
I updated this morning to V3.10.0 as well, and was also met with the same message.
Screenshot: http://oi62.tinypic.com/2ezl1s5.jpg
Clicking the “update your database” link leads you to an error page.
Screenshot: http://oi59.tinypic.com/671s46.jpg
How do we go about fixing this problem?
We also have the same issue
Good morning all!
We’ll be checking into this today to see what’s going on.
If you would all be so kind is to let me know what versions of WP eCommerce you were updating from, that may prove helpful in replicating and fixing the issue.
Cheers!
i had the version immediately prior to the 3.10
I would assume that it was v3.9.5. I keep all of my plugins updated to the latest/current versions.
I have the same problem, i have the 3.10.0 version
I was up-to-date and was using the immediately prior version too.
Thanks for looking into it.
MartinAlright, if any of you are able to test a change that I think should resolve the issue, that would be wonderfully helpful.
If you can log into your server and update the file located at /wp-content/wp-e-commerce/wpsc-components/theme-engine-v1/helpers/page.php with the following file:
That _should_ fix the issue.
The reason this is occurring is fairly innocuous. The update you’re being asked to run is one that you should not need to run is that code that was written 5+ years ago is now working incorrectly. It’s comparing a version of WP eCommerce (the current version, 3.10) to 3.8 by checking
if ( 3.10 < 3.8 ). That’s problematic because it’s returning true (evaluating 3.10 as 3.1), when it should be false.So the update you’re being asked to run was likely run 5+ years ago, if it was ever run at all. No alarms here, but we are very sorry for the scare. The commit that fixes this can be seen here.
If we can get confirmation from any of you that it’s working for you – we’ll deploy a fix immediately.
Cheers!
yes Justin that works fine thank you but the link to the file is actually /wp-content/plugins/wp-e-commerce/wpsc-components/theme-engine-v1/helpers/page.php
DaveAh yes, forgot the plugins directory, sorry Dave!
Glad to hear it works.
@justin, I also just updated the “page.php” file and the message in the AdminCP is now gone. Thank you for fixing this issue right away.
Perfect Tank you
Good solution.
Super! It works really well! I changed the contents of the specified file and everything is fine. Thanks for fast reaction. Prepare a patch for people whose knowledge does not allow for manual editing of the file.
Thanks for the fix – but there is another issue – the store settings tabs do not work….go to store settings and you land on general. click any other tab and it just churns without displaying the newly selected tab. It will work if you right click the tab and open in new browser tab….
The topic ‘v 3.10.0: Cannot Update Database’ is closed to new replies.