Shortcode warnings | WordPress.org

[ad_1]

Hi Webreact,

Yesterday we noticed that one of our website was generating a lot of warnings coming from the HelloDialog plugin. We use the shortcode option on this site, and got the following warning:

[Thu Jan 04 18:47:21.635015 2024] ‘PHP message: PHP Warning: foreach() argument must be of type array|object, null given in [SERVER_PATH]/plugins/hellodialog/shortcodes/shortcode.php on line 174’

Because of the huge amount of these warnings, our logs actually clogged op the server which resulted in some downtime. For the time being we had to disable te plugin, after which the site worked fine again. Today we also activated the plugin again, but the warnings also seem te be gone.

Is this something you guys might have seen before? We are on the latest version of the plugin, running PHP8.2 on the server. Thanks in advance for your time!

  • This topic was modified 2 hours, 38 minutes ago by bastiiaann24.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer