• Resolved texins5

    (@texins5)


    I’m trying to set up the Wordfence firewall on SiteGround. I’ve done this before without issues by following your specific instructions regarding SiteGround and manually adding the PHP variable, but this time I get the following error on my site when I make that change. I’ve removed the php.ini file that was created, because it was breaking my site, but I’m wondering if you have any suggestions for me. Thanks!

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

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

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @texins5,

    Do you still have those errors even after removing the php.ini file?

    To enable the PHP variable, you can follow these steps (I’m not sure what steps were provided to you before)

    1. Login to cPanel
    2. Click on PHP Variables
    3. Add auto_prepend_file
    4. Set it to the file such as /home/mark5528/public_html/wordfence-waf.php

    Dave

    Thread Starter texins5

    (@texins5)

    Those are the steps I followed precisely. The error disappears after removing the php.ini file. So there’s no long-term issue — other than the fact that I can’t get the firewall optimized.

    Hi again,

    We’ve had this issue come up in the past before, and what seems to work is also adding this variable into your php.ini:

    auto_globals_jit = off

    Can you try adding that via cPanel or manually to your php.ini to see if that works?

    Dave

    Thread Starter texins5

    (@texins5)

    Perfect, thank you so much!

    This also helped me. Finally, I can set up the firewall! I’ve been going a few years without it because it always screwed up my site. Glad to see a workaround has been figured out. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SiteGround issue’ is closed to new replies.