Custom PHP Includes Break in 2.0 Template
-
Well, I took a *deep* breath, and upgraded from 1.2 to 2.0 — and I’ve run into a bit of a glitch, I think. My 1.2 page was *heavily* customized, with a bunch of my own php scripts added in, for various elements in the sidebar, etc. (None modified WP functionality, these are all just additions.)
When I fire up 2.0, it chokes on the first include, in the <head> of my template:
<?php include_once(“http://www.ferrellweb.com/php/trim_crap.php”); ?>
When the page loads, I get this error:
Warning: main(http://ferrellweb.com/php/trim_crap.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/ferrellw/public_html/wp/wp-content/themes/ferrellweb/index.php on line 39
Warning: main(): Failed opening ‘http://ferrellweb.com/php/trim_crap.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/ferrellw/public_html/wp/wp-content/themes/ferrellweb/index.php on line 39
Is my code getting caught up in some main() function WP uses now? The rest of the page loads fine, depending on how many of the includes I comment out. (You can view the whole mess here http://www.ferrellweb.com/wp/ if that helps at all?
Any ideas how I can get my includes to work again? Thanks!
- The topic ‘Custom PHP Includes Break in 2.0 Template’ is closed to new replies.