Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Posts
    44
    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
    Posts
    2,134
    Plugin Contributions
    3

    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
    44
    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. dir(includes/templates/classic/index) NO such file or directory. Stacktrace.
    By tzre in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 3 Aug 2011, 09:32 PM
  2. Replies: 0
    Last Post: 10 Oct 2009, 02:38 AM
  3. /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
  4. Replies: 6
    Last Post: 23 Oct 2007, 06:28 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR