Using wp-blog-header.php outside wordpress (3 posts)

  1. estereofonico
    Posted 6 years ago #

    Hi, i'm trying to include some content in a some site outside my current install of WP 2.8.4, but when I do the include

    define('WP_USE_THEMES', true);
    require($_SERVER['DOCUMENT_ROOT'] . '/blog/wp-load.php');

    Then I get this error

    Fatal error: Call to undefined method stdClass::set_prefix() in /home/../public_html/blog/wp-settings.php on line 268

    Can anyone tell how can I solved this, how can I call the prefix to the DB to make this code work?

    Thanks for your concern.

  2. esmi
    Forum Moderator
    Posted 6 years ago #


    Looks like you're trying to combine the two approaches suggested when, as I understand it, they're either/or examples.

  3. estereofonico
    Posted 6 years ago #

    I read that link buti'm still getting the same error. I believe that in WP 2.8.4 the security issues where modified to avoid this kind of portability.

    Any other ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic