Is anyone aware of Apache server or PHP settings that would stop this from working:
<?php include("".$install_path."/".$theme_path."/aFileName.php"); ?>
Install path in this case is: http://www.domain.com/blog/; and theme path is wp-content/themes/themeName
This has been extensively tested and works everywhere so far except on one server that I’m aware of. Also, the files that are being included are indeed available. What’s even stranger is the error log is reporting PHP Warnings that these includes aren’t including and it’s halting the script (for a warning). And guess what, the error is showing the correct path to these files and they are existing.
Any ideas? Thanks.
PS: Here’s the log output (with some substitutions):
[client 00.00.00.00] PHP Warning: main(http://www.domain.com/blog/wp-content/themes/themeName/aFileName.php):
failed to open stream: HTTP request failed! \x80' \xff\xbf\x7f in www/XXXXX/public_html/wordpress/wp-content/themes/themeName/header.php on line 26
- The topic ‘Includes not Including, Warnings halting script’ is closed to new replies.