WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Pablito78
    Member
    Posted 8 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 (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.

  2. davidchait
    Member
    Posted 8 years ago #

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

  3. xin-it
    Member
    Posted 8 years ago #

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

  4. xin-it
    Member
    Posted 8 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