SiT! Bugs - SiT!
View Issue Details
0001934SiT!notificationspublic2014-05-06 08:492014-05-06 15:08
Current GIT 
0001934: new held email template produces broken link
the new held email (holding queue) produces the following body

There's a new email in the holding queue. You can view it at: http:///holding_queue.php [^]

Which is missing the server name etc from the URL
No tags attached.
related to 0001263confirmed  NOTICE_NEW_HELD_EMAIL trigger dont work 
Issue History
2014-05-06 08:49paulhNew Issue
2014-05-06 14:57paulhRelationship addedrelated to 0001263
2014-05-06 15:01paulhNote Added: 0004935
2014-05-06 15:03paulhNote Edited: 0004935bug_revision_view_page.php?bugnote_id=4935#r320
2014-05-06 15:08paulhNote Added: 0004936

2014-05-06 15:01   
(edited on: 2014-05-06 15:03)
This fails due to the application_url function in lib/ thinking $CONFIG['application_uriprefix']) is empty and trying to use $_SERVER['HTTP_HOST'] which obviously isn't set as this is being called from a cron job

Though this config option is set

2014-05-06 15:08   
On further investigation $CONFIG['application_uriprefix']) wasn't actually set in the DB or the config file even though the config pages showed it as set, this is because core.php trys to get this and set the config variable though this doesn't work in cron as _SERVER isn't populated