Posted: February 21, 2014 at 8:00 pm
|
I noticed that all the EE information such as: – Event Details I went through each plugin and identified WP E-Commerce as the ‘incompatible’ plugin. Whenever I deactivate Wp E-Commerce all data comes back. Reza |
Hi Reza, Just wanted to post an update, we have reproduced this locally and have a ticket raised for the developers to look into the issue. I’ve noted to update this thread with any news/fixes. |
|
|
OK. Thanks Tony. |
Hi Reza, We’ve found an issue with the way WP E-Commerce is handling the main WP_Query that is causing this which has also effected other plugins. We have a ‘fix’ that should work for the time being if you would like to try? Just add: function callback_that_does_nothing( $WP_Query ) { return $WP_Query; } add_action( 'pre_get_posts', 'callback_that_does_nothing', 8 ); to your themes functions.php file, then load the ‘Events’ page or a single event page to test. |
|
|
Hi Tony. I notice that the recent update addresses this issue. Do I still need to implement the fix? Reza |
|
Hi Reza, If the recent update has resolved the issue for you, then you no longer need to apply the fix. |
The recent update doesn’t address the issue. You’ll need to apply the function that Tony outlined above to work around what WP E-commerce does to the main WP Query. |
|
|
Hi Josh. I added the fix as suggested and got this error. I think I may have done it wrongly. [28-Feb-2014 02:37:56 UTC] PHP Parse error: syntax error, unexpected T_RETURN in /home/rezaalin/public_html/wp-content/themes/optimizePressTheme/functions.php on line 22 Reza |
Hi Reza, Could you ensure that the line numbers are not in the function when you copy and paste it? If you are not sure, please remove the function that you added before and add this one towards the middle of your theme’s functions.php file: function callback_that_does_nothing( $WP_Query ) { return $WP_Query; } add_action( 'pre_get_posts', 'callback_that_does_nothing', 8 ); Let me know if this helps. — |
|
|
Hi Lorenzo Thank you for the lesson. I did as asked and tested. Everything ok now. It’s resolved. |
The support post ‘Conflict with Wp E-Commerce Plugin’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.