XAMPP Error : Warning: file_get_contents(lang.tmp)

Asked By 0 points N/A Posted on -
qa-featured

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:xampphtdocsxamppindex.php on line 2 Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsxamppindex.php:2) in C:xampphtdocsxamppindex.php on line 4

Thanks

 


 

SHARE
Answered By 0 points N/A #86891

XAMPP Error : Warning: file_get_contents(lang.tmp)

qa-featured

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

Related Questions