Page 1 of 1

Help with errors

Posted: Wed Nov 18, 2009 6:13 pm
by jmartin7
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

Re: Help with errors

Posted: Wed Nov 18, 2009 6:54 pm
by Jonah Bron
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

Posted: Wed Nov 18, 2009 9:04 pm
by jmartin7
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

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');
Line 192

Code: Select all

if (file_exists($pathToDomainInfo . ".v2")){
Line 193 blank
Line 194

Code: Select all

$mainDomain = trim(file_get_contents($pathToDomainInfo . ".v2"));
Line 229

Code: Select all

if (file_exists($pathToDomainInfo)) {
Line 230

Code: Select all

$mainDomain = file_get_contents($pathToDomainInfo);

Re: Help with errors

Posted: Fri Nov 27, 2009 10:25 am
by jmartin7
Still hoping to get some help with this. Thanks in advance.