This is an absolutely critical bug.
When a test mail is sent, the links are created correctly (i.e. each link has an individual short url).
When the actual newsletter is sent out (using cron),
(a) all links in the newsletter are the same (i.e. they are the same shorturl)
(b) the one shorturl link that is now under each link in the newsletter goes nowhere.
This error did not occur with 6.x-3.0-alpha2, suggesting that something was changed between alpha2 and alpha3 that causes this issue.
To recreate/test the issue, I created a test group and sent the newsletter to the test group.
PS: I suggest creating an alpha4 release, addressing this bug and including the patch I submitted addressing another issue in alpha3 (http://drupal.org/node/1370616#comment-5520888)
Comments
Comment #1
rmcom CreditAttribution: rmcom commentedHas anybody else encountered this issue?
This is an absolutely critical bug. If anybody sends a newsletter with this version (assuming it's what it is the bug it seems to be), no links in the newsletter will be operational.
I tried to track down the error, but there have been so many changes between alpha2 and alpha3, I could not find it.
It must have to do with the process by which cron creates each single link.
weseze, do you have an idea what it could be?
Comment #2
rmcom CreditAttribution: rmcom commentedweseze, do you have an idea where we could look in the code to fix this issue?
Comment #3
weseze CreditAttribution: weseze commentedI didn t encouter this bug in development... Will have a look when I m home.
Comment #4
rmcom CreditAttribution: rmcom commentedI greatly appreciate it! I am in a bit of a bind because I cannot roll back for unrelated reasons.
Comment #5
rmcom CreditAttribution: rmcom commentedMy database is postgresql. Could it be that some of the sql fixes are not compatible with postgresql now?
I am grateful for any hint.
Comment #6
weseze CreditAttribution: weseze commentedJust tested on alpha3 and I can't reproduce this problem...
What version of Simplenews are you on? Have you got any other module installed that is involved in the proces of creating, editing and sending the newsletter?
Could you post the exact body-text from the node? And the generated mail?
You could also add some code so we can track the translation of links a bit: in "simplenews_statistics.module" line 345, just before
return $shortened_url;
add this
That should fill your watchdog with 2 messages per url so we can track if the links are built correctly.
Comment #7
rmcom CreditAttribution: rmcom commentedGreat, thank you! I will try that this morning and will post watchdog messages back.
I have the following installed:
Comment #8
weseze CreditAttribution: weseze commentedI'm running about the same modules on my test environment... But I'm also using wysiwyg, CKeditor, linkit, pahtologic and some other related modules.
So I'm guessing that it has nothing to do with other installed modules.
Comment #9
rmcom CreditAttribution: rmcom commentedThank you very much for your support.
We found the error: it was due to moving our production server from a 64-bit architecture to a 32-bit machine.
The shorturl module stopped working because the link id (lid) numbers surpassed the maximum value for a 32-bit integer.
Comment #10
weseze CreditAttribution: weseze commentedI'm gonna leave this one open for now untill I am absolutely sure that it is fixed.
This might be a bug with shorturl then?
Comment #11
weseze CreditAttribution: weseze commentedComment #12
kristofferromJust encountered this as well on this setup
simplenews Version: 7.x-1.1
simplenews_statistics Version: 7.x-1.0-alpha1
Any ideas how to debug?
Comment #13
AnybodyI can confirm the problem in 7.x! This is definitely broken. The newsletter was also sent by cron.