When Simplenews is used with Elysia Cron, all links in newsletters have a path starting with "sites/all/modules/elysia_cron/", including unsubscribe link.

I guess Simplenews takes the path from the directory where cron.php is, which seems a bad idea because it could be located anywhere.

Vianney Stroebel
Likwid - Spécialistes Drupal - Paris

Comments

sutharsan’s picture

Category: bug » support

Try to set the $base_url in your settings.php. You can help to improve Simplenews by investigating what makes your cron different and how to overcome this in code.

sutharsan’s picture

Status: Active » Closed (fixed)

No activity for two weeks. Closing the issue.

weseze’s picture

Simple solution is to place the Elysia cron file in the root of your Drupal installation. You can rename it to keep the original cron.php.

miro_dietiker’s picture

Note that the current stable version 6.x-1.2 (2009-Oct-01) of elysia is broken.
If cron.php is called inside the module folder it is the job of elysia to chdir into drupal root.
The (already applied) patch does this. Quoting the patch description:

Improved external cron.php to support installation path like sites/all/modules/... Thanks to voidberg #787728