These are the errors in the debug log (thanks for putting me onto that!)
[31-Jan-2008 08:11:38] PHP Warning: require(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/xxxxxxxx/public_html/sub/index.php on line 43
[31-Jan-2008 08:11:38] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxxx/public_html/sub/index.php on line 43
Now, am I crazy, or is the constant incorrectly appended to the rest of the filename?
This is the code from the index.php in the sub directory
Code:
require($template->get_template_dir('html_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/html_header.php');
And this is the code from \includes\init_includes\init_templates.php
Code:
define('DIR_WS_TEMPLATE', DIR_WS_TEMPLATES . $template_dir . '/');
According to winmerge, init_templates.php is identical on both servers.
To me, it looks fine, so what am I missing??
Bookmarks