{"id":12126039,"date":"2019-11-13T09:00:15","date_gmt":"2019-11-13T09:00:15","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-error-136\/"},"modified":"2019-11-13T09:00:15","modified_gmt":"2019-11-13T09:00:15","slug":"plugin-error-136","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-error-136\/","title":{"rendered":"Plugin error"},"content":{"rendered":"<p>Hi!<\/p>\n<p>After installing the plugin, the menu stop working, and I get the following message:<\/p>\n<p>2019\/11\/13 09:50:07 [error] 11811#11811: *1375383 FastCGI sent in stderr: &#8220;switcher\/includes\/class-language-switcher.php on line 268 PHP message: PHP Warning: Cannot assign an<br \/>\nempty string to a string offset in \/var\/www\/\/wp-content\/plugins\/language-switcher\/includes\/class-language-switcher.php on line 268 PHP message: PHP<br \/>\nWarning: Illegal string offset &#8216;main&#8217; in \/var\/www\/\/wp-content\/plugins\/language-switcher\/includes\/class-language-switcher.php on line 306 PHP message: PHP<br \/>\nWarning: Cannot assign an empty string to a string offset in \/var\/www\/\/wp-content\/plugins\/language-switcher\/includes\/class-language-switcher.php on line<br \/>\n306 PHP message: PHP Warning: Illegal string offset &#8216;main&#8217; in \/var\/www\/\/wp-content\/plugins\/language-switcher\/includes\/class-language-switcher.php on line<br \/>\n721 PHP message: PHP Warning: Illegal string offset &#8216;main&#8217; in \/var\/www\/\/wp-content\/plugins\/language-switcher\/includes\/class-language-switcher.php on line<br \/>\n724&#8221; while reading upstream, client: 213.148.195.143, server: doquaformacion.com, request: &#8220;GET \/ HTTP\/1.1&#8221;, upstream: &#8220;fastcgi:\/\/127.0.0.1:8999&#8221;, host: &#8220;www.mydomain.com&#8221;,<br \/>\nreferrer: &#8220;https:\/\/www.mydomain.com\/wp-admin\/customize.php?url=https%3A%2F%2Fwww.mydomain.com%2F&#8221; 2019\/11\/13 09:50:12 [error] 11812#11812: *1375490 FastCGI sent in<br \/>\nstderr: &#8220;PHP message: PHP Warning: Invalid argument supplied for foreach() in<br \/>\n\/var\/www\/\/wp-content\/plugins\/language-switcher\/includes\/class-language-switcher.php on line 771&#8221; while reading response header from upstream, client:<br \/>\n83.49.29.88, server: doquaformacion.com, request: &#8220;GET<br \/>\n\/wp-admin\/edit.php?s=&amp;post_status=all&amp;post_type=shop_order&amp;_wpnonce=092fc1308b&amp;_wp_http_referer=%2Fwp-admin%2Fedit.php%3Fpost_type%3Dshop_order&amp;action=trash&amp;m=0&amp;_customer_user=&amp;paged=1&amp;p$<br \/>\nHTTP\/1.1&#8221;, upstream: &#8220;fastcgi:\/\/127.0.0.1:8999&#8221;, host: &#8220;www.mydomain.com&#8221;, referrer: &#8220;https:\/\/www.mydomain.com\/wp-admin\/edit.php?post_type=shop_order&#8221; 2019\/11\/13<br \/>\n09:50:13 [error] 11812#11812: *1375490 FastCGI sent in stderr: &#8220;PHP message: PHP Warning: Invalid argument supplied for foreach() in<br \/>\n\/var\/www\/\/wp-content\/plugins\/language-switcher\/includes\/class-language-switcher.php on line 771&#8221; while reading response header from upstream, client:<br \/>\n83.49.29.88, server: doquaformacion.com, request: &#8220;GET \/wp-admin\/edit.php?post_type=shop_order&amp;paged=1&amp;trashed=1&amp;ids=2057&amp;locked=0 HTTP\/1.1&#8221;, upstream: &#8220;fastcgi:\/\/127.0.0.1:8999&#8221;,<br \/>\nhost: &#8220;www.mydomain.com&#8221;, referrer: &#8220;https:\/\/www.mydomain.com\/wp-admin\/edit.php?post_type=shop_order&#8221; 2019\/11\/13 09:50:15 [error] 11812#11812: *1375573 FastCGI sent in<br \/>\nstderr: &#8220;PHP message: PHP Warning: in_array() expects parameter 2 to be array, boolean given in<br \/>\n\/var\/www\/\/wp-content\/plugins\/language-switcher\/includes\/class-language-switcher.php on line 509 PHP message: PHP Warning: in_array() expects parameter 2 to<br \/>\nbe array, boolean given in \/var\/www\/\/wp-content\/plugins\/language-switcher\/includes\/class-language-switcher.php on line 509&#8221; while reading response header<br \/>\nfrom upstream, client: 83.49.29.88, server: doquaformacion.com, request: &#8220;GET \/wp-json\/wc\/v4\/products?low_in_stock=true&amp;page=1&amp;per_page=1&amp;status=publish&amp;_locale=user HTTP\/1.1&#8221;,<br \/>\nupstream: &#8220;fastcgi:\/\/127.0.0.1:8999&#8221;, host: &#8220;www.mydomain.com&#8221;, referrer: &#8220;https:\/\/www.mydomain.com\/wp-admin\/edit.php?post_type=shop_order&amp;paged=1&amp;ids=2057&#8221;<\/p>\n<p>I&#8217;m running WordPress 5.2.3 on nginx with PHP 7.2<\/p>\n<p>Is the plugin compatible with WordPress 5.2.3 and Woocommerce?<\/p>\n<p>Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-12126039","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12126039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12126039\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12126039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}