• Alison

    (@anonymical7)


    Hi all, hoping the wizards of WordPress and php can help me solve these two php errors that just appeared.

    Our site was migrated to a new server, it was working just fine before. A hosting company moved it for us. Suddenly these errors appeared and I want to understand what happened and how to fix it. A ***xo

    I removed the url name for abuse issues. Heres the url to see the site live: https://tinyurl.com/zwfyjp9

    Here are the errors:


    Error one: is the on the site after you go in further.

    Warning: Invalid argument supplied for foreach() in /home/___________/public_html/wp-content/plugins/display-opencart-category/wpdocc_main.php on line 33

    Error two: On the login page:

    Warning: Cannot modify header information – headers already sent by (output started at /home/_______________/public_html/wp-content/themes/twentytwelve-child/functions.php:28) in /home/_______________/public_html/wp-login.php on line 394

    Warning: Cannot modify header information – headers already sent by (output started at /home/_______________/public_html/wp-content/themes/twentytwelve-child/functions.php:28) in /home/_______________/public_html/wp-login.php on line 407

    • This topic was modified 7 years, 9 months ago by Alison.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Alison

    (@anonymical7)

    Update: The display-opencart-category was solved by renaming that plugin, but the other login page still is there. A xo

    In the Headers already sent error, you see this line
    /themes/twentytwelve-child/functions.php:28

    It is outputting something on some WP hook which is executed way earlier on the page generation stage which creates this headers already sent error.

    You may look into that code , or add that code in this thread so we can see what it is trying to do, could be some WP function which might needed new parameters or something…

    Thread Starter Alison

    (@anonymical7)

    Thanks warmarks! As of now the hosting company solved it in the end.

    I appreciate the response. a***xo

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Mysterious PHP errors after site migration (Warning: Invalid argument )’ is closed to new replies.