WordPress.org

Ready to get started?Download WordPress

Forums

oik
[resolved] Possible Plugin Conflict (5 posts)

  1. StefExakt
    Member
    Posted 1 year ago #

    I just installed Booking Wiz for wordpress and when I tried to activate the BookingWiz plugin I received this error message:

    Fatal error: Cannot redeclare bw_admin() (previously declared in /home/nspahost/public_html/newlonpiersall/wp-content/plugins/oik/bobbcomp.inc:382) in /home/nspahost/public_html/newlonpiersall/wp-content/plugins/bookingwizz_wp/booking_wizard.php on line 284

    I was able to activate BookingWiz only after deactivating the oik base plugin. Is this error message due to a plugin conflict? Is there a way this conflict can be resolved and I can use both the BookingWiz plugin and the oik base plugin (needed because I am using the oik nivo slider on the site's homepage)?

    I am not great with php so I didn't try to resolve the error message myself by editing the php files - didn't want to break anything.

    Any advice is greatly appreciated! Thanks!

    http://wordpress.org/extend/plugins/oik/

  2. bobbingwide
    Member
    Plugin Author

    Posted 1 year ago #

    Hi StefExakt. It looks like both oik and BookingWizz use the same prefix for functions - bw_ - and that we've both implemented a function called bw_admin.
    Note: PHP is case insensitive when it comes to function names.

    The prefix I use is from bobbing wide.

    Since BookingWizz is a lot newer than oik (their first version is 4 July 2012) then I could hope that the conflict would be resolved by a change to their code. BUT I haven't tried asking them.

    My version of bw_admin() implements a very simple shortcode [bw_admin]
    If you're not using it, which I doubt you are, I suggest you comment out the code.

    //function bw_admin() {
    //  return( bw_output( "admin" ));
    //}

    I'll have think about the best way of dealing with this issue.
    Could you send me the BookingWizz zip file so I can check all the other functions they use?

  3. bobbingwide
    Member
    Plugin Author

    Posted 11 months ago #

    The function name will be changed to bw_admin_sc in the next version of oik.

  4. bobbingwide
    Member
    Plugin Author

    Posted 11 months ago #

    The function name will be changed to bw_admin_sc in the next version of oik.

  5. bobbingwide
    Member
    Plugin Author

    Posted 11 months ago #

    Version 2.0.1 contained this change.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic