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

How can I rectify this error on my XAMPP. If ever I type 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



Comment viewing options

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

# Comment Id: 20373


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.