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

Viewing 1 replies (of 1 total)
  • Thread Starter wordpresssa

    (@wordpresssa)

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

Viewing 1 replies (of 1 total)
  • The topic ‘Failed to install wordpress’ is closed to new replies.