Start a new topic

Errors when run locally.

When I run the free website I got this error. How can I fix this? Need help. Thanks.

 Notice: Undefined index: ALL_HTTP in C:\xampp\htdocs\packs_sample\fudi-pack\app\detect.php on line 118

 Warning: include(web/404.html): failed to open stream: No such file or directory in C:\xampp\htdocs\packs_sample\fudi-pack\index.php on line 31


 Warning: include(): Failed opening 'web/404.html' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\packs_sample\fudi-pack\index.php on line 31

1 person has this problem

Dear Xtian Rok

Go to that perticular line 118 in that page and comment and try again 

Notice: Undefined index: ALL_HTTP in C:\wamp\www\RAW\app\detect.php on line 118

Warning: include(web/404.html): failed to open stream: No such file or directory in C:\wamp\www\RAW\index.php on line 25

Warning: include(): Failed opening 'web/404.html' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\RAW\index.php on line 25

After looking at the code I created a file called "404.html" and placed it in the "web" folder of the project. This solved 2 of the errors. I still have

Notice: Undefined index: ALL_HTTP in C:\wamp\www\RAW\app\detect.php on line 118

I opened the detect.php file in the app directory and looked at line 118. This looked different to the other lines around it so I changed

'ALL_HTTP' to 'HTTP_USER_AGENT

This clears all the errors and works fine when I use


http://127.0.0.1/Mysite/


Do NOT use

http://127.0.0.1/Mysite/index.php

or

http://127.0.0.1/Mysite/index.html


Hope that helps.

Login or Signup to post a comment