The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

FATAL ERROR: Call to undefined function preg_replace ... ??? (4 posts)

  1. Pablito78
    Posted 10 years ago #

    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 (, 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.

  2. davidchait
    Posted 10 years ago #

    only thing I could think of is a REALLY old PHP version (<3.0.9)

  3. xin-it
    Posted 10 years ago #

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

  4. xin-it
    Posted 10 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic