- This topic has 9 replies, 4 voices, and was last updated 3 years, 4 months ago by
Tom.
-
AuthorPosts
-
November 8, 2022 at 3:35 pm #2407142
roadlink
Hi there,
fyi.
Deprecated stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated 1
wp-includes/functions.wp-styles.php:90
Plugin: gp-premiumNovember 8, 2022 at 8:26 pm #2407344Tom
Lead DeveloperLead DeveloperHi there,
Any chance you can share the full stack?
Thanks!
November 9, 2022 at 2:04 am #2407680roadlink
Hi Tom,
I will provide whatever you need.
What do you mean with full stack?Whole error log?
November 9, 2022 at 4:13 am #2407848David
StaffCustomer SupportHi there,
Can we see the stack trace for that particular error.
There should be several lines information after that line in the error.If need be send the whole error log.
When doing so, can you highlight it and click the code button in the toolbar before submitting the reply.
November 9, 2022 at 2:08 pm #2408901roadlink
add whole file here.
We have some other plugins with errors. Sorry file is a bit big.November 10, 2022 at 5:22 am #2409705David
StaffCustomer SupportWow, that will take us a day and a half lol.
Where you see this line:
Deprecated stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated 1 wp-includes/functions.wp-styles.php:90What is immediately before and after it ?
November 10, 2022 at 11:35 am #2410355roadlink
OK David you got me here 🙂
I really don’t know.
Let me follow a bit more time and come back to you later.November 11, 2022 at 4:25 am #2411096David
StaffCustomer SupportOK – let us know 🙂
November 11, 2022 at 10:04 am #2411656Steven
Hello,
I get the same warning, with the following stack trace:
#0 wp-content/plugins/gp-premium/menu-plus/functions/generate-menu-plus.php(735): wp_add_inline_style(‘…’, NULL)
#1 wp-includes/class-wp-hook.php(308): generate_menu_plus_enqueue_css(”)
#2 wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#3 wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 wp-includes/script-loader.php(2180): do_action(‘…’)
#5 wp-includes/class-wp-hook.php(308): wp_enqueue_scripts(”)
#6 wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#7 wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 wp-includes/general-template.php(3043): do_action(‘…’)
#9 wp-content/themes/generatepress/header.php(16): wp_head()
#10 wp-includes/template.php(783): require_once(‘…’)
#11 wp-includes/template.php(718): load_template(‘…’, true, Array)
#12 wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#13 wp-content/themes/generatepress/page.php(17): get_header()
#14 wp-includes/template-loader.php(106): include(‘…’)
#15 wp-blog-header.php(19): require_once(‘…’)
#16 index.php(17): require(‘…’)Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in wp-includes/functions.wp-styles.php on line 90
PHP 8.1
Wordpress 6.1
GeneratePressVersion: 3.2.2
GPPremium 2.2.1November 11, 2022 at 8:52 pm #2412066Tom
Lead DeveloperLead DeveloperThanks for this! Seems WordPress should cast a string in its function there, but we can do our part to make sure it returns a string if nothing exists. Logged here for the next version: https://github.com/tomusborne/generatepress/issues/475
-
AuthorPosts
- You must be logged in to reply to this topic.