• Resolved kaviyaayyappan

    (@kaviyaayyappan)


    Hi,

    We are seeing the below warning on one of our checkout pages.
    Warning: Undefined array key “username” in /home/customer/www/xxxxxxx.org/public_html/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(287) : eval()’d code on line 375

    We have checked line 375 we don’t see anything related to the error.
    Please guide us on how to resolve this conflict.

    Thanks in advance,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @kaviyaayyappan,

    I’m sorry about the confusion here, we recently changed the way snippets are executed to provide more precise reports for when fatal errors are being thrown but in this case it looks like you should be able to find the issue by searching for “username” in the list of snippets (top-right search) in the admin.

    If you already know which snippet is causing the issue simply search for “username” in the code and you should be able to find that it is being used as an array key without a check that it is actually set. You will likely find something that looks similar to: $array['username'] and you will have to add a check if username is set.

    Please reach out using the form at https://wpcode.com/contact if you want to share the code privately and we can provide more guidance there.

    Thread Starter kaviyaayyappan

    (@kaviyaayyappan)

    Hi Team,
    Thanks for the quick support. we found the code snippet that cause issue and we have resolved the error.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning: Undefined array key “username” in code snippet’ is closed to new replies.