Hi there,
Thank you for reaching out and providing the exact error log!
I have tried to replicate this warning on our end using version 3.1.9, but everything is running smoothly in our test environments so far.
To help me track down exactly why this is happening periodically on your setup, could you provide a few more details?
- PHP Version: Which version of PHP is your server currently running?
- WordPress Version: Are you on the latest version of WordPress, or a specific older release?
- Active Theme: Which theme is currently active on the site?
- Trigger/Behavior: Have you noticed if this error pops up after a specific action (like logging into the dashboard, saving a post, or running a backup), or does it seem completely random?
Once I have a bit more context about your environment, I can better pinpoint why that property is going missing and get this sorted out for you.
Best regards,
Rodica
After further research, it appears that another plugin we have is adjusting the HTTP callout to api.ww.wp.xz.cn to get the themes and not returning the active_installs field. I will follow up with the other plugin.
But in your code, it would be safest to handle it gracefully when the field doesn’t exist. If you use the empty function, that won’t give a warning if the field doesn’t exist: empty($theme->active_installs)
Ok, thank you for the update!