• Resolved ljimeno

    (@ljimeno)


    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() ) ) {


    /**
    * 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

    https://www.ads-software.com/plugins/woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error’ is closed to new replies.