WP e-Commerce 3.8.12

WP e-Commerce 3.8.12 are now available for download.

In this release we mainly concentrated on improving general stability and usability of the plugin.

Below you can find the list of changes made in this release:

== WP e-Commerce 3.8.12 ==
* New: Filter to hide drafts on the front-end: "wpsc_product_display_status"
* New: Shipwire staging / production option
* Change: Remove deprecated and unused javascript (and by extension, CSS) from core
* Change: Remove nusoap
* Change: Improvements to Marketing admin panel
* Change: Improvements to Products List Admin Page
* Fix: WP e-Commerce pagination breaks WordPress pagination
* Fix: Wrong thumbnail size in Product Specials widget
* Fix: Filtering by a category also shows all products in subcategories
* Fix: admin.js throwing a Parse Error in Safari
* Fix: Product Image Links not working when over HTTPS
* Fix: If AJAX_URL returns HTTPS and Add to Cart is on HTTP, errors
* Fix: Add to Cart button doesn't work
* Fix: Can no longer upload customer attachments
* Fix: Deprecated warning for wp_convert_bytes_to_hr() function in WordPress 3.6

It is extremely important that before you upgrade to WPEC 3.8.12, please back up your files and databases. Backup Buddy is our top choice for making backup simple and effortless.

How to upgrade WP e-Commerce

You can simply use WordPress automatic updates feature to download and install WP e-Commerce 3.8.12.

If that doesn’t work for you, try the following steps for a manual upgrade:

Download WP e-Commerce 3.8.12 from here and save it to your computer.

– Extract the downloaded package to a folder on your computer.

– Upload the contents of that folder to this path on your server, overwriting all existing files: wp-content/plugins/wp-e-commerce

Please let us know in the comment if you run into any issues with the upgrade.

30 responses... add one

Help. Upgraded today and now my WP dashboard is blank on all pages!!! Site still up and running but can’t access my WP dashboard. Totally blank. No error message. Nothing.

Upgrade crashed all access to my dashboard. Post in Forums is still being held for approval. Manually reinstalling the plugin now. Awaiting assistance.

Has broken the admin pages completely. Where the admin pages should be there are white screens. I am running wordpress 3.5.2 with the Tersus Theme. Help!!!!!!

To the few of you who are experiencing whitescreens:

Sorry to hear that’s happening for you – we’ve had about 5,000 downloads since releasing the other day and no major indication of this being a wide-spread problem. I’ve just tested both new installs and upgrades, and they both worked fine for me.

If you have any more information that might be helpful (error logs would be fantastically helpful), that might help us help you better.

Here is what I am getting after the upgrade:

Fatal error: Call to undefined function get_current_screen() in /home/xxxxx/public_html/wp-content/plugins/wp-e-commerce/wpsc-admin/display-items.page.php on line 493

Updated to 3.8.12 – got the 500 error. So then, like G-Olly, I reuploaded 3.8.11.1, which got rid of the 500 error – but now a serious problem that I had gotten rid of after much hair-pulling and teeth-gnashing has re-surfaced = the spinning Ajax add-to-cart.

This is a big problem as my client needs to be able to sell his merchandise with that button.

Ironically enough, the solution for it the first time seemed to be updating to 3.8.11.1. So now I’m back in the dark again.

Plus, the 3.8.12 update seems like it is fixing the very things that are causing me problems – Ajax, https, and Product Image links. I sure would love to be able to install it without breaking the admin area.

just installed the latest version (via wordpress plugins) and am getting the same error – Call to undefined function get_current_screen() in /home/xxxxx/public_html/wp-content/plugins/wp-e-commerce/wpsc-admin/display-items.page.php on line 493

How do I fix it?

+1 for heli

Fatal error in function ‘wpsc_product_list_exclude_child_categories’ around line 490 of “display-items.page.php”

patched by commenting out the code in the function itself.

Fix?

I haven’t updated anything and now my shopping cart doesn’t work. Can anyone suggest any next steps. I’m getting Error 404 messages all day! Thanks

I have done the upgrade to WP e-Commerce 3.8.12. Previously, the update was done on it’s own. It had worked on June 27, 2013 and then stopped working. After backing up the website, did the plugin updates and still did not fix it. Not sure what else needs to be done. Our site is http://www.usafitnessonline.com Please help!

For everyone having the white screen Fatal Error issue:

If you’re able to edit the plugin, open up the /wpsc-admin/display-items.page.php file, go to Line 490, and modify it to look like this

`if ( ! is_admin() || ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) || ! $query->is_main_query() )`

That should fix your issues. In fact, that was in our master branch on GitHub about a month ago – so I’m still a bit baffled at how we missed it in the 3.8.12 release – also baffled as to why some people experience this, and others (myself included) do not.

Either way, that fix should do it for you! Let me know if it doesn’t.

Hi Justin,
I believe, given the requirements of boolean logic associated with ‘not’ conditions, the replacement code should read something like:
`if ( ( (! is_admin()) && (! $query->is_main_query())) || ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) )`

I tried Justin’s method and nothing changed. Tried the “Vark” method …..`if ( ( (! is_admin()) && (! $query->is_main_query())) || ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) )`….except it was on line 493 for me and everything came back up as a functional 3.8.12 install

Odd – my original code worked fine on a few people’s installs for the WP.org forums. Vark’s code seems like it should be fine as well.

What I’d really like to get down to is figuring out why get_current_screen() isn’t defined at whatever point this function is invoked.

Though actually, won’t the condition you propose return false on front-end requests that are not over AJAX and not the main query?

Hi Justin,
If i may be a bit pedantic, your code won’t actually work as written. You can’t combine two ‘nots’ and an or without grouping via parenthesis, as I’ve done. Whether the conditions actually fit the situation is not something I looked at – I took it to be a syntactical problem.

If the grouping I’ve proposed doesn’t do what you need, you’ve still got to group ‘nots’ with ‘ands’ as I’ve done, if you need more than 1. Please check out http://goo.gl/3SNwQ, look for ‘IF NOT(A>0 AND A<10) THEN do something'

I get where you’re coming from – but the code (which garyc40 actually wrote at https://github.com/wp-e-commerce/WP-e-Commerce/commit/f76e1350fa11537f9c18c0ca4be8c0dac560b9bc) if we’re not in the admin, if we’re not doing AJAX, or if we’re not on the main query.

While the code you wrote won’t work based on previous comments I made, I see the pedantic point you’re making (though I’m confused as to why it works for me and others on the wp.org forums).

I suppose it could be rewritten as follows to satisfy all conditions:

if ( ! is_admin() || ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) || ( is_admin() && ! $query->is_main_query() ) )
return;

Hi Darrell,
Glad that worked for you. Justin did all the work, I just happened to spot a small syntax issue with his solution.

I did. You say it’s “not working” – but there’s not much else to work with in your comment. Can you give more detail?

After trying to add product to cart, the error I get is :
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.

rYes of course. I updated the plugin to the latest after not working since June 27th. When adding a product to cart, client is never taken to check out screen. Instead, they are given an error (404 error)

Fatal error: Call to undefined function get_current_screen() in /home/exsup/public_html/wp-content/plugins/wp-e-commerce/wpsc-admin/display-items.page.php on line 493

and this

Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (? or (?- at offset 3 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (? or (?- at offset 3 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 204

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/exsup/public_html/wp-includes/class-wp.php on line 205

please help

Fatal error: Call to undefined function get_current_screen() for me too. Dudes – what is this you say about improving general stability? A fatal error the moment you click “Activate” is not what I call an improvement in stability!!

Help, I am using WP 3.6, WPEC 3.8.12.1 & Gold Cart 2.9.7.5 – my sliding cart suddenly says loading. It doesn’t matter what browser I am in. and it doesn’t matter if I change it to not slider. I haven’t done anything other than check those two items, as the last plugin I paid for an tried to install and re-install I can’t us at all. I need to get this up and running .
thank you
Lori

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.