Please help with these error messages. I am as newbie as it gets. I feel confident making changes, and have researched enough to have some ideas, but prefer to make changes suggested by someone with experience. Thanks.
I recognize that all the errors are associated with the Common.inc.php file. I can post that if necessary.
Notice: Constant _SYSTEM_MODE already defined in /www/zzl.org/s/l/e/sleeplessgiantpac/htdocs/classes/commons/includes/Common.inc.php on line 38
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/www///domain.info.v2) is not within the allowed path(s): (/www/zzl.org/s/l/e/sleeplessgiantpac/htdocs) in /www/zzl.org/s/l/e/sleeplessgiantpac/htdocs/classes/commons/includes/Common.inc.php on line 192
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/www///domain.info) is not within the allowed path(s): (/www/zzl.org/s/l/e/sleeplessgiantpac/htdocs) in /www/zzl.org/s/l/e/sleeplessgiantpac/htdocs/classes/commons/includes/Common.inc.php on line 229
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/www///classes/commons/lib/smarty/Smarty.class.php) is not within the allowed path(s): (/www/zzl.org/s/l/e/sleeplessgiantpac/htdocs) in /www/zzl.org/s/l/e/sleeplessgiantpac/htdocs/classes/commons/includes/Common.inc.php on line 78
Warning: require_once(/www///classes/commons/lib/smarty/Smarty.class.php) [function.require-once]: failed to open stream: Operation not permitted in /www/zzl.org/s/l/e/sleeplessgiantpac/htdocs/classes/commons/includes/Common.inc.php on line 78
Fatal error: require_once() [function.require]: Failed opening required '/www///classes/commons/lib/smarty/Smarty.class.php' (include_path='.:/usr/lib/php:/www//') in /www/zzl.org/s/l/e/sleeplessgiantpac/htdocs/classes/commons/includes/Common.inc.php on line 78
Help with errors
Moderator: General Moderators
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Help with errors
It looks like the file is very large. Please post the lines listed in the error messages (and don't forget to wrap them in the [syntax=php][/syntax] tags).
Re: Help with errors
You're correct, the file is large. I included a couple of lines following 192, and one following 229 since they appeared to be part of the same code. I hope I got what you need. Thanks for the help.
Line 38
Line 78
Line 192
Line 193 blank
Line 194
Line 229
Line 230
Line 38
Code: Select all
define('_SYSTEM_MODE', 'RUN');Line 78
Code: Select all
require_once (_ENV_PROJECT_BASE . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'commons' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'smarty' . DIRECTORY_SEPARATOR . 'Smarty.class.php');Code: Select all
if (file_exists($pathToDomainInfo . ".v2")){Line 194
Code: Select all
$mainDomain = trim(file_get_contents($pathToDomainInfo . ".v2"));Code: Select all
if (file_exists($pathToDomainInfo)) {Code: Select all
$mainDomain = file_get_contents($pathToDomainInfo);Re: Help with errors
Still hoping to get some help with this. Thanks in advance.