WordPress.org

Support

Support » Plugins and Hacks » Fix some plugin conflicts, and specifically uBillboard

Fix some plugin conflicts, and specifically uBillboard

  • The plugin tries to run its translation on all of your site’s options. This can wreak havoc at times.

    For example, with uBillboard plugin, qTranslate changes the options for it that will turn your site into a 502 Gateway Error.

    It isn’t often, but this can be a real mess.

    To fix uBillboard conflict (this could potentially guide other plugin conflicts as well), I edited qtranslate_core.php.

    Update the “IF” statement from lines 129 – 136 to check for your plugin’s prefix:

    if(!defined('WP_ADMIN')) {
    	$alloptions = wp_load_alloptions();
    	foreach($alloptions as $option => $value) {
    		if ( false === strpos($option, 'billboard') )
    			add_filter('option_'.$option, 'qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage',0);
    	}
    }

    Where “if ( false === strpos($option, ‘billboard’) )” is a new line that has been added.

    Look for your plugin’s prefix in the wp_options table and change that out. Might fix other plugin’s conflicts as well.

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

  • The topic ‘Fix some plugin conflicts, and specifically uBillboard’ is closed to new replies.