Jump to content
MakeWebGames

"Undefined lines" problem


S.Cosmin

Recommended Posts

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.

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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  
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...