Hi,
I’m seeing a PHP warning originating from the XStore Core plugin when XStore Pro Elements are disabled.
Environment:
PHP 8.1
Latest XStore theme + Core plugin
Latest Elementor + Elementor Pro
et-core-plugin active
When Pro Elements are disabled (while still using Elementor Pro), the following warning appears in server logs:
PHP Warning: Undefined array key "pages" in
/wp-content/plugins/et-core-plugin/app/controllers/elementor.php on line 199
PHP Warning: foreach() argument must be of type array|object, null given in
/wp-content/plugins/et-core-plugin/app/controllers/elementor.php on line 199
The site functions normally, but this warning is consistently logged.
It appears that when Pro Elements are disabled, the pages array is not set, yet the controller still runs a foreach() on it without checking isset() or !empty().
This looks like a small defensive coding issue in the Elementor controller.
Could you please confirm and advise if a patch is available?
Thank you.