WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Maftik
    Member
    Posted 5 years ago #

    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?

  2. Maftik
    Member
    Posted 5 years ago #

    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

  3. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    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.

  4. Maftik
    Member
    Posted 5 years ago #

    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?

  5. Maftik
    Member
    Posted 5 years ago #

    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 ...

  6. Maftik
    Member
    Posted 5 years ago #

    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!!

Topic Closed

This topic has been closed to new replies.

About this Topic