help with Fatal error

Discussion in 'PHP' started by pcweb, Dec 8, 2008.

  1. #1
    can anybody tell me whats wrong with this on my site:

    Warning: include_once(/web/htdocs/www.xxxxx.com/home/open/include/class/adodb/adodb.inc.php) [function.include-once]: failed to open stream: No such file or directory in /web/htdocs/www.xxxxx.com/home/home/open/include/common.php on line 23

    Warning: include_once() [function.include]: Failed opening '/web/htdocs/www.xxxxx.com/home/open/include/class/adodb/adodb.inc.php' for inclusion (include_path='.:/php5/lib/php/') in /web/htdocs/www.xxxxx.com/home/home/open/include/common.php on line 23

    Warning: include_once(/web/htdocs/www.xxxxx.com/home/open/include/misc.inc.php) [function.include-once]: failed to open stream: No such file or directory in /web/htdocs/www.xxxxx.com/home/home/open/include/common.php on line 24

    Warning: include_once() [function.include]: Failed opening '/web/htdocs/www.xxxxx.com/home/open/include/misc.inc.php' for inclusion (include_path='.:/php5/lib/php/') in /web/htdocs/www.xxxxx.com/home/home/open/include/common.php on line 24

    Fatal error: Class 'misc' not found in /web/htdocs/www.xxxxx.com/home/home/open/include/common.php on line 25

    ps: xxxxx= my domain

    thanks
     
    pcweb, Dec 8, 2008 IP
  2. MakeThatDollar

    MakeThatDollar Notable Member

    Messages:
    4,451
    Likes Received:
    158
    Best Answers:
    0
    Trophy Points:
    225
    #2
    Looks like the following files do not exist:

    /home/open/include/class/adodb/adodb.inc.php
    /home/open/include/misc.inc.php

    Your common.php file includes references to those files.

    Did you happen to make changes or edits to common.php?

    I recommend saving a backup of that file and re-uploading a fresh copy of the file.
     
    MakeThatDollar, Dec 8, 2008 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    this is just the current page cannot locate the file include..
    make use of $_SERVER['DOCUMENT_ROOT'];
     
    bartolay13, Dec 8, 2008 IP
  4. pcweb

    pcweb Peon

    Messages:
    802
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have edited on cocmmon.php,
    to: include_once("http://www.xxxxx.com/open/include/class/adodb/adodb.inc.php");
    include_once("http://www.xxxxx.com/open/include/misc.inc.php

    then my site :

    Fatal error: Class 'misc' not found in /home/home/open/include/common.php on line 25


    how can I do ?
     
    pcweb, Dec 8, 2008 IP
  5. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #5
    are you on a window server?
     
    javaongsan, Dec 8, 2008 IP
  6. pcweb

    pcweb Peon

    Messages:
    802
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    pcweb, Dec 8, 2008 IP
  7. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #7
    looks like your root directory is configured wrongly.
     
    javaongsan, Dec 8, 2008 IP