I get these error when trying to send emails with simplenews. Does anyone else have this issue?

1. "warning: strpos() [function.strpos]: Empty delimiter in /var/www/drupal-6.14/sites/all/modules/simplenews/simplenews.module on line 2109"

2. "user warning: Duplicate entry 'content/avalanche-advisory-sierra-avalanche-center-email-en' for key 'dst_language' query: INSERT INTO url_alias (src, dst, language) VALUES ('node/330', 'content/avalanche-advisory-sierra-avalanche-center-email', 'en') in /var/www/drupal-6.14/modules/path/path.module on line 112."

This second error has to do with the pathauto module/simplenews scheduler integration...I would love to be able to use both of these modules together...but if not then I will go with simplenews.

Thanks for the help.

CommentFileSizeAuthor
#4 simplenews.680278.patch786 bytessutharsan

Comments

sutharsan’s picture

Version: 6.x-1.0-rc6 » 6.x-1.x-dev

If you have an error, always first update to the latest 6x.1.x-dev release.
The error occurs in the function that converts URLs into absolute URLs. Do you have anchors in your email (e.g. <a href="#tips">) or links with empty href attribute (e.g. <a href="">click me</a>)?

andyanderso’s picture

I upgraded to the dev release...Still get the error. However I am using this on a development site with a different path than my production server. So if many of my relative links do not work on my development site. I bet that this is why I am getting the error.

I will let you know when I move it to my production site. Thanks for the info.

Andy

andyanderso’s picture

I still get the error on my production site. All the links in my newsletter seem to be correct. No empties, no text anchors. I do use php in my newsletter.

I now have a bigger problem in that when I send newsletters from my prodcution site it is formatted incorrectly...I think it may be a mime mail issue but I am not sure...see this post:
http://drupal.org/node/681832

Could this error be causing the issue in that post?

sutharsan’s picture

Title: Simplenews triggers this error when sending email » 'warning: empty delimiter' when sending (test) emails with short link text.
Status: Active » Fixed
StatusFileSize
new786 bytes

The fault is caused by short link text (3 characters or less). The attached patch fixes this. It will be available in the next dev release.

Changing title for better match.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.