WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Integration with vBulletin - Error with sanitize_url() (5 posts)

  1. baldbrian
    Member
    Posted 5 years ago #

    In trying to integration my WP and VB themes I ended up including the wp-blog-header.php in my VB header includes and then simply adding get_header(); in my VB header and get_footer(); in my VB footer. Basically the same process described for integrating WP with bbPress.

    Long story short, now I'm receiving the following error when I try to post a new thread or reply to a thread:

    Fatal error: Cannot redeclare sanitize_url() (previously declared in /home/mlmstuff/public_html/blog/wp-includes/formatting.php:1714) in /home/mlmstuff/public_html/forum/includes/functions_wysiwyg.php on line 56

    It appears that WP and VB both have a function called sanitize_url(). Is there a simple change I can make so that my WP include file that I'm including in VB doesn't include that function? Or does anyone else have an idea for me?

    I really appreciate the assistance!

    Brian

  2. Austin Matzko
    Member
    Posted 5 years ago #

    sanitize_url is defined in wp-includes/formatting.php and used only in wp-includes/widgets.php (twice) so just rename it in those places to something else, like wp_sanitize_url.

  3. baldbrian
    Member
    Posted 5 years ago #

    That's a million filosofo! that worked perfectly!

  4. hbalagh
    Member
    Posted 5 years ago #

    thanks, this helped me a bunch as well

  5. Gush
    Member
    Posted 5 years ago #

    I would like to put my wordpress header onto my VB forum too. Is there a guide/tutorial somewhere that I can follow?

Topic Closed

This topic has been closed to new replies.

About this Topic