WordPress.org

Forums

Failed to install wordpress (2 posts)

  1. wordpresssa
    Member
    Posted 7 years ago #

    I was trying to install wordpress 2.2.

    It fails in the second step printing a series of error messages that preg_match expects string and the argument is an array.

    W`arning: preg_match() expects parameter 2 to be string, array given in /home/httpd/vhosts/... path to upgrade-functions.php on line 715

    Warning: preg_match() expects parameter 2 to be string, array given in /home/httpd/vhosts/... path to upgrade-functions.php on line 719

    Warning: preg_match() expects parameter 2 to be string, array given in /home/httpd/vhosts/... path to upgrade-functions.php on line 722

    Followed by a series of database errors..
    WordPress database error: [Table 'dbsblog.wp_options' doesn't exist]
    `
    At the bottom it says,
    Finished!
    Now you can log in with the username "admin" and password
    as if the installation was successful.

    Is this a problem with the PHP version being used?

    The PHP version used is 4.3.10 and mysql version is 4.0.25
    Apache version is 2.0.51

    Any body having the similar issue? Please help.
    Thanks in advance.

  2. wordpresssa
    Member
    Posted 7 years ago #

    Got the bug..
    The 'foreach' behaviour in the php 4.3.10 created al the mess.
    It got installed when I replaced 556 occurences of foreach with

    while(list($key, $value) = each($array))

Topic Closed

This topic has been closed to new replies.

About this Topic