Forums

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

  1. estereofonico
    Member
    Posted 2 months 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
    Member
    Posted 2 months ago #

    http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website

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

  3. estereofonico
    Member
    Posted 2 months 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?

Reply

You must log in to post.

About this Topic