WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
Fix some plugin conflicts, and specifically uBillboard (1 post)

  1. jcow
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic