This is a problem that I just encountered and I am seeking the correct solution and the normal procedure that Zen Cart uses in these instances.
Zen Cart - 1.3.5 - fresh install - no modules
Custom template; created. tpl_ header.php copied from template_default to includes/templates/custom/common.
I did not like the changes that I made and deleted the overriden tpl_header.php file
Received this set of errors:
Code:
Warning: main(includes/templates/custom/common/tpl_header.php): failed to open stream:
No such file or directory in home/public_html/domain/includes/templates/custom/common/tpl_main_page.php
on line 70
Warning: main(includes/templates/custom/common/tpl_header.php): failed to open stream:
No such file or directory in /home/public_html/domain/includes/templates/custom/common/tpl_main_page.php
on line 70
Fatal error: main(): Failed opening required 'includes/templates/custom/common/tpl_header.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/public_html/domain/includes/templates/custom/common/tpl_main_page.php on line 70
Zen Cart did not revert back to the file located in the template default fileset, cleared cache, closed browser, tried another browser.
Copied the core tpl_header.php, un-edited, to includes/templates/custom/common and all was functional again.
Now, it has been my understanding that Zen Cart first looks for an overriden file and if none is found then it uses the default file.
But this current action does not appear to follow this convention.
Checked the wiki and found a list of "automatically included files" and these are not among the list.
Is this normal? Where is the fact that this file was overriden stored?
Bookmarks