Forums / General Questions / require(includes/index_filters/default): No such file or directory

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

Locked

Started by bluefirefly on 16 Sep 2009, 6:11 PM · Views: 1,747

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Sep 2009, 6:11 PM
#1
bluefirefly avatar

bluefirefly

New Zenner

Join Date:
Aug 2008
Posts:
44
Plugin Contributions:
0

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!

16 Sep 2009, 8:27 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

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:

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.

Nick
iszent.com

17 Sep 2009, 2:14 AM
#3
bluefirefly avatar

bluefirefly

New Zenner

Join Date:
Aug 2008
Posts:
44
Plugin Contributions:
0

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. :smile: