Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter resesidan

    (@resesidan)

    Forgott to say I am having a Multisite installation. And I tried to deactivate all plugins but still getting the error message

    Plugin Author Chouby

    (@chouby)

    Hi!

    I am aware of this conflict experienced by some users of the Hueman theme. So far, I never succeeded to reproduce it and so could not solve it. Sorry for this. Setting WP_DEBUG to false in wp-config.php should hide the warning if it is displayed on the screen (but won’t solve the problem if there is one).

    Sam

    (@wamshatley)

    Sorry I’m a bit late to the game – the only way I got round this (not upgrade safe) is by hacking core.

    Have a look in translations.php file at that line, and you should see something like this:

    /**
    * @param Translation_Entry $entry
    */
    function translate_entry(&$entry) {
    	$key = $entry->key();
    	return isset($this->entries[$key])? $this->entries[$key] : false;
    }

    Add an if statement to the middle so that it looks like this, and it should be fine:

    /**
    * @param Translation_Entry $entry
    */
    function translate_entry(&$entry) {
    	$key = $entry->key();
    	if(!is_array($key))
    	return isset($this->entries[$key])? $this->entries[$key] : false;
    }

    It looks like at some point there’s an array being passed for translation, and it doesn’t like it.

    Every time WordPress updates, you’ll need to put this line back in though 🙁

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error message’ is closed to new replies.