WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fatal error: Call to undefined function preg_replace() in *wp-db.php on line 982 (9 posts)

  1. Gelora
    Member
    Posted 5 years ago #

    hey guys..i`m just newbie on wordpress.just now i got problem with installation.
    now when I click on my pages I get the following error:

    Fatal error: Call to undefined function preg_replace() in /usr/local/www/data/wordpress/wp-includes/wp-db.php on line 982

    line 982

    return preg_replace('/[^0-9.].*/', '', mysql_get_server_info( $this->dbh ));

  2. WebDev WaxLotus LLC
    Member
    Posted 5 years ago #

    Hey,

    If it's a new installation, try FTP'ing the files again.

    If this is installation, which pages are you talking about?

  3. jeffsf
    Member
    Posted 5 years ago #

    I just started seeing the same thing here after upgrade to the latest version of PHP-5.2.9, among other things. MySQL was also updated to 5.1.32. Everything was working fine before this. It is a problem on all pages, as there is no connectivity to the database. (FreeBSD 7.1)

  4. jeffsf
    Member
    Posted 5 years ago #

    FreeBSD php5-pcre Makefile

    Looks as though the change to 5.2.9 caused a dependency on php5-pcre to sneak back in.

    Revision 1.6: download - view: text, markup, annotated - select for diffs
    Fri Mar 6 10:08:33 2009 UTC (2 days, 18 hours ago) by ale
    Branches: MAIN
    CVS tags: HEAD
    Diff to: previous 1.5: preferred, colored
    Changes since revision 1.5: +1 -1 lines

    Update to 5.2.9 release and re-add pcre extension.

    -------------

    Revision 1.5
    Sun Dec 7 11:54:35 2008 UTC (3 months ago) by ale
    Branches: MAIN
    FILE REMOVED
    Changes since revision 1.4: +1 -1 lines

    Update to 5.2.7 release.

  5. WebDev WaxLotus LLC
    Member
    Posted 5 years ago #

    Thanks jeffsf!

    You're in the right place at the right time for Gelora.

    Gelora: I found this:

    http://www.freshports.org/devel/pcre/
    http://www.freshports.org/devel/php5-pcre/
    http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2008-12/msg00582.html

    Your host's support guys would do this work for you...

  6. Gelora
    Member
    Posted 5 years ago #

    thanks all... but now got this error

    Error establishing a database connection

    aih..

  7. Gelora
    Member
    Posted 5 years ago #

    OOOHHH...... thanks all to help me fix this problem..
    now i just add

    extension=pcre.so at /php/extensions.ini

    now my wordpress can run.. hoooyeeehhhhhh thanks all

  8. androm31
    Member
    Posted 5 years ago #

    My wordpress is hosted on my freebsd 4.6-release server, It broke after upgrading to 5.2.9 also.

    rebuilding the php5-pcre port brings up a check box 'bundled pcre' which solves the problem, and even adds the extension=pcre.so line in extensions.ini for you.

    phew!

  9. yunusdestanci
    Member
    Posted 4 years ago #

    5651 sayılı yasa için çözümler

    http://www.logsistemleri.com

    5651 5651 sayılı yasa 5651 sayılı kanun 5651 nolu yasa 5651 nolu kanun ip log imzalama hotel çözümleri otle çözümler. yurt çözümleri 5651 hotel çözümler.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.