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
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

loze - November 3, 2009 - 21:52

this happens with both phpMailer and drupal mail.
and i have no input filters (at least while im testing this)

#2

loze - November 3, 2009 - 23:54

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

loze - November 4, 2009 - 00:33

It was a problem on my end not with this mod,
setting the base_url in settings.php fixed this for me.

#4

Jose Reyero - November 12, 2009 - 17:26
Status:active» closed

ok

 
 

Drupal is a registered trademark of Dries Buytaert.