Welcome Guest, Not a member yet? Register   Sign In
CRON - No URI present madness
#1

[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';
$_GET = '';

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
DEBUG - 2012-02-02 09:31:02 --> Hooks Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Utf8 Class Initialized
DEBUG - 2012-02-02 09:31:02 --> UTF-8 Support Enabled
DEBUG - 2012-02-02 09:31:02 --> URI Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Router Class Initialized
DEBUG - 2012-02-02 09:31:02 --> No URI present. Default controller set.
DEBUG - 2012-02-02 09:31:02 --> Output Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Input Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Global POST and COOKIE data sanitized
DEBUG - 2012-02-02 09:31:02 --> Language Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Loader Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Helper loaded: url_helper
DEBUG - 2012-02-02 09:31:02 --> Helper loaded: layout_helper
DEBUG - 2012-02-02 09:31:02 --> Database Driver Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Session Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Helper loaded: string_helper
DEBUG - 2012-02-02 09:31:02 --> A session cookie was not found.
DEBUG - 2012-02-02 09:31:02 --> Session routines successfully run
DEBUG - 2012-02-02 09:31:02 --> Model Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Model Class Initialized
DEBUG - 2012-02-02 09:31:02 --> Controller 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



Theme © iAndrew 2016 - Forum software by © MyBB