Hi, It's been a while since I have done any coding etc and even the simplist of coding is confusing me. The situaution is that I have been given the task to take control of one of our bars websites (I work for a company operating bars and nightclubs) and in the process of changing servers the following errors occured. Could you give me direction on where to fix this issue please. Warning: include(/home/fbwarr/public_html/inc/includes.inc) [function.include]: failed to open stream: No such file or directory in /home/funky2/public_html/index.php on line 1 Warning: include() [function.include]: Failed opening '/home/fbwarr/public_html/inc/includes.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/funky2/public_html/index.php on line 1 Warning: include(/home/fbwarr/public_html/inc/header_scripts.inc) [function.include]: failed to open stream: No such file or directory in /home/funky2/public_html/index.php on line 11 Warning: include() [function.include]: Failed opening '/home/fbwarr/public_html/inc/header_scripts.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/funky2/public_html/index.php on line 11 Warning: include(/home/fbwarr/public_html/inc/jump_nav.inc) [function.include]: failed to open stream: No such file or directory in /home/funky2/public_html/index.php on line 21 Warning: include() [function.include]: Failed opening '/home/fbwarr/public_html/inc/jump_nav.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/funky2/public_html/index.php on line 21 Warning: include(/home/fbwarr/public_html/inc/header_nav.inc) [function.include]: failed to open stream: No such file or directory in /home/funky2/public_html/index.php on line 27 Warning: include() [function.include]: Failed opening '/home/fbwarr/public_html/inc/header_nav.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/funky2/public_html/index.php on line 27 In advance I'd like to say thank you for all your help!
I'd guess your /inc/ directory is misplaced on the new server, or at least not in the right place relevant to the calls on index.php.
I believe its a simple problem. When you moved your website to a new server, the directory tree has changed, so you must ensure all the files have the new directory tree when including a file. Note: Here's one of your errors: It's saying that your new server directory tree is /home/fbwarr/public_html/ but you're looking in /home/funky2/public_html/ so you just need to do a search and replace. i.e. Replace funky2 with fbwarr.
Thank you GWiz, as the old saying goes.. 'it does, what it says on the tin!' Ps, thank you TelVPS as well.