- This topic has 11 replies, 2 voices, and was last updated 2 years, 5 months ago by
David.
-
AuthorPosts
-
February 18, 2023 at 4:04 am #2537770
Jarko
6.2-beta2 PHP 8.1
Generate press theme 3.2.4http://localhost/wp/wp-admin/nav-menus.php
Gives following PHP warning (when debug is enabled)
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /public_html/blog/wp-admin/includes/plugin.php on line 2088
February 18, 2023 at 4:16 am #2537779Jarko
Also http://localhost/wp/wp-admin/customize.php gives:
Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\xampp\htdocs\wp\wp-includes\functions.wp-styles.php on line 90
When using Disable Elements in the GP premium Version 2.2.2
February 18, 2023 at 8:40 am #2538110David
StaffCustomer SupportThanks for reporting this, we will look into this.
March 21, 2023 at 1:19 pm #2576087Jarko
Any update on this issue? Still in GP Premium Version 2.3.0-rc.2 with WP 6.2 RC3 on PHP 8.2
wp-admin/nav-menus.php
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\xampp\htdocs\test\wp-admin\includes\plugin.php on line 2088
Thanks!
March 22, 2023 at 3:42 am #2576591David
StaffCustomer SupportOh, looks like that slipped through.
I assume the otherstripos
warning has gone ?Ill get the original issue sorted asap. Might be able to squeeze it in this update.
March 22, 2023 at 7:27 am #2576841Jarko
Cant reproduce the other warning, so not sure. but wp-admin/nav-menus.php is easy to reproduce. Would be great if fixed. Thanks!
March 22, 2023 at 8:04 am #2577031David
StaffCustomer SupportYeah – that was my mistake i only prioritised the second issue. We’ll take a look at the first!!
March 22, 2023 at 8:15 am #2577046David
StaffCustomer SupportOK, so excuse the back and forth – we took a closer look at the first issue. And it looks to be a core issue.
Can you check if it appears on your site without GPP and a different theme ?March 22, 2023 at 8:57 am #2577117Jarko
Isn’t nav-menus.php GP specific? As Twenty Twenty-Three Version: 1.1 don’t have nav-menus.php
Could it be same as the problem in https://core.trac.wordpress.org/ticket/57580
In WP 6.2 RC 3 WordPress has cleaned many PHP warnings for 8.2
Thanks!
March 23, 2023 at 5:52 am #2578630David
StaffCustomer Supportthe
nav-menus.php
is a core template for the menus admin screen. And i am pretty sure we don’t write any data to that.
Does the issue still show when GP Premium is disabled ?March 23, 2023 at 8:11 am #2578943Jarko
Yes looks like its core code. Made ticket https://core.trac.wordpress.org/ticket/57974#ticket
Yes when GP Premium is disabled it still exist. Don’t know another theme that use nav-menus.php as Tried “Twenty Twenty-Three Version: 1.1” but it gives “with Your theme does not support navigation menus or widgets.”March 23, 2023 at 3:40 pm #2579477David
StaffCustomer SupportTwenty23 is a block based theme so its using a block template for its header and nav, which may be why.
Looks like core has a fix ready for 6.2.1 -
AuthorPosts
- You must be logged in to reply to this topic.