Report this

What is the reason for this report?

PHP errors while running script from command line ... (cron job)

Posted on September 13, 2017

Hi all,

I am running into these errors when trying to execute a cron job (both from the command line or from a cron tab) :

PHP Notice:  Undefined index: SERVER_NAME in /var/www/forwardial.com/htdocs/lib/app.inc on line 0
PHP Notice:  Undefined index: REQUEST_URI in /var/www/forwardial.com/htdocs/lib/app.inc on line 0
PHP Warning:  WURFL_ClassLoader::loadClass(/var/www/forwardial.com/htdocs/WURFL/Configuration/InMemoryConfig.php): failed to open stream: No such file or directory in /var/www/forwardial.com/htdocs/WURFL/ClassLoader.php on line 0
PHP Warning:  WURFL_ClassLoader::loadClass(/var/www/forwardial.com/htdocs/WURFL/Configuration/InMemoryConfig.php): failed to open stream: No such file or directory in /var/www/forwardial.com/htdocs/WURFL/ClassLoader.php on line 0
PHP Warning:  WURFL_ClassLoader::loadClass(): Failed opening '/var/www/forwardial.com/htdocs/WURFL/Configuration/InMemoryConfig.php' for inclusion (include_path='.:/usr/share/php') in /var/www/forwardial.com/htdocs/WURFL/ClassLoader.php on line 0
PHP Fatal error:  Class 'WURFL_Configuration_InMemoryConfig' not found in /var/www/forwardial.com/htdocs/WURFLres/wurfl_config_standard.php on line 0

code

What I am doing is this from the command line : php5.6 cron-wurfl.php

The .php file is ioncube encoded, so I cannot go in there and edit it or something, however ioncube loaders are working properly and I can log in to the script which is encoded as well. I have received notice from the seller that the license is good, so I don’t see why the cron job throws these errors. * I’ve also done this before on a differnt server and then it worked.

Anyone know what I am missing here ?

Lex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.