Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Posts
    42
    Plugin Contributions
    0

    Default require(includes/index_filters/default): No such file or directory

    Hi,

    I'm using Zen Cart Version 1.3.8a and tried to install the FedEx module. I edited the tpl_footer.php file as required, but put it in the wrong file, so I moved to to the correct one and then discovered that my website now shows a blank page. So I deleted all the FedEx module files and my website still shows a blank page.

    I used the debugger module and got the following, but I have no idea what it means or what I need to do to correct the problem. Any help would be most appreciated.

    [15-Sep-2009 18:20:14] PHP Warning: require(includes/index_filters/default) [function.require]: failed to open stream: No such file or directory in /home/blue/public_html/store/includes/modules/pages/index/header_php.php on line 49
    [15-Sep-2009 18:20:14] PHP Warning: require(includes/index_filters/default) [function.require]: failed to open stream: No such file or directory in /home/blue/public_html/store/includes/modules/pages/index/header_php.php on line 49
    [15-Sep-2009 18:20:14] PHP Fatal error: require() [function.require]: Failed opening required 'includes/index_filters/default' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/blue/php') in /home/blue/public_html/store/includes/modules/pages/index/header_php.php on line 49


    Thank you!

  2. #2
    Join Date
    Apr 2009
    Location
    In a traffic jam
    Posts
    1,998
    Plugin Contributions
    1

    Default Re: require(includes/index_filters/default): No such file or directory

    It means that it is looking for a file and can't find it where it thinks it should be. In general, there are two reasons, the file doesn't exist or it is in the wrong place.

    Zen Cart builds the URLs of the files as it needs them. The line that is causing a problem is in includes/modules/pages/index/header_php.php line 49 which reads:

    Code:
    require(DIR_WS_INCLUDES . zen_get_index_filters_directory($typefilter . '_filter.php'));
    It looks like either your version of this line is incorrect or there is something funky happening in the function that it calls (zen_get_index_filters_directory).

    So, first check this line. Look at the bit that says '_filter.php' in particular. That will be a good start...

    Of course you could also try re-uploading this file from a virgin copy of zen cart. But have look first.

  3. #3
    Join Date
    Aug 2008
    Posts
    42
    Plugin Contributions
    0

    Default Re: require(includes/index_filters/default): No such file or directory

    Thank you. Your response helped get me started in the right direction. What happened is I accidentally moved the index_filters folder into another folder without knowing I did it. Move it back where it belongs and everything is a go again.

 

 

Similar Threads

  1. Admin error (Warning: main(includes/application_top.php) No such file or directory
    By mparkes1 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 21 Feb 2009, 06:01 PM
  2. /includes/languages/spanish/modules/payment/paypal.php: no such file or directory
    By thosecars82 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 2 Oct 2008, 06:45 PM
  3. Replies: 1
    Last Post: 6 Jan 2008, 09:41 PM
  4. Replies: 6
    Last Post: 23 Oct 2007, 06:28 PM
  5. Warning: main(includes/index_filters/default): failed to open stream:????
    By atracksler in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Nov 2006, 08:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •