No of visitors who read this post: 3552
Category: XAMPP
Type: Question
No votes yet

How can I rectify this error on my XAMPP. If ever I type 127.0.0.1 to enter my localhost page I encounter this error


Warning: file_get_contents(lang.tmp) [function.file-get-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\xampp\index.php on line 2 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\xampp\index.php:2) in C:\xampp\htdocs\xampp\index.php on line 4

Thanks


 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

# Comment Id: 20373

Greetings,

This error occurs because of lang.tmp file. The lang.tmp file in the /opt/lampp/htdocs/xampp/ folder got deleted. So use vim, nano or other text editor you like and make the file call lang.tmp in that folder. Then simply put text "en" and save it. But make sure that you don't have any kind of cleanup program which deletes .tmp files in that folder. If you are unable to figure out why remove all the privileges but read.

If you get some error after this also then check the name of the lang.tmp file in php. As the error regarding the name of Lang file might come.

Jenny