The free forums are no longer in use. It remains available as read-only archive.
8:24 am
August 24, 2011
Hi,
We have a Joomla site and have a script that gets executed through a cron, which was working well,
until someone did an SSL update to the site.
Since then, though the file is being called by the cron, it never gets executed completely.
It does not generate any errors, but it does not get executed completely.
The same script when called manually through a url works fine, but not through a cron.
An extract of the code of the script is:
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
/**
* CREATE THE APPLICATION
*
* NOTE :
*/
$mainframe =& JFactory::getApplication('site');
///////ok
/**
* INITIALISE THE APPLICATION
*
* NOTE :
*/
// set the language
$mainframe->initialise();
JPluginHelper::importPlugin('system');
// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');
/**
* ROUTE THE APPLICATION
*
* NOTE :
*/
$mainframe->route();
// authorization
$Itemid = JRequest::getInt( 'Itemid');
$mainframe->authorize($Itemid);
Please note:
We created another simple file to test the cron, and that works fine.
Any help would be appreciated.
Thanks,
Al
1 Guest(s)