Fatal error
-
Dear Support
I just updated the pluggings that the dashboard asked me to do it, and now I got an error
Fatal error: Can’t use method return value in write context in /home/ljimeno/public_html/summerdreamhotels.com/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php on line 231
On the file abstract-wc-gateway-ppec.php the line 231 is: if ( ! empty( $creds->get_username() ) ) {
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
... /** * Validate the provided credentials. */ protected function validate_active_credentials() { $settings = wc_gateway_ppec()->settings->load_settings( true ); $creds = $settings->get_active_api_credentials(); if ( ! empty( $creds->get_username() ) ) { if ( empty( $creds->get_password() ) ) { WC_Admin_Settings::add_error( sprintf( __( 'Error: You must enter a %s API password.' ), __( $settings->get_environment(), 'woocommerce-gateway-paypal-express-checkout' ) ) ); return false; } ...
Could you please advice?
Thanks in advance and warm regards
Luis Jimeno
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fatal error’ is closed to new replies.