question

cliffb avatar image
cliffb asked rockit published

Notice: Undefined index: supported in .../class-woo-clv-admin.php on line 272

I'm at a loss on how to cure this issue. I'm testing an ecommerce site before going live. It's in test mode, and clover is also in test mode. I get this message on the checkout page in the payments section after the clover radio button,

"Notice: Undefined index: supported in .../class-woo-clv-admin.php on line 272"

when a user is registered and logged in, but hasn't provided any other profile information, such as address, phone, cc number, etc. When I split the offending line of code across three lines, it narrows the warning down to "$surcharge['supported']" as the cause. Is this a bug or a side effect of something else? Any ideas?

 <?php
     $surcharge = $this->getSurcharge($this->testmode);
     $message = $surcharge['message'];
// line 272 is next
     if ($surcharge['supported'] && isset($message)) {
   
        echo esc_html($message);
     } 
 ?>
clover developer community
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
rockit avatar image
rockit answered rockit published

Did you ever find a fix for this?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community