• Hi, I have recently installed polylang version 1.4 and after switching it on I’m getting a message on my website (just below my menu, and on dashboard as well): Warning: Illegal offset type in /home/virt364/domains/virt364.wirt-01.netdc.pl/public_html/wp-content/plugins/polylang/include/olt-manager.php on line 110

    Can anybody help me? I don’t know what the problem is.
    Regards

    https://www.ads-software.com/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    There are two ways to solve this:

    1. Hide the message by editing your wp-config.php and setting WP_DEBUG to false instead of true.

    2. Find the reason for this message: Try de-activating all your plugins except Polylang and switch your theme to Twenty Twelve. The message should disappear (at least I don’t have it). Then activate your theme and your plugins one by one to find out which one conflict with Poylang.

    Thread Starter marur

    (@marur)

    Hi Chouby,
    thank you for your advice. I have switched off every single plugin and it appeared, that Google Maps Ready! had caused the conflict.
    Once again thanks for your help. I do appreciate your time taken in my case.
    Best regards.

    Plugin Author Chouby

    (@chouby)

    Thanks,

    I confirm the conflict with Google Maps Ready! I posted a bug report on this plugin forum. See https://www.ads-software.com/support/topic/wrong-usage-of-function-_

    I will also include a protection in Polylang v1.5 to avoid this warning in the future but of course it won’t fix bugs in other plugins currently causing this warning.

    If you want to include the fix before Polylang 1.5 is released, you can edit the file polylang/include/olt-manager.php at line 110 and replace:

    $this->labels[$text] = array('domain' => $domain);

    by

    if (is_string($text)) // avoid a notice with some buggy plugins which pass an array
    	$this->labels[$text] = array('domain' => $domain);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error on olt-manager.php on line 110’ is closed to new replies.