February 27, 2007

Fatal error: Call to undefined function preg_match()

Today’s crazy error of the day is:

Fatal error: Call to undefined function preg_match() …

Wahoo! A built in function being undefined!

So how’s this possible? It seems that if you reinstall PHP without compiling in PCRE (Perl Compatible Regular Expressions), you can get this crazy error. It’s a flag you may need to manually enable.

Filed under: PHP — Michi @ 12:41 pm

Share this

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Reddit
  • StumbleUpon
  • del.icio.us
  • description
  • Technorati
  • Slashdot
  • co.mments
  • NewsVine

Related

Hah. It seems the crazy errors are plaguing me today. The latest one: Fatal error: Call to undefined function mysql_connect() ... Sweet... We moved to a new data center, and this error seems to be related to using PHP...
This pops up every so often so I thought I'd dedicate a post to it. JavaScript has no "isset" function. Instead, your best bet is to use the following: if((typeof theVariable) == 'undefined')...

No Comments »

TrackBack URI | Blog RSS | Comment RSS

No comments yet.

What do you think?