Guest Posted September 9, 2010 Share Posted September 9, 2010 Hi all I totaly new at this and trying to get my shop up and running. I just got a white screen in my admin and after reading the posts here about it i am non the wiser. I got a bunch of error messages buty i have no cleu on what they mean or how to resolve them , can someone point me in the right direction please? The error codes are: Notice: Undefined variable: DOCUMENT_ROOT in /home/landyspe/public_html/shop/iadmin/includes/configure.php on line 20 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/landyspe/public_html/shop/iadmin/includes/configure.php:20) in /home/landyspe/public_html/shop/iadmin/includes/functions/sessions.php on line 102 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/landyspe/public_html/shop/iadmin/includes/configure.php:20) in /home/landyspe/public_html/shop/iadmin/includes/functions/sessions.php on line 102 Deprecated: Function eregi() is deprecated in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Deprecated: Function eregi() is deprecated in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Deprecated: Function eregi() is deprecated in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Deprecated: Function eregi() is deprecated in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Deprecated: Function eregi() is deprecated in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Deprecated: Function eregi() is deprecated in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Deprecated: Function eregi() is deprecated in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Deprecated: Function eregi() is deprecated in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Deprecated: Function eregi() is deprecated in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Warning: Cannot modify header information - headers already sent by (output started at /home/landyspe/public_html/shop/iadmin/includes/configure.php:20) in /home/landyspe/public_html/shop/iadmin/includes/functions/general.php on line 22 Many thanks in advance Rob Link to comment Share on other sites More sharing options...
mariusc2 Posted September 9, 2010 Share Posted September 9, 2010 Maybe this will solve your problem. Link to comment Share on other sites More sharing options...
Guest Posted September 9, 2010 Share Posted September 9, 2010 @ mariusc2 I changed the e to a p , but i think it´s not that simple as i now have : Notice: Undefined variable: DOCUMENT_ROOT in /home/landyspe/public_html/shop/iadmin/includes/configure.php on line 20 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/landyspe/public_html/shop/iadmin/includes/configure.php:20) in /home/landyspe/public_html/shop/iadmin/includes/functions/sessions.php on line 102 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/landyspe/public_html/shop/iadmin/includes/configure.php:20) in /home/landyspe/public_html/shop/iadmin/includes/functions/sessions.php on line 102 Fatal error: Call to undefined function pregi() in /home/landyspe/public_html/shop/iadmin/includes/classes/language.php on line 87 Were the last line is the same line that i changed , what did i do wrong? Thanks, Rob Link to comment Share on other sites More sharing options...
MrPhil Posted September 9, 2010 Share Posted September 9, 2010 Whoa! It's not just changing "ereg" to "preg". You have to change the full name and the argument list too! eregi('pattern', variable) becomes preg_match('/pattern/i', variable) The $DOCUMENT_ROOT variable may have been removed from PHP 5.3. Try changing uses of it to $_SERVER['DOCUMENT_ROOT'] The two warnings will go away once you've fixed the above two problems. Link to comment Share on other sites More sharing options...
mariusc2 Posted September 9, 2010 Share Posted September 9, 2010 I had same problems, i don't remember exactly how i did, trying to replace manually took me to the same error(i'm not so good in php), i think i used a contrib. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.