Newsletter Builder deprecated problem

By hiroko - September 6, 2014

Hi,

I am getting a message when I send the newsletter to my test list.

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/.../.../cmsAdmin/plugins/newsletterBuilder/newsletterBuilder.php on line 287
2

I am receiving my test mail and this does not show up when sending to whole list.

I also just upgraded from 2_62 to 2_63 since I found an article in the forum about the latest php version.

My server is php5.5.10.

Thank you.

Hiroko

By Dave - September 8, 2014

Hi Hiroko,

It's because the version of PHP you are using has added some new warning messages.  You can remove that warning message by adding a @ before preg_replace on that line:

    $emailHeaders['html'] = @preg_replace($absLinkRegexp, $replacementEval, $emailHeaders['html']);

Can you let me know if that resolves the issue for you?  We'll have that fix in the next release.

Dave Edis - Senior Developer
interactivetools.com