Support » Plugin: WP Mail Logging » Error: Undefined index: REMOTE_ADDR

  • Resolved kdelsimone

    (@kdelsimone)


    Hey there,

    I’m getting the following error each time my cron runs:

    Undefined index: REMOTE_ADDR in /…/wp-content/plugins/wp-mail-logging/lib/vendor/redux-framework/inc/class.redux_helpers.php on line 69

    Any suggestions for a fix?

    I’m running Version 1.8.4 on WP 4.9.8.

    Thanks much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor No3x

    (@no3x)

    Hi @kdelsimone,

    I’m aware of the issue but it is produced by a library. We have to wait for a update from there.

    Otherwise you can patch this manually (but you need to do after each upgrade)
    You can read about it here: https://github.com/No3x/wp-mail-logging/issues/72

    Hi @no3x,

    Thanks for the pointer! Interesting… and what exactly is the manual patch? I’ve already got a manual cron running via curl. Did I misread?

    Plugin Contributor No3x

    (@no3x)

    Hi @kdelsimone,

    the patch is suggested by lkraav in the GitHub issue.
    In plugins/wp-mail-logging/lib/vendor/redux-framework/inc/class.redux_helpers.php on line 69 modify the line to
    return ( ! isset( $_SERVER['REMOTE_ADDR'] ) || $_SERVER['REMOTE_ADDR'] === '127.0.0.1' || $_SERVER['REMOTE_ADDR'] === 'localhost' ) ? 1 : 0;
    If your cron is running via curl and the request goes through your webserver, then the REMOTE_ADDR should be set.

    Plugin Contributor No3x

    (@no3x)

    I hope the patched worked for your? Anyway it will be patched in the next version of the plugin. The problem was resolved in the mentioned library.

    kdelsimone

    (@kdelsimone)

    @no3x Yes, just checked the error log and I see that the manual patch worked. Thank you!

    Plugin Contributor No3x

    (@no3x)

    You are welcome

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error: Undefined index: REMOTE_ADDR’ is closed to new replies.