[Resolved] Catchable fatal error: Object of class WP_Error could not be converted to string
Essentially there is a problem in /plugins/wp-e-commerce/wpsc-merchants/paypal-express.merchant.php on line 586
The sessionid variable is being cast to a string but the function wpsc_get_customer_meta() on line 1697 /wp-ecommerce/wpsc-core/wpsc-functions.php returns a WP_Error on error.
WP_Error is an object and can’t be cast to a string.
Here’s a fix.
Replace line 586 in paypal-express.merchant.php with the following three lines:
$sessionid = wpsc_get_customer_meta( 'paypal_express_sessionid' );
if( is_wp_error( $sessionid ) )
Would be nice to see this in the next WPEC core update.
- The topic ‘[Resolved] Catchable fatal error: Object of class WP_Error could not be converted to string’ is closed to new replies.