• Resolved neilvv1976

    (@neilvv1976)


    Hi,

    I installed the plugin a few months ago and was working perfectly.

    I had a folder in my hosting called .opcache that i was told i can delete.

    Since i deleted that folder i am getting the following error when i go to the view cart page:
    Warning: Undefined array key “express_enabled” in /homepages/10/d4296325564/htdocs/wordpress/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-kp-assets.php on line 93

    It is referencing to the folder i deleted, how do i get rid of this error?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @neilvv1976
    ?
    ?This message is just a warning that you safely can ignore. We will however fix it in the next release of Klarna Payments.

    @krokedilmartin

    When will this update be released? Not a fan of seeing my error logs fill with pointless errors.

    I changed your function on line 93 to get rid of the undefined array key.. Looks like there’s two more to track down. Here’s what I changed that function to. Effectively just deleted the OR and the first part of the if statement.

    	public function express_button_placement() {
    		$kp_settings = get_option( 'woocommerce_klarna_payments_settings' );
    
    		/* We're guaranteed to be on the cart page, so we don't have to check for is_cart. */
    		if ( 'yes' !== $kp_settings['enabled'] ) {
    			return;
    		}
    

    Hello @biohazardousx

    Thank you for sharing this.
    I am not able to give you a release date for next release of Klarna Payments.
    A fix for these Warnings will however be included.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error in Cart Page’ is closed to new replies.