WordPress.org

Ready to get started?Download WordPress

Forums

Install script worked, have a DB and user, but can't login = invalid arguement (2 posts)

  1. askegg
    Member
    Posted 8 years ago #

    Hi All,

    I have just installed the latest version of WP and ran the installation script with no probelms.

    However, when I visit the login page and supply the admin username and password I get a:

    Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/andina.com.au/httpdocs/wp-includes/capabilities.php on line 19

    Warning: Cannot modify header information...

    I have tried altering the capabilities.php file to work over the invalid foreach loop, but then I get "You do not have permission ..." error.

    The MySQL and PHP versions are fine.

    What am I missing?

  2. askegg
    Member
    Posted 8 years ago #

    Fixed!

    Add this to your wp-config.php file:

    define('DISABLE_CACHE', true);
    set_magic_quotes_runtime('0');
    ini_set("magic_quotes_gpc","0");

    See this post:

    http://wordpress.org/support/topic/52806?replies=25

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags