I'm trying to run a cron job (to update quantities sold on the ecommerce modules) and, while the script runs well manually on my development server, when I run things live, the log file gets this and the quantities are not updated.
Line 60 in /home/mysite/domains/mysite.co.nz/public_html/mobile/code/MobileSiteControllerExtension.php
Source
======
51: }
52:
53: /**
54: * Return whether the user is on the mobile version of the website
55: * @return boolean
56: */
57: public function onMobileDomain() {
58: $config = SiteConfig::current_site_config();
59: $parts = parse_url($config->MobileDomain);
* 60: if(isset($parts['host']) && $parts['host'] == $_SERVER['HTTP_HOST']) {
61: return true;
62: } else {
63: return false;
64: }
65: }
66:
Trace
=====
<ul>MobileSiteControllerExtension->onMobileDomain()
line 31 of MobileSiteControllerExtension.php
MobileSiteControllerExtension->onBeforeInit(,,,,,,)
line 963 of Object.php
Object->extend(onBeforeInit)
line 132 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
line 199 of ContentController.php
ContentController->handleRequest(SS_HTTPRequest)
line 67 of ModelAsController.php
ModelAsController->handleRequest(SS_HTTPRequest)
line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
line 125 of Director.php
Director::direct(/home/mysite/domains/mysite.co.nz/public_html/mysite/tasks/RecalcSoldQuantitiesJob.php)
line 77 of cli-script.php
</ul>
Do I need to create an ss_environment.php file?
I'm really not sure what to do next.
Can anybody help?