{"id":15498753,"date":"2022-03-26T19:05:16","date_gmt":"2022-03-26T19:05:16","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-update-issues\/"},"modified":"2022-03-26T19:05:16","modified_gmt":"2022-03-26T19:05:16","slug":"php-update-issues","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-update-issues\/","title":{"rendered":"PHP update issues"},"content":{"rendered":"<p>Hi,<\/p>\n<p>My website has been working fine, however I had to upgrade my PHP version from 5.6.40 to 7.3.33 and now I&#8217;m getting some errors on my WordPress admin backend, more specifically on my Widgets page, which is not working.<\/p>\n<p>I have some Warnings on top of the page, such as:<\/p>\n<blockquote>\n<pre><code>Warning: strpos() expects parameter 1 to be string, array given in \/home\/customer\/www\/XXXXX.com\/public_html\/wp-content\/plugins\/qtranslate-x\/admin\/qtx_admin.php on line 783\n\nWarning: substr() expects parameter 1 to be string, array given in \/home\/customer\/www\/XXXXX.com\/public_html\/wp-content\/plugins\/qtranslate-x\/admin\/qtx_admin.php on line 784\n\nWarning: strpos(): Offset not contained in string in \/home\/customer\/www\/XXXXX.com\/public_html\/wp-content\/plugins\/qtranslate-x\/admin\/qtx_admin.php on line 783\n\nWarning: Cannot modify header information - headers already sent by (output started at \/home\/customer\/www\/XXXXX.com\/public_html\/wp-content\/plugins\/qtranslate-x\/admin\/qtx_admin.php:783) in \/home\/customer\/www\/XXXXX.com\/public_html\/wp-admin\/admin-header.php on line 9<\/code><\/pre>\n<\/blockquote>\n<p>I also have some messages informing that none of the widgets will work, most likely because of that. Here are some:<\/p>\n<blockquote><p>\n`The &#8220;custom_html&#8221; block was affected by errors and may not function properly. Check the developer tools for more details.<\/p>\n<p>The &#8220;recent-posts&#8221; block was affected by errors and may not function properly. Check the developer tools for more details.<\/p>\n<p>The &#8220;nav_menu&#8221; block was affected by errors and may not function properly. Check the developer tools for more details.<\/p>\n<p>The &#8220;gmap&#8221; block was affected by errors and may not function properly. Check the developer tools for more details.<\/p>\n<p>The &#8220;social&#8221; block was affected by errors and may not function properly. Check the developer tools for more details.<\/p>\n<p>The &#8220;contact_form&#8221; block was affected by errors and may not function properly. Check the developer tools for more details.\n<\/p><\/blockquote>\n<p>From what I&#8217;ve been investigating the function strpos() has changed in the latest PHP versions, and one of the parameters is not used anymore, that&#8217;s why this isn&#8217;t working. Any ideas to help me solve this?<\/p>\n","protected":false},"template":"","class_list":["post-15498753","topic","type-topic","status-publish","hentry","topic-tag-strpos","topic-tag-update","topic-tag-warning"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15498753","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\/15498753\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15498753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}