• Resolved dcbuffalo

    (@dcbuffalo)


    I’m getting the following error consistently in our php error logs, a number of times per day – anywhere from just a couple times a day to as much as 50 as far as I can tell:

    PHP Warning: Undefined array key “HTTP_USER_AGENT” in /home/xxxxxxxx/public_html/wp-content/plugins/mad-mimi-wp/includes/classes/RobotDetector/RobotDetector.php on line 307

    I’m not sure what is triggering it. Can anyone offer any insight into the cause of this error, and a solution?

    Thanks,
    David

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support gavinohanlon

    (@gavinohanlon)

    Hi Dcbuffalo,

    Thanks for reaching out to us.

    Are your optin forms working ?

    With regard to the error message, we will look to get that fixed on the next version release.

    Thank you again for reporting it.

    All the best.

    Thread Starter dcbuffalo

    (@dcbuffalo)

    It has been tested before and it worked. I will get confirmation of recent sign-ups and let you know.

    Thanks for looking into it!

    Thread Starter dcbuffalo

    (@dcbuffalo)

    It is actually not working. If you enter a valid email address and click the submit button, the button says “Failed to add user – 401”.

    Plugin Support gavinohanlon

    (@gavinohanlon)

    Hi Dcbuffalo,

    Thanks for getting back to me.

    Sometimes, the API keys can go stale after a while. We would recommend going in and getting a new API key to try and clear all your cache from both the browser and server if you are using any caching plugins.

    You could also check that you don’t have any conflicting plugins doing a similar action. Like another optin form plugin that is using MadMimi on your site. You would turn those other plugins off and see if the form then works.

    Feel free to get back to us if there is anything else.

    All the best.

    Thread Starter dcbuffalo

    (@dcbuffalo)

    I just discovered that the email address for the Mad Mimi account had been updated but I wasn’t aware. However, even after updating that, I still get an error that now reads “Failed to add user – 400”.

    Plugin Support gavinohanlon

    (@gavinohanlon)

    Hi again,

    I tried the optin form at the bottom of your main page. This time the email was accepted. It did not show a similar error message as before.

    The email I tested with ended with [email protected]

    If you are testing the form, just make sure you are using an email address that is different to one that might already be in your list.

    Feel free to get back to us if there is anything else.

    All the best.

    Thread Starter dcbuffalo

    (@dcbuffalo)

    I refreshed the API key and set the list appropriately. It now works perfectly again – thanks!

    Plugin Support gavinohanlon

    (@gavinohanlon)

    Hi there,

    That’s good to hear. Happy to hear you got it working now.

    Feel free to get back to us if there is anything else.

    All the best.

    Thread Starter dcbuffalo

    (@dcbuffalo)

    So the same php error is still occurring. I refreshed the API key, and now the interface doesn’t allow me to set a list for the optin form, which seems problematic. Any thoughts?

    Thread Starter dcbuffalo

    (@dcbuffalo)

    Also FYI – the error started back up on December 9, pretty much after I cleared out the error log, and it’s logged almost every day since, usually several times.

    Thread Starter dcbuffalo

    (@dcbuffalo)

    I don’t believe it’s sending the confirmation email properly, but that’s probably an SMTP issue I’m working on separately.

    Plugin Support gavinohanlon

    (@gavinohanlon)

    Hi Dcbuffalo,

    Thanks for your patience with this.

    Is it the same error message as before ? This one – PHP Warning: Undefined array key “HTTP_USER_AGENT” in /home/xxxxxxxx/public_html/wp-content/plugins/mad-mimi-wp/includes/classes/RobotDetector/RobotDetector.php on line 307

    We are trying to track down what is causing the API key not to be accepted with Mad Mimi. The developer is looking into the issue now to diagnose it.

    If I hear anything back about fixing it, I will certainly reach out to you again.

    In the meantime, don’t hesitate to let us know if there is anything else.

    All the best.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘PHP error: Undefined array key “HTTP_USER_AGENT”’ is closed to new replies.