Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter rebeccadewinter

    (@rebeccadewinter)

    Problem solved after rebooting the machine.
    Thanks for your help!

    Thread Starter rebeccadewinter

    (@rebeccadewinter)

    Output:

    pkg_info | grep php5
    php5-5.2.4_1 PHP Scripting Language
    php5-mysql-5.2.4_1 The mysql shared extension for php
    php5-pcre-5.2.4_1 The pcre shared extension for php

    …after having installed php5-pcre.
    Result is just the same:

    Fatal error: Call to undefined function preg_match() in /usr/home/domain/htdocs/wp-includes/wp-db.php on line 287

    Thread Starter rebeccadewinter

    (@rebeccadewinter)

    Now:
    file you mentioned uploaded, result is different, well not really:

    Fatal error: Call to undefined function preg_match() in /usr/home/domain/htdocs/wp-includes/wp-db.php on line 287

    Files are uploaded in correct mode, did .PHP again manually in ASCII mode to be really sure, result is the same.
    OK, maybe the bug is in the MySQL, therefor here is how the database was created:

    # mysql -u root
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 171 to server version: 4.1.22
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql> CREATE DATABASE wordpress;
    Query OK, 1 row affected (0.00 sec)
    
    mysql> GRANT ALL PRIVILEGES ON wordpress.* TO "wordpress"@"localhost"
        -> IDENTIFIED BY "password";
    Query OK, 0 rows affected (0.04 sec)

    Any idea?

    Thread Starter rebeccadewinter

    (@rebeccadewinter)

    OK, I’ll download it again and make another try.

    Thread Starter rebeccadewinter

    (@rebeccadewinter)

    This is my line 288:
    if ( preg_match("/^\\s*(insert|delete|update|replace) /i",$query) ) {

    Furthermore:
    PHP is configured correctly as other scripts run without any errors.
    And:
    The files were uploaded for the first time- there is no re-upload.
    It is the German version, readme.html dated 26.4.2008
    Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)