I’m encountering several PHP notices and warnings from the Index WP MySQL For Speed
plugin when I click on the “About” tab in the plugin’s settings. Query Monitor flags these errors, and my error log shows lines like:
[06-Mar-2025 18:10:29 UTC] PHP Warning: Undefined property: stdClass::$cpu_MHz in /home/.../wp-content/plugins/index-wp-mysql-for-speed/code/health.php on line 226
[06-Mar-2025 18:10:29 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/.../wp-content/plugins/index-wp-mysql-for-speed/code/health.php on line 227
[06-Mar-2025 18:10:29 UTC] PHP Warning: Undefined property: stdClass::$model_name in /home/.../wp-content/plugins/index-wp-mysql-for-speed/code/health.php on line 248
[06-Mar-2025 18:10:29 UTC] PHP Warning: Undefined property: stdClass::$MemTotal in /home/.../wp-content/plugins/index-wp-mysql-for-speed/code/health.php on line 260
It appears the plugin tries to read certain properties (cpu_MHz
, model_name
, MemTotal
) that may not exist in some server environments, causing these warnings. Also, passing null
to explode()
triggers a deprecation notice in PHP 8.1+.
I wanted to report this so the developers can take a look and ensure compatibility with different server setups. Let me know if you need any further details or logs. Thank you!
]]>I’m looking forward to the fixes being pushed in the next update.
Warm regards from?,
Ludovic
[23-Aug-2024 10:54:32 UTC] PHP Warning: Undefined variable $shipping_cost in /wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php on line 1148
[23-Aug-2024 10:54:32 UTC] PHP Warning: Undefined variable $shipping_cost in /wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php on line 1181
[23-Aug-2024 10:54:32 UTC] PHP Warning: Undefined variable $total_products_processed in /wp-content/plugins/woo-product-feed-pro/includes/Classes/Product_Feed_Admin.php on line 236
Version 13.3.5.2?
Please, check it.
Warning: Undefined property: stdClass::$id in ../public_html/wp-content/plugins/simply-gallery-block/freemius/includes/class-fs-garbage-collector.php on line 190
Warning: Cannot modify header information - headers already sent by (output started at ../public_html/wp-content/plugins/simply-gallery-block/freemius/includes/class-fs-garbage-collector.php:190) in ../public_html>/wp-admin/includes/misc.php on line 1438
Warning: Cannot modify header information - headers already sent by (output started at ../public_html/wp-content/plugins/simply-gallery-block/freemius/includes/class-fs-garbage-collector.php:190) in ../public_html/wp-includes/functions.php on line 7108
Warning: Cannot modify header information - headers already sent by (output started at ../public_html/wp-content/plugins/simply-gallery-block/freemius/includes/class-fs-garbage-collector.php:190) in ../public_html/wp-admin/post.php on line 231
Warning: Cannot modify header information - headers already sent by (output started at ../public_html/wp-content/plugins/simply-gallery-block/freemius/includes/class-fs-garbage-collector.php:190) in ../public_html/wp-includes/pluggable.php on line 1435
Warning: Cannot modify header information - headers already sent by (output started at ../public_html/wp-content/plugins/simply-gallery-block/freemius/includes/class-fs-garbage-collector.php:190) in ../public_html/wp-includes/pluggable.php on line 1438
This does not happen every time I update something — maybe about every 3rd or 4th time. So far I haven’t seen this on any public facing pages, just in the WordPress Dashboard.
Any suggestions?
TIA
Warning: Undefined array key "per" in /var/www/.../wp-content/plugins/juicer/juicer.php on line?92
Warning: Undefined array key "pages" in /var/www/.../wp-content/plugins/juicer/juicer.php on line?94
Warning: Undefined array key "truncate" in /var/www/.../wp-content/plugins/juicer/juicer.php on line?96
I am using the twenty-four theme. Is this happening to anybody else?
]]>PHP warnings on helper.php
Warning: Attempt to read property "slug" on array in /wp-content/plugins/wp-event-solution/utils/helper.php on line 1484
// Original code:
foreach ( $terms as $value ) {
$location_data[ $value->slug ] = $value->name;
}
// FIX : Add a check if is_object() && property_exists()
foreach ( $terms as $value ) {
if (is_object($value) && property_exists($value, 'slug') && property_exists($value, 'name')) {
$location_data[$value->slug] = $value->name;
}
}
]]>I am hoping someone can assist with this problem of headers already sent in which has occurred twice.
I have lodged a support ticket on the pro site and had some email exchanges. I am unable to export a txt file from the Diagnostics tab because it throws a 503 service unavailable error each time. I have tried emailing it from that tab but have not heard as to whether the second attempt whether it went through. Even so the problem is still occurring and I am looking for help.
The PHP warnings are: Cannot modify header information – headers already sent in
/home/mysite/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 1195
/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php on line 749
/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php on line 750
/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php on line 751
I checked these files for whitespace or lines but all seemed in order.
I have not optimized the firewall. I deactivated the plugins systematically but no issues found. I ran my site on learning mode for a few days also.
I am on a shared server. Is there anything on the server side which could impact this behaviour given the 503? Or can these warnings be ignored?
I have no idea what to do next and suggestions would be greatly appreciated. Thank you for your time.
]]>Went through the troubleshooting list. Problem happens to all slideshows except one. None are using legacy sliders – all using Flexslider. The only one that works is using carousel mode. Using PHP8.1. Latest WP and other plugins. Active live site so can’t disable other plugins to test.
When editing the problematic slideshows, “Preview” frame gives Internal Server Error (500).
Tried making a brand new slideshow – same problem. Even when all settings (except height and width) are the same as the one that’s working.
Tried rolling back to 3.70.0 and then 3.62.0. Same errors.
After saving, cannot edit a draft page with the shortcode for a non working slideshow – produces a critical site error. Can preview the page (blank from slideshow onward).
With debugging on, here are the errors (replaced site info with “example”):
Warning: Trying to access array offset on value of type null in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.flex.class.php on line 104
Warning: foreach() argument must be of type array|object, null given in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php on line 526
Warning: Undefined variable $pairs in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php on line 536
Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php:536 Stack trace: #0 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php(536): implode(',\n ...', NULL) #1 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php(403): MetaSlider->get_javascript_parameters() #2 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php(721): MetaSlider->get_inline_javascript() #3 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.flex.class.php(283): MetaSlider->enqueue_scripts() #4 /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/ml-slider.php(606): MetaFlexSlider->enqueue_scripts() #5 /home/exampleuser/public_html/example.com/wp-includes/shortcodes.php(433): MetaSliderPlugin->register_shortcode(Array, '', 'metaslider') #6 [internal function]: do_shortcode_tag(Array) #7 /home/exampleuser/public_html/example.com/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(metasl...', 'do_shortcode_ta...', '\n<p><b>This is ...') #8 /home/exampleuser/public_html/example.com/wp-includes/class-wp-hook.php(324): do_shortcode('\n<p><b>This is ...') #9 /home/exampleuser/public_html/example.com/wp-includes/plugin.php(205): WP_Hook->apply_filters('\n<p><b>This is ...', Array) #10 /home/exampleuser/public_html/example.com/wp-includes/post-template.php(256): apply_filters('the_content', '<!-- wp:paragra...') #11 /home/exampleuser/public_html/example.com/wp-content/themes/cca2019/template-parts/content-page.php(20): the_content() #12 /home/exampleuser/public_html/example.com/wp-includes/template.php(812): require('/home/suncoas48...') #13 /home/exampleuser/public_html/example.com/wp-includes/template.php(745): load_template('/home/suncoas48...', false, Array) #14 /home/exampleuser/public_html/example.com/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #15 /home/exampleuser/public_html/example.com/wp-content/themes/cca2019/page.php(38): get_template_part('template-parts/...', 'page') #16 /home/exampleuser/public_html/example.com/wp-includes/template-loader.php(106): include('/home/suncoas48...') #17 /home/exampleuser/public_html/example.com/wp-blog-header.php(19): require_once('/home/suncoas48...') #18 /home/exampleuser/public_html/example.com/index.php(17): require('/home/suncoas48...') #19 {main} thrown in /home/exampleuser/public_html/example.com/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php on line 536
]]>we just noticed in one of our sites, that as long as NextGEN gallery is active our page-sitemap.xml is broken with 90x the same PHP Warning:
Warning: Undefined property: Imagely\NGG\DataTypes\Image::$title in /[SERVER-PATH]/[DOMAIN.TLD]/wp-content/plugins/nextgen-gallery/src/Legacy/lib/sitemap.php on line 81
Below this warning follows a list of URLs to all media library images and that’s it. No sitemap is visible. If we deactivate NextGEN Gallery the normal sitemap is running instantly.
I just googled the error message “Warning: Undefined property: Imagely\NGG\DataTypes\Image::$title” and found another website in the Google Index (https://www.disasterbunkers.com/page-sitemap.xml) that suffers from exact the same problem. In their source code I see that they, too, have Yoast installed, perhaps that is important since Yoast does something with the sitemap. But we ourselves have another NGG+Yoast installation without this problem.
How can we solve this problem? We don’t want to deinstall NGG but we also want to have a working sitemap.
Greetings and thanks a lot,
-doffine