Problems with absolute urls and cron.
loze - November 3, 2009 - 21:51
| Project: | Notifications |
| Version: | 6.x-2.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
When cron sends out notifications the urls in the emails are in this format: http://default/var/www/vhosts/mydomain.com/httpdocs/scripts/node/123
instead of http://mydomain.com/node/123
When I test it on /admin/messaging/subscriptions/queue (run process button) the urls are generated correctly.
Ive traced the tokens into watchdog, and they appear to be written correctly at that point. but the urls in the emails are still incorrect.
any suggestions?
thanks.

#1
this happens with both phpMailer and drupal mail.
and i have no input filters (at least while im testing this)
#2
I was incorrect.
In watchdog, when http://default/cron.php runs, the absolute urls (generated with url())
look like http://default/var/www/vhosts/mydomain.com/httpdocs/scripts/node/123
im running cron.php directly via scripts/drupal.sh as described on http://drupal.org/cron
#3
It was a problem on my end not with this mod,
setting the base_url in settings.php fixed this for me.
#4
ok