[Plugin: WordPress Simple Paypal Shopping Cart] Breaks other plugins with sessions – I have the fix
-
WordPress Simple Paypal Shopping Cart has a bug that breaks other plugins with PHP $_SESSION
Problem confirmed with “Fast and Secure Contact Form” (where I am the author of)
http://wordpress.org/extend/plugins/si-contact-form/I have the fix:
edit wp_shopping_cart.php
remove:
session_start();
Find:
function widget_wp_paypal_shopping_cart_init() {
Replace with:
function widget_wp_paypal_shopping_cart_init() { if( !isset( $_SESSION ) ) { // play nice with other plugins session_start(); }
Now it will play nice with other plugins with sessions.
Any plugin that uses sessions should always check if a session was already started before starting one.Mike
http://wordpress.org/extend/plugins/wordpress-simple-paypal-shopping-cart/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: WordPress Simple Paypal Shopping Cart] Breaks other plugins with sessions – I have the fix’ is closed to new replies.