Additionally, on the same page I get the error… Warning: foreach() argument must be of type array|object, null given in /…/plugins/performance-lab/modules/images/webp-uploads/load.php on line 594
Thanks for reaching out @opfoxtuck. We’d certainly be happy to look into this and see what we can determine. In order to do so, can you share the following:
- What version of PHP are you using?
- Is there a particular wp-admin page or even a page on the front end of your site where you’re encountering these warnings, or do you notice these anytime you upload an image?
- When checking your Site Health status (Tools > Site Health > Status) can you confirm that your site supports WebP (Example)? If so, you’ll find it under the “Passed tests” section.
Looking forward to hearing from you.
Thanks for your response. Using PHP 8.0. Happening on a specific page (site is in dev mode, so nothing public to show. I will have a dig around over the weekend. I’ll close this ticket and see how I get on.
Thanks for the suggestions.
Thanks for the update @opfoxtuck. The warnings may be originating in how the plugin works with WordPress core and PHP 8, with this version still in beta support.
As it’s a warning as opposed to an error I suspect it won’t cause issues, but do let us know if you find anything else. I’ll also make the team aware of your query in the meantime. Thank you, and have a great weekend.
Just to let you know I’ve created the following GitHub issue based on your experience:
https://github.com/WordPress/performance/issues/632
Many thanks for flagging this.