CRON - No URI present madness |
[eluser]kaosweaver[/eluser]
Alright, I'm out of ideas on how to solve this issue. I've searched for the solution and tried a variety of them to no avail. Here is the situation, I've setup a separate index.php file for a cron job to call and execute the cron jobs, I use: Code: $_SERVER['PATH_INFO'] = '/cron/tasks'; The config has the uri_protocol set to auto Code: $config['uri_protocol'] = 'AUTO'; If I type in the URL for the cron's index.php (http://mysite.com/cronfolder/) the functions perform exactly as desired. (paths set to the right folders, emails are sent, data is accurate, etc) I've tried to set the uri_protocol to all of the options, still has the same result, nothing. (or the site breaks, still doesn't work) The cron is setup to call the index file via CPanel and I know this is working (I put an email to me in the index file to check to make sure it was being called). The LOG reports: Code: DEBUG - 2012-02-02 09:31:02 --> Config Class Initialized Specifically, the line: Code: DEBUG - 2012-02-02 09:31:02 --> No URI present. Default controller set. Tells me the URI isn't being set right, but I'm perplexed because calling the file directly in a browser works (it doesn't have any output on the screen, but the effects happen), but calling it via a CRON set in CPanel loses the URI - calls the file right, just loses the URI, I don't know how to fix as it is right in the index.php file (code block 1). Any suggestions? |
Messages In This Thread |
CRON - No URI present madness - by El Forum - 02-02-2012, 09:42 AM
CRON - No URI present madness - by El Forum - 02-02-2012, 10:43 AM
|