• I downloaded the latest version of wordpress and followed step by step http://codex.wordpress.org/Installing_WordPress to install it and configure it on a FreeBSD 6.0 – Apache 13 w/ PHP and MySQL and when I ran the install.php via web (http://10.10.0.28/blogs/wp-admin/install.php), I get the following FATAL ERROR:

    Fatal error: Call to undefined function preg_replace() in /usr/local/www/data-dist/blogs/wp-settings.php on line 157

    I have not modified the code of install.php, only modified the wp_settings.php with the appropiate values to make it connect with MySQL. What is causing this problem?? I will appreciate your help, thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • only thing I could think of is a REALLY old PHP version (<3.0.9)

    I had the same problem on: Apache/2.0.55 (FreeBSD) PHP/5.1.2

    ok, the problem is that the PCRE extensions are not present, for me (php5) the solution has been this:

    cd /usr/ports/lang/php5-extensions
    make install

    in the make install menu, add the PCRE extension.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FATAL ERROR: Call to undefined function preg_replace … ???’ is closed to new replies.