• Resolved Adil Kengen

    (@adil-kengen)


    ALL the hyperlinks in the Mailpoet newsletter return to the First page of the site. During sending an error is displayed:

    request error no JSON
    Notice: Undefined index: SERVER_ADDR in …plugins/wysij-newsletters/helpers/mailter.php in line 198

    I tried everything, reinstalled Mailpoet and deinstalling all other plugins but nothing works. What can I do to make this work

    https://ww.wp.xz.cn/plugins/wysija-newsletters/

Viewing 5 replies - 1 through 5 (of 5 total)
  • This issue is already fixed and the fix will be out on the next version. This is happening because you’re on a Windows server. Please go to: wysija-newsletters/helpers/mailer.php on your FTP and edit this file.

    Go to line 198 that reads:

    $_SERVER['REMOTE_ADDR'] = ( isset( $_SERVER['PHP_SELF'] ) ? $_SERVER['SERVER_ADDR'] : '127.0.0.1' );

    And replace with:

    if ( isset( $_SERVER['SERVER_ADDR'] ) ) {
        $_SERVER['REMOTE_ADDR'] = ( isset( $_SERVER['PHP_SELF'] ) ? $_SERVER['SERVER_ADDR'] : '127.0.0.1' );
    } else {
        $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
    }

    Let us know if you need help with that.

    Sorry for the inconvenience!

    Thread Starter Adil Kengen

    (@adil-kengen)

    The problem is not resolved. Ik changed the code, and the error codes about the Undefined index do not appear anymore, that has works all right. However, the hyperlinks are still wrong. What is my next step.

    Looks like you have a rewrite issue on your server. Please get in touch with us here: http://support.mailpoet.com/ we’ll need to ask you private details.

    Thread Starter Adil Kengen

    (@adil-kengen)

    Thanks for the tip. It was indeed a rewrite issue. I replaced the corrupt .htaccess file and all the links work like they should. Thanks again.

    Awesome!

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

The topic ‘Hyperlink errors in Mailpoet’ is closed to new replies.