Problem with my site could you please help me out with we're am going wrong..

Discussion in 'HTML & Website Design' started by DannyKay2011, Jan 18, 2011.

  1. #1
    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!
     
    DannyKay2011, Jan 18, 2011 IP
  2. TelVPS

    TelVPS Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    TelVPS, Jan 18, 2011 IP
  3. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    GWiz, Jan 18, 2011 IP
  4. DannyKay2011

    DannyKay2011 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you GWiz, as the old saying goes.. 'it does, what it says on the tin!' Ps, thank you TelVPS as well.
     
    DannyKay2011, Jan 18, 2011 IP