WordPress.org

Support

Support » Installation » Invalid argument supplied for foreach()in wp-include/capabilities.php on line31

Invalid argument supplied for foreach()in wp-include/capabilities.php on line31

  • Hello
    I have upgraded wordpress and after upgrade process it wrote this message:

    Warning: Invalid argument supplied for foreach() in /home/katolickhwylfcc3/html/wp-includes/capabilities.php on line 31

    But it also written that upgrade was finished successfully.

    However, now I can’t login into administration. When I try to login, it writes:

    Warning: Invalid argument supplied for foreach() in /home/katolickhwylfcc3/html/wp-includes/capabilities.php on line 31

    Warning: Cannot modify header information – headers already sent by (output started at /home/katolickhwylfcc3/html/wp-includes/capabilities.php:31) in /home/katolickhwylfcc3/html/wp-includes/pluggable.php on line 595

    Warning: Cannot modify header information – headers already sent by (output started at /home/katolickhwylfcc3/html/wp-includes/capabilities.php:31) in /home/katolickhwylfcc3/html/wp-includes/pluggable.php on line 596

    Warning: Cannot modify header information – headers already sent by (output started at /home/katolickhwylfcc3/html/wp-includes/capabilities.php:31) in /home/katolickhwylfcc3/html/wp-includes/pluggable.php on line 597

    Warning: Cannot modify header information – headers already sent by (output started at /home/katolickhwylfcc3/html/wp-includes/capabilities.php:31) in /home/katolickhwylfcc3/html/wp-includes/pluggable.php on line 770

    WHere is the problem? Was upgrade really successfull?

Viewing 5 replies - 1 through 5 (of 5 total)
  • One more information: this happens only when I pass correct login name and password. When I pass bad password, it correctly writes “inv”alid password” and login dialog is correctly displayed

    You would need to re-upload your wp-includes folder via FTP and make sure that all files are there. Then run http://www.example.com/wp-admin/upgrade.php
    Good luck.

    I re-uploaded them but it didin’t helped. When I tried to re-run upgrade.php, it wrote this:

    No Upgrade Required
    Your WordPress database is already up-to-date!

    Should I re-run upgrade.php whit argument step set to 1? Why should I re-run upgrade at all?

    Well, I tried to reinstall whole wordpress (i tried to install czech version). Now no warning message after upgrade, but same problem remains when I try to login. Is it some problem with PHP? The provider runs PHP version 5 …

    I found that this was discussed in this topic:
    http://wordpress.org/support/topic/67796
    But although I´ve tried all the advices, it didn´t helped!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invalid argument supplied for foreach()in wp-include/capabilities.php on line31’ is closed to new replies.
Skip to toolbar