Hello,
the newsletter module works fine under 2.8.3, but when I try to run it under 2.10 I got errror:
There was an uncatched exception
Call to undefined function ereg_replace()
in line (70) of (/modules/newsletter/class.parser.php):
raws 69 and 70:
function encodeSpecialChars(&$value) {
$value = ereg_replace("¡","¡",$value); // inverted exclamation mark
How to fix that?
Regards,
Morning, try this
$value = preg_replace("/¡/","¡",$value); // inverted exclamation mark
I have changed the code. There i sno error at line 70 anymore, there is new error at line 71 :)
There was an uncatched exception
Call to undefined function ereg_replace()
in line (71) of (/modules/newsletter/class.parser.php):
The system for replace
old
ereg_replace('xxx', ...
new
preg_replace('/xxx/', ...
whats the version/year of this newsletter module? (see comments & text in info.php of this module)
i dont have code like this
Anlage: newsletterSnippet_0.18
MfG. Evaki
Maybe this version is the latest (0.20):
https://forum.WebsiteBaker.org/index.php/topic,7747.msg177692.html#msg177692
ich meine, ich hätte da noch irgend ne Kleinigkeit für PHP 7 geändert, warte aber noch auf Rückantwort vom User, wo ich das eingebaut habe. Dann werd ich mal vergleichen.
When I changed with that ver. newsletter 0.20 the whole web page is down and the error is:
There was an uncatched exception
syntax error, unexpected 'General' (T_STRING)
in line (19) of (/modules/newsletter/class.newsletter.php):
in attachement the latest version v 0.20, run's for me without problem's under WB 2.10.x and the latest PHP-Version's
P.S.: looks, that the file from marmot is broken in the zip. can somebody confirm it? If yes, i#ll remove it
>> file from marmot is broken
jo!
Confirmed. marmots zip produce a error.
(i say only global replace)
thanks
Is there a way to fix that Newsletter module under 2.10? I couldn't understand what happened at the end :)
do you use my version from this post here?? it works for me and other users without problem's in wb 2.10.x
if you have a version 0.20, pls replace the file's with my zip from this post here -> https://forum.WebsiteBaker.org/index.php/topic,30551.msg212948.html#msg212948
if you have with this zip also errors, we need more details, error message etc
Did you changed something? Before that file didn't run, now it works!
Quote from: rumen on November 20, 2017, 01:00:45 PM
Did you changed something? Before that file didn't run, now it works!
not in my zip-file
maybe, you use the version from the forum-post before
I see in the DB the 2 e-mails I subscribed, but they don't appear, don't exist in the list of the E-mail group. Also, when I wanted to unsubscribe them they still exist in the DB.
I call the sniplet with that code
[[Newsletter?title=news&from=info(at)lystoto(.)com]]
And I see it on the screen, before there was an error. Now there is no error, but WB doesn't call the e-mails subsribed to the Massmail modure in the same "news" group.
After I changed the language everything is just fine!
Again problem
WB 2.10 / Newsletter V_0.20 - when try to subscribe:
Error: An error occurred while sending an activation link to the email address rzaprianov(at)gmail.com.
Please contact support.
No more info what can be the problem.
It is here at the end of the page http://transfer.photography/