[resolved] is my include a PHP or WP problem? (2 posts)

  1. moody
    Posted 12 years ago #

    good thinking. that's what i tried, but i got this:
    Fatal error: Call to a member function on a non-object in /home/user/public_html/website/wp-includes/wp-l10n.php on line 37
    and if i change the included to be wp ready, i'm sure some fatal loop occurs because now on the WP i get this:
    Warning: main(../wp-blog-header.php): failed to open stream: No such file or directory in /home/user/public_html/website/incs/inc_arch.php on line 3
    Fatal error: main(): Failed opening required '../wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/website/incs/inc_arch.php on line 3

  2. junesix
    Posted 12 years ago #

    Take that blog-header.php section out of your include file and use this statement instead for calling the include module
    <?php include(ABSPATH . 'path/filename.php'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.