Forums / General Questions / error general question: failed to open stream: No such file or directory

error general question: failed to open stream: No such file or directory

Views: 1,182

Results 1 to 2 of 2
13 Oct 2013, 5:04 PM
#1
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

error general question: failed to open stream: No such file or directory

I'm trying to clean up some errors in my page loads. Cache shows this error.

PHP Warning: require(includes/templates/template_default/templates/tpl_page_10_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/scanmyid/public_html/includes/templates/template_default/common/tpl_main_page.php on line 122

I'm sure I don't have a page 10. Where can I find the source of this ?

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

13 Oct 2013, 7:59 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: error general question: failed to open stream: No such file or directory

The Zen Cart program flow (abbreviated) is this:

a) user visits index.php?main_page=page_10
b) this loads the /includes/modules/pages/page_10/header_php.php file
c) then the /includes/templates/YOUR_TEMPLATE/tpl_page_10_default.php

Normally if there is no /includes/modules/pages/page_10/header_php.php then the Missing Page Check logic will kick in, unless you've got it disabled, in which case the tpl_page_10_default.php will be requested. It could also be that you've got rewritten-url mods installed that intercept this normal program flow and do something differently than the default.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.