WP e-Commerce 3.8: Permission problems – You must update your database to import all of your products.

If you get a message to:

“You do not have sufficient permissions to access this page.”

after you clicked on the link to update from the message that appears on your admin pages like this:

“You must update your database to import all of your products.”

Here is the solution:

To get that beautiful window go to your console:

[code]pico +44 ./wp-e-commerce/wpsc-admin/display-update.page.php[/code]

and comment, add the line below, and save:

[code]//add_action( ‘admin_notices’, ‘wpsc_display_update_notice’ );
add_action( ‘admin_notices’, ‘wpsc_display_update_page’ );[/code]

Now go back to the link you were sent when you saw that message about upgrading your database and hit it again:

This is the link just in case:

http://…./wp-admin/admin.php?page=wpsc-update

Then you will update your database nicely!

I think WP e-Commerce has some admin pages and submenus, namely using add_submenu_page that are not really working.

3 thoughts on “WP e-Commerce 3.8: Permission problems – You must update your database to import all of your products.

    • Dan if you find a solution please post… having the same issue. Can’t update the database. Using Ipower for hosting not sure if it’s a hosting issue or not. So frustrating.

      • Lines 29-31:
        [code]
        if ( ! get_option( ‘wpsc_needs_update’, false ) ) {
        $show_update_page = 0;
        } else {
        [/code]

        For some reason they are checking if the option is not set as false. So change this to:

        [code]
        if ( get_option( ‘wpsc_needs_update’, false ) ) {
        $show_update_page = 0;
        } else {
        [/code]

Leave a Reply to dan Cancel reply

Your email address will not be published. Required fields are marked *