PHP 8.1 Warning in et-core-plugin when XStore Pro Elements are disabled

This topic has 4 replies, 2 voices, and was last updated 3 weeks, 5 days ago ago by Jack Richardson

  • Avatar: Niddy
    Niddy
    Participant
    February 14, 2026 at 13:53

    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.

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 15, 2026 at 11:28

    Hello @Niddy,

    Please try activating patch #976347 and check the results. We have implemented a PHP fix in the mentioned function but were unable to reproduce the issue on our end.

    Additionally, as you mentioned that you are using both PRO Elements and Elementor PRO, please note that using both plugins simultaneously may cause conflicts. If you have Elementor PRO installed, we recommend using only that plugin on your website and keeping PRO Elements disabled or removed.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Niddy
    Niddy
    Participant
    February 15, 2026 at 12:52

    Hi

    I have applied all patches – I am not using Pro Elements – I clearly said I deleted this and use my Pro Licence.

    But funnily, today there are no such errors so maybe that fixed it – thanks, will keep my eye on it. Nice job 🙂

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 15, 2026 at 17:11

    Hello @Niddy,

    Thank you for your update and for letting us know. We are glad to hear that the issue seems to be resolved after applying all patches. Please continue to monitor the situation, and if any similar errors occur again, do not hesitate to contact us — we will be happy to assist you further.

    Best Regards,
    8Theme’s Team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.