S.Cosmin Posted May 6, 2012 Share Posted May 6, 2012 Hi everybody, I work on localhost and i use the last version of XAMPP. I dont know why with the last version of xamp i have many errors like: Notice: Undefined variable: ir in C:\xampp\htdocs\language.php on line 92 or Notice: Undefined index: bguard in C:\xampp\htdocs\header.php on line 151 or See the pic, http://tinypic.com/r/2qnm5pe/6 Can somebody help me to fix that? PS: With the old XAMPP i had no problem like this before. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted May 6, 2012 Share Posted May 6, 2012 The latest version of xampp do have the warning/notice setup as default error level which wasn't like that before. It means it will trigger an error every time you access a variable (for reading) which wasn't defined / set before. Two options, either you change the error level in the php.ini or you fix your code (which would be better). Quote Link to comment Share on other sites More sharing options...
S.Cosmin Posted May 6, 2012 Author Share Posted May 6, 2012 I have fix more than 75% of errors but what should i do with this one`? Notice: Constant MONO_ON already defined in C:\xampp\htdocs\header.php on line 10 Quote Link to comment Share on other sites More sharing options...
Spudinski Posted May 6, 2012 Share Posted May 6, 2012 The latest version of xampp do have the warning/notice setup as default error level which wasn't like that before. (which would be better). Actually, that's PHP.. @S.Cosmin: Find your .htaccess file, and add the following: php_value error_reporting 1927 # or 2039 This will only show: E_ERROR, E_WARNING, E_PARSE, E_USER_ERROR, E_USER_WARNING and E_USER_NOTICE error types. Quote Link to comment Share on other sites More sharing options...
S.Cosmin Posted May 6, 2012 Author Share Posted May 6, 2012 I have 6 .htaccess files but witch one ... Can you tell me where exactly is the file please? Quote Link to comment Share on other sites More sharing options...
Lithium Posted May 6, 2012 Share Posted May 6, 2012 assuming you have the game under /htdocs there should be the .htaccess file! Quote Link to comment Share on other sites More sharing options...
S.Cosmin Posted May 6, 2012 Author Share Posted May 6, 2012 assuming you have the game under /htdocs there should be the .htaccess file! I cant find it :( i mean isnt there Quote Link to comment Share on other sites More sharing options...
Lithium Posted May 6, 2012 Share Posted May 6, 2012 create one... a new txt file, rename it on Dos because Windows doesn't allow to rename it that way, place what Spud suggested and of you go! Quote Link to comment Share on other sites More sharing options...
S.Cosmin Posted May 6, 2012 Author Share Posted May 6, 2012 create one... a new txt file, rename it on Dos because Windows doesn't allow to rename it that way, place what Spud suggested and of you go! I have create one and after that i added that line and got error! Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster. Error 500 localhost 05/06/12 14:33:58 Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 Quote Link to comment Share on other sites More sharing options...
Spudinski Posted May 6, 2012 Share Posted May 6, 2012 create one... a new txt file, rename it on Dos because Windows doesn't allow to rename it that way, place what Spud suggested and of you go! Wordpad will. Quote Link to comment Share on other sites More sharing options...
S.Cosmin Posted May 6, 2012 Author Share Posted May 6, 2012 I dont know how to do this, i try many times... This is over me... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.