virtuozzo / OnApp-WHMCS-UsersModule

MIT License
12 stars 16 forks source link

PHP Call Error? #8

Closed colterlovette closed 7 years ago

colterlovette commented 9 years ago

root@portal:/var/www/html/modules/servers/onappusers/cronjobs# php -q test.php -l PHP Warning: require_once(/var/www/html/modules/servers/onappusers/cronjobs/dbconnect.php): failed to open stream: No such file or directory in /var/www/html/modules/servers/onappusers/cronjobs/common.php on line 276 PHP Fatal error: require_once(): Failed opening required '/var/www/html/modules/servers/onappusers/cronjobs/dbconnect.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/modules/servers/onappusers/cronjobs/common.php on line 276

colterlovette commented 9 years ago

Seems to lie somewhere in here:

if( file_exists( $this->root . 'init.php' ) ) { require_once $this->root . 'init.php'; } else { require_once $this->root . 'dbconnect.php'; include_once $this->root . 'includes/functions.php'; }

I'm not sure the file path referenced is right somewhere in a variable declaration. It should be looking for the two files (dbconnect & init) in the root directory for our WHMCS install which is just /var/www/html/.

Config.php reflects this as the $WHMCS... variable.