• Hey there Elementor team,

    in the new version 2.9.0 there is a bug causing a PHP warning on the frontend. This didn’t happen in 2.8.5.

    Here is the warning (PHP is 7.3):
    Warning: array_merge(): Expected parameter 1 to be an array, null given in /[SERVERPATH]/wp-content/plugins/elementor/includes/base/controls-stack.php on line 1184

    Could you fix this?

    Many greetings,
    -doffine

Viewing 15 replies - 1 through 15 (of 30 total)
  • Hi,

    Please try following the steps in our guide regarding this matter:
    https://docs.elementor.com/article/235-update-issues

    I hope this information helps you solve the error.

    Hi,

    i found a solution, for me work i have change row 1184

    from
    $dynamic_settings = array_merge( $dynamic_settings, $control['dynamic'] );
    to
    $dynamic_settings = array_merge( wp_parse_id_list( $dynamic_settings ), $control['dynamic'] );

    I had the same issue. Changed row 1184 as described above an it now works again. Will this be solved in future updates?

    Same problem after updating elementor.

    Solution from rapace81 works fine.

    Thx

    Hi, thanks @rapace81, worked for me as well!

    John

    (@shadowcrown)

    Hi Elementor team and, @rapace81

    ??

    Thank you for the quick turn around, file updated and now working.

    Well done and appreciated. John

    Thread Starter doffine

    (@doffine)

    @davidr90,

    we tried fixing the problems with the list of your link https://docs.elementor.com/article/235-update-issues – without success.

    The only that helps is the solution above from @rapace81. It seems that he fixed your bug.

    What will you do now? Will there be an update including this?

    It doesn’t help me to manually fix this now and with your next update it will be overwritten again.

    -doffine

    Try the solution posed by @rapace81 and it didn’t work.

    the only request was to return to version 2.8.5

    @rapace81 your provided solution worked for the Warning: array_merge(): Expected parameter 1 to be an array, null given in /[SERVERPATH]/wp-content/plugins/elementor/includes/base/controls-stack.php on line 1184

    But after applying your fix, another issues is displaying with buttons mentioned below:

    Warning: Illegal string offset ‘is_external’ in /home/***/public_html/wp-content/plugins/auxin-elements/includes/elementor/widgets/button.php on line 581

    Warning: Illegal string offset ‘url’ in /home/***/public_html/wp-content/plugins/auxin-elements/includes/elementor/widgets/button.php on line 592

    Warning: Illegal string offset ‘nofollow’ in /home/***/public_html/wp-content/plugins/auxin-elements/includes/elementor/widgets/button.php on line 593

    @rapace81 fix worked for me… ??
    THX!!

    Sure hope Elementor fixes this soon, please..
    Thx

    Running:
    El 1.2.2
    El Pro 2.8.4
    WooCommerce 3.9.2

    Hi,
    for me solution from @rapace81 works fine.
    Thx ??

    Hi,
    @rapace81 the solution has got rid of the warning but whenever I am trying to edit a page with elementor, its showing “Server Error (400 Bad Request). I have no idea what to do, I have increased all the memory limits and even spoke to my hosting provider. They said ther server is configured according to Elementor’s requirements.

    The solution from rapace81 might work for some, but have in mind that various errors could occur. Make sure you have a complete update in place.

    Other thing to try before changing the control-stack.php, or even after if there occur consequent errors:
    Checking php version and updating to 7.3 or 7.4.
    This works for me and customers.
    Do this in your hosting interface or ask for support.

    Other possibility is to roll back your elementor version (find it under elementor options/tools; version control).

    So my PHP Version is 7.3, I tried rolling back to El 2.8.5, the “Server Error (400 Bad Request)” still shows as soon as edit with elementor page is opened or any update is made through elementor.

    Any help, would be highly appreciated.

    @motadon
    Otherwise try
    – php version 7.4
    – deactivate all plugins and see if it changes anything, then activate them one after the other (ftp)
    – completely remove elementor from the ftp server and reinstall it
    – try different browsers to see if the problem occurs in each

    If nothing works; did you make a backup of the file? If so, undo it and wait until elementor brings a fix.

    If you mean your profile page, I can open it in Chrome browser.

    • This reply was modified 4 years, 9 months ago by joplode.
    • This reply was modified 4 years, 9 months ago by joplode.
Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘Bug in 2.9.0: PHP warning’ is closed to new replies.