• Hello,

    Warning: array_merge(): Argument #2 is not an array in /home/USERNAME/public_html/wp-includes/load.php on line 66

    I recently noticed that one of my pages has this error and all the pages on the homepage have the warning at the top.

    Additionally one page does not load and i get these warnings

    Warning: Cannot modify header information – headers already sent by (output started at /home/USERNAME/public_html/wp-includes/load.php:66) in /home/USERNAME/public_html/wp-includes/pluggable.php on line 1251

    Warning: Cannot modify header information – headers already sent by (output started at /home/USERNAME/public_html/wp-includes/load.php:66) in /home/USERNAME/public_html/wp-includes/pluggable.php on line 1254

    using wordpress 5.1.1.

    if i go into the admin panel and preview the page i can see the contents which is weird… I found some topics for similar issues with line 63 but not sure if they are related to this. I’m guessing there is something wrong with another file or plugin and not this file itself but not entirely sure.

    how can i fix this?

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Nineteen theme. If the problem goes away, enable them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter bamorbambam

    (@bamorbambam)

    Hi James,

    Thank you for your response. I installed the plugin and disabled my plugins and using the TwentyNineteen theme version 1.3 (not sure how to check if i’m using the default or if i’ve made any changes to it but given the errors below maybe this is part of the issue)

    I went to the location “/home/USERNAME/public_html/wp-content/themes/twentynineteen/inc/” and i don’t see a shortcodes folder. could that be part of the problem? I went to the twentynineteen git repo and don’t see that folder either so i’m rather confused…

    Here are the additional new warnings i get with healthcheck troublshooting…

    Warning: include(/home/USERNAME/public_html/wp-content/themes/twentynineteen/inc/shortcodes/vc_shortcodes/vc_row.php): failed to open stream: No such file or directory in /home/USERNAME/public_html/wp-content/plugins/thegem-elements/inc/shortcodes/vc_shortcodes/init.php on line 370

    Warning: include(): Failed opening ‘/home/USERNAME/public_html/wp-content/themes/twentynineteen/inc/shortcodes/vc_shortcodes/vc_row.php’ for inclusion (include_path=’.:/usr/local/php72/pear’) in /home/USERNAME/public_html/wp-content/plugins/thegem-elements/inc/shortcodes/vc_shortcodes/init.php on line 370

    Thread Starter bamorbambam

    (@bamorbambam)

    looks like i didn’t have WPBakery Visual Composer enabled, when i do i get yet another error… I have both TheGem Theme elements and TheGem Import plugins enabled… not sure where to go from here…

    Fatal error: Uncaught Error: Call to undefined function thegem_check_array_value() in /home/USERNAME/public_html/wp-content/plugins/thegem-elements/inc/shortcodes/shortcodes.php:1115 Stack trace: #0 /home/USERNAME/public_html/wp-includes/shortcodes.php(325): thegem_icon_shortcode(Array, '', 'gem_icon') #1 [internal function]: do_shortcode_tag(Array) #2 /home/USERNAME/public_html/wp-includes/shortcodes.php(199): preg_replace_callback('/\\[(\\[?)(gem_di...', 'do_shortcode_ta...', '[gem_icon pack=...') #3 /home/USERNAME/public_html/wp-content/plugins/js_composer/include/helpers/helpers.php(232): do_shortcode('[gem_icon pack=...') #4 /home/USERNAME/public_html/wp-content/plugins/js_composer/include/templates/shortcodes/vc_column.php(93): wpb_js_remove_wpautop('[gem_icon pack=...') #5 /home/USERNAME/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php(473): include('/home/USERNAME/...') #6 /home/USERNAME/public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php(453): W in /home/USERNAME/public_html/wp-content/plugins/thegem-elements/inc/shortcodes/shortcodes.php on line 1115

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    You’ll need to get in touch with WPBakery’s support about that via https://support.wpbakery.com/

    Thread Starter bamorbambam

    (@bamorbambam)

    still having same main issue which is the warning at the top of the page…

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    You’ll still need to get in touch with WPBakery’s support about that via https://support.wpbakery.com/

    Thread Starter bamorbambam

    (@bamorbambam)

    can you explain why? I get the error even when the plugin is disabled.

    Per their support page: Important: Official WPBakery support is available only for direct clients. If you have received any of WPBakery products within a theme you should ask your theme author for assistance.

    I’m using the plugin through thegem theme and the creators of the theme haven’t responded to my inquiry about the issue, but even if i disable the plugin and/or the theme i still have the error.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Oh sorry, the second error. If you notice the file path, it’s coming from the thegem-elements plugin.

    What error do you have with that plugin deactivated?

    Thread Starter bamorbambam

    (@bamorbambam)

    the error is the topic of the thread…

    removing my php.ini seems to fix the problem, i’m not sure why and i’m not sure if there are any side affects

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Warning: array_merge(): Argument #2 is not an array in /home/USERNAME/public_html/wp-includes/load.php on line 66

    Ah, so, in my first reply I gave some troubleshooting steps: https://wordpress.org/support/topic/warning-array_merge-argument-2-is-not-an-array-in-load-php-on-line-66/#post-11319404

    After that you made it sound like the error went away, and was replaced with some Visual Composer errors: https://wordpress.org/support/topic/warning-array_merge-argument-2-is-not-an-array-in-load-php-on-line-66/#post-11319839

    Did you maybe skip the part about turning plugins back on one-by-one, to find the plugin causing the problem?

    amnesiac9

    (@amnesiac9)

    Hey, I had this issue, and it was because my PHP version got changed for some reason to an old version of PHP.

    Used these instructions to fix: https://www.siteground.com/kb/how_to_have_different_php_versions/

    I simply selected the latest PHP version and the issue went away.

    • This reply was modified 5 years ago by amnesiac9.

    Hi bamorbambam,

    I had the exact same issue as the topic of this thread and it drove me mad. It also blocked the entire login page..
    I went this far to add a completely clean install of wordpress and as soon as I added even an empty php.ini file, the errors appeared. So it had clearly nothing to do with plugins or themes or whatever.

    After some searching I started fiddling around with the PHP versions. I started on v7.1. Switching to v7.3.4 fixed it for me. Or so I though because after some time it started failing again. I switched back to v7.1 and it was now fixed, or so I hoped again because today I saw it was failing again. I could switch again to v7.3.4 but it was clearly not a stable solution…

    I contacted the helpdesk and they told me “oh but you need to add some specific lines to your php.ini file to make it work”…
    They seem to have enabled “Zend Optimizer” and “ionCube”. Not really sure what they are but the errors are gone for now…

    These were the two magical lines added:

    zend_extension=/usr/local/php71/lib/php/extensions/ioncube.so
    zend_extension=/usr/local/php71/lib/php/extensions/ZendOptimizer.so

    Make sure though you enable this for the right version of PHP. I’m running on PHP v7.1 hence .../php71/...
    (I’m hosted on SiteGround. I’m not sure if this works on all host..)

    An other solution would be to add your php.ini values to you .htaccess file like so:

    php_value upload_max_filesize 64M
    php_value post_max_size 64M

    This way you don’t have any php.ini file and the errors should not appear..
    Some references and more info:
    https://www.php.net/manual/en/configuration.changes.php
    https://www.ipserverone.info/control-panel/how-to-change-php-ini-values-using-htaccess/
    https://www.certguidance.com/change-php-settings-using-htaccess-php-ini/

    I haven’t tried this out just yet because I’m first going to give the Zend Optimizer and ionCube a chance..

    hope this helps 🙂

    • This reply was modified 4 years, 12 months ago by jsber. Reason: added references

    I had the same problem with this error:

    Warning: array_merge(): Argument #2 is not an array in /home/USERNAME/public_html/wp-includes/load.php on line 66

    It started when I installed and enabled Wordfence firewall, and added auto_prepend_file to my PHP variables manager. My host is SiteGround so I contacted their support and they switched my PHP version back to 7.0.33, which seemed to fix it, but I pointed out that Wordfence should work on their managed PHP 7.1 (as stated in Wordfence’s documentation). SiteGround escalated the issue to their technical support, who said the problem seemed to be with the load.php file, so they replaced that file with a “clean version,” and the problem seemed to stop. I’m not sure how there was a problem with my load.php file, as I’m on the latest 5.1.1 WordPress. I’m now running PHP 7.1 without any errors, and Wordfence firewall seems to be working too. We’ll see if the problem returns.

    SiteGround did not recommend anything with Zend Optimizer or ionCube.

    I just resolved by changing PHP version to 7.2.18 and fixed this issue.

    I tried lower and higher versions, only this version works.

    Wish this help

    • This reply was modified 4 years, 11 months ago by samyliu.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Warning: array_merge(): Argument #2 is not an array in ../load.php on line 66’ is closed to new replies.