HerrZ Posted November 25, 2009 Share Posted November 25, 2009 hello, it seems to be, the hook DailyCronJob ist not working (is not called). i tested with blabla.php in hooksdirectory and logging somewhat to a logfile: function init_DailyCronJob() { $logbody = 'hook DailyCronJob ist aufgerufen'; include_once $_SERVER['DOCUMENT_ROOT'] . '/nav/includes/helperfunctions.php'; hlp_writelogfile('dailycronjob.log',$logbody); } add_hook("DailyCronJob",1,"init_DailyCronJob",""); The Cronjob itself is running. the System Activity Log does confirm this. What do you mean? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 25, 2009 Share Posted November 25, 2009 check the error_log in your whmcs admin directory to make sure that the helperfunctions file is being included properly. 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted November 25, 2009 Author Share Posted November 25, 2009 hi, ich added the following line on bottom of the source code above init_DailyCronJob(); i am sure the logging works;) 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted November 27, 2009 Author Share Posted November 27, 2009 summarizing: you mean that the hook usually DailyCronJob works fine and there is no bug? 0 Quote Link to comment Share on other sites More sharing options...
centelia Posted December 11, 2011 Share Posted December 11, 2011 (edited) i had to give execute permissions (755) to the file that i added in the includes/hooks directory in order for it to work Edited December 11, 2011 by centelia 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 11, 2011 Share Posted December 11, 2011 Your add_hook() syntax is incorrect. http://docs.whmcs.com/Action_Hooks 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.