• 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&#8221;); ?>

    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&#8217; 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi JMF,
    Why not try:

    <?php include_once(‘/username/public_html/php/trim_crap.php’); ?>

    (replace ‘username’ with your username of course) and see if that helps 🙂

    Regards,
    ~Teli

    Thread Starter Jeff

    (@jmf)

    Ha! /home/username/public_html/php/trim_crap.php does the trick! Thanks for the kick in the right direction, Teli!

    ::Jeff.

    Hey – glad I could help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom PHP Includes Break in 2.0 Template’ is closed to new replies.