Title: Hyperlink errors in Mailpoet
Last modified: August 22, 2016

---

# Hyperlink errors in Mailpoet

 *  Resolved [Adil Kengen](https://wordpress.org/support/users/adil-kengen/)
 * (@adil-kengen)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/hyperlink-errors-in-mailpoet/)
 * 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://wordpress.org/plugins/wysija-newsletters/](https://wordpress.org/plugins/wysija-newsletters/)

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

 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/hyperlink-errors-in-mailpoet/#post-5290499)
 * 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](https://wordpress.org/support/users/adil-kengen/)
 * (@adil-kengen)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/hyperlink-errors-in-mailpoet/#post-5290505)
 * 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.
 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/hyperlink-errors-in-mailpoet/#post-5290574)
 * Looks like you have a rewrite issue on your server. Please get in touch with 
   us here: [http://support.mailpoet.com/](http://support.mailpoet.com/) we’ll need
   to ask you private details.
 *  Thread Starter [Adil Kengen](https://wordpress.org/support/users/adil-kengen/)
 * (@adil-kengen)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/hyperlink-errors-in-mailpoet/#post-5290575)
 * 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.
 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/hyperlink-errors-in-mailpoet/#post-5290581)
 * Awesome!

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/wysija-newsletters_ffddcc.svg)
 * [MailPoet Newsletters (Previous)](https://wordpress.org/plugins/wysija-newsletters/)
 * [Support Threads](https://wordpress.org/support/plugin/wysija-newsletters/)
 * [Active Topics](https://wordpress.org/support/plugin/wysija-newsletters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wysija-newsletters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wysija-newsletters/reviews/)

## Tags

 * [hyperlinks](https://wordpress.org/support/topic-tag/hyperlinks/)
 * [undefined index](https://wordpress.org/support/topic-tag/undefined-index/)

 * 5 replies
 * 2 participants
 * Last reply from: [Wysija](https://wordpress.org/support/users/wysija/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/hyperlink-errors-in-mailpoet/#post-5290581)
 * Status: resolved