Help with errors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jmartin7
Forum Newbie
Posts: 3
Joined: Wed Nov 18, 2009 6:00 pm

Help with errors

Post 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
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Help with errors

Post 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).
jmartin7
Forum Newbie
Posts: 3
Joined: Wed Nov 18, 2009 6:00 pm

Re: Help with errors

Post 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);
jmartin7
Forum Newbie
Posts: 3
Joined: Wed Nov 18, 2009 6:00 pm

Re: Help with errors

Post by jmartin7 »

Still hoping to get some help with this. Thanks in advance.
Post Reply