• kubaroki

    (@kubaroki)


    Hi,

    since the 3.21 update on multiple websites I am getting a PHP error which shows up twice, as follows:
    Warning: Undefined array key “background_color” in …/wp-content/plugins/elementor/includes/conditions.php on line 87

    If a gradient is being used, there are another 2 lines, but with “background_color_b”.

    This happens on multiple websites, does not matter which theme as they are built with Astra, Hello and OceanWP. It does not seem to be plugin conflict related either, seems to be purely an Elementor issue.

    Issue goes away when background colour is set manually, for example #FFFFFF instead of picking a “White” colour from previously saved colours in Elementor. Downgrading Elementor to 3.20.x helps too.

    WordPress is updated to 6.5.2, error has been occurring both on PHP version 8.2 and 8.3.

Viewing 1 replies (of 1 total)
  • Plugin Support marthaeli

    (@marthaeli)

    Hi @kubaroki,

    I understand you are having issues using the global colors with Elementor despite using a different theme.

    Please check the php error server log for any indication of a conflict with Elementor.

    I also recommend regenerating CSS and data; go to Elementor > Tools and click Regenerate Files & Data. See if there is any difference.

    To verify this is not an issue with your hosting enviroment, please create a local site and try to reproduce the same problem with only Elementor plugins installed.

    Let us know if you need additional assistance.

Viewing 1 replies (of 1 total)

The topic ‘Dynamic background colour throws PHP error in 3.21’ is closed to new replies.