• Resolved dragon013

    (@dragon013)


    Hello,

    I am getting these errors when activating your plugin

    Warning: Undefined array key "HTTP_USER_AGENT" in /plugins/dark-visitors/plugin.php on line 228 
    Warning: Undefined array key "REQUEST_METHOD" in /plugins/dark-visitors/plugin.php on line 238

    I am running PHP version 8.1

    Any help ?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author gavindarkvisitors

    (@gavindarkvisitors)

    Hi, thanks for the heads up.

    I’ll add some checks in the code to get rid of the error, but it’s strange that they are undefined for you. The plugin depends on them to work.

    Is this happening in a particular context? Or is there anything atypical about your server setup that you know about? This will help me track the real issue down.

    Feel free to reply to our “contact at darkvisitors.com” email if you’d like faster support.

    Thanks!

    Thread Starter dragon013

    (@dragon013)

    Hello,

    thanks for the feedback!
    It happens when I call wp_cron via a cron job. I guess because of calling it via bash and the php command like this

    php ~/<path to wordpress>/wp-cron.php 

    might cause some trouble since there is no user agent or header.

    I hope this helps!

    Plugin Author gavindarkvisitors

    (@gavindarkvisitors)

    Super helpful, thank you. I think you’re right, I’ll add this fix in the next version.

    All the best,

    Gavin

    Plugin Author gavindarkvisitors

    (@gavindarkvisitors)

    @dragon013 this should be fixed now, but let me know if not.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.