• Resolved baldbrian

    (@baldbrian)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter baldbrian

    (@baldbrian)

    That’s a million filosofo! that worked perfectly!

    hbalagh

    (@hbalagh)

    thanks, this helped me a bunch as well

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Integration with vBulletin – Error with sanitize_url()’ is closed to new replies.