First of all, the structure of the plug-in changes with v3.8. Seems that GetShopped.org decided to get rid of handling the date in seperate tables in SQL. They decided to manage the each product and category as a Custom Post. As a result of this change, the plug-in had some major changes. Okay now let’s get into the issues I experienced…
Problem #1: Error message Fatal Error: Call to undefinede function wpsc_total_prodcut_count()…..
Following error message appears in Product page & Single Product Page:
Fatal error: Call to undefined function wpsc_total_product_count() in /home/folder/public_html/wordpress folder/wp-content/themes/your theme folder/wpsc-products_page.php on line 75
Seems that there is something wrong with the wpsc_total_product_count() in new plugin.
I found a temporary solution , which made me lose my own theme settings . I copied the php files in ‘/public_html/wordpress/wp-content/plugins/wp-e-commerce/wpsc-theme’ to my WordPress theme location and renamed the old theme folders. Error messages dissapeared.
Problem #2: Permalinks can not be changed
Settings\Permalinks does not operate properly. When a new permalink configuration is selected on Permalinks screen, following error messages appears:
Some other blogs suggest to flush the ‘register_post_type’ with code: ‘$wp_rewrite->flush_rules() ‘ .
My trials were unsuccessful so far. I hope to find a way to fix this later.
Problem #3: Internal Server Error Message after deactivation & activation
This was a major issue for me! After I spend some hours on the issues I listed above, I decided to inactivate and then re-activate the WP E-commerce plug-in. During the activation process, an error messages appeared and i could no longer activate the plug-in.
After spending more hours, I figured out walk around and activated the plugin. Here are the steps I followed:
- First of all, backup your website. (You should not skip this first step! )
- Go to your phpMyAdmin database
- Find the database where WP tables are kept. You should see a table named : wp_posts
- Rename the table to ‘wp_posts_backup’. To rename the table you may want to run this simple sql (this will temporarily hide all your posts and pages, don’t worry if you dont see them) :
ALTER TABLE wp_posts RENAME TO wp_posts_backup;
- Login to WP admin page and activate the WP E-commerce plugin. This time WP E-commerce plugin will be activated without any issue.
- Go to phpMyAdmin page again to make the post and pages visible again:
- Check your categories and products on your webpage.
- Log off from phpMyAdmin.
ALTER TABLE wp_posts_backup RENAME TO wp_posts;
This worked for me! Hope it works for you too!
Tags: $wp_rewrite->flush_rules(), custom post, error message, fatal error, Fatal error: Call to undefined function wpsc_total_product_count(), internal server error, line 75, php files, plugin permalink, register_post_type, wordpress, WP E-commerce, WP E-commerce 3.8, wpsc, wpsc_total_product_count()