PHP error

Discussion in 'PHP' started by vvaahhiidd, Jun 28, 2010.

  1. #1
    plz help me

    Warning: require_once(library/customer.php) [function.require-once]: failed to open stream: No such file or directory in /home/tabpcmar/public_html/index.php on line 15

    Fatal error: require_once() [function.require]: Failed opening required 'library/customer.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tabpcmar/public_html/index.php on line 15
     
    vvaahhiidd, Jun 28, 2010 IP
  2. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #2
    The error should be self-explanatory - your index page is trying to open "library/customer.php" and this file doesnt exist.

    Have you checked if the file is there / accessible?
     
    lukeg32, Jun 28, 2010 IP
  3. Houdas

    Houdas Well-Known Member

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Check your include paths. You can use something like this:

    
    ini_set('include_path',ini_get('include_path').':../includes:'); 
    
    Code (markup):
    to add your custom path to already defined ones.
     
    Houdas, Jun 28, 2010 IP
  4. strgraphics

    strgraphics Active Member

    Messages:
    710
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Check the file customer.php, whether it is there in your current folder or not..!
     
    strgraphics, Jun 28, 2010 IP
  5. vvaahhiidd

    vvaahhiidd Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes, this file "library/customer.php" accessible.
     
    vvaahhiidd, Jun 28, 2010 IP
  6. vvaahhiidd

    vvaahhiidd Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    this file accessible public_html/system/library/customer.php
     
    vvaahhiidd, Jun 28, 2010 IP
  7. Mibunal

    Mibunal Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    system/library/customer.php
    Code (markup):
    Replace your include path with the above - what does it say ?
     
    Mibunal, Jun 28, 2010 IP
  8. spyka

    spyka Greenhorn

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #8
    If customer.php is in public_html/system/library/ and index.php is in public_html/ then you need to include system/library/customer.php, not just library/customer.php
     
    spyka, Jun 28, 2010 IP
  9. vvaahhiidd

    vvaahhiidd Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I Replace "system/library/customer.php" files but now dont open any page!
    this is my site tabpcmarket.ir
     
    vvaahhiidd, Jun 28, 2010 IP
  10. themullet

    themullet Member

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #10
    is startup.php in the same folder as index.php ? if not change the path in require to point at startup.php or move startup.php to the same folder as index.php
     
    themullet, Jun 29, 2010 IP
  11. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #11
    Did you code these files? If not, you might want to consult the manual or the person that wrote it for assistance.

    The error is fairly self-explanatory;

    Warning: require_once(library/customer.php) [function.require-once]: failed to open stream: No such file or directory in /home/tabpcmar/public_html/index.php on line 15

    It has told you everything you need to know here; index.php is trying to open library/customer.php and it cant because it doesnt exist. Your file structure is wrong, or you havent uploaded all of the files. It doesnt make these things up, so the problem you need to fix has been clearly identified.

    Later on, you have replaced this with system/library/customer.php so clearly the path was incorrect; if this still isnt working then have you worked through every step as detailed in the manual of this script? If this is something you have created, what debugs have you done on this?
     
    lukeg32, Jun 29, 2010 IP