Fatal error: Call to undefined function: preg_match Fatal error: Call to undefined function: preg_match
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Fatal error: Call to undefined function: preg_match

Started by MarpleMW, September 27, 2008, 08:32:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarpleMW

Hello,

My Coppermine gallery at www.visitmarple.co.uk/photos has stopped working overnight and I am receiving the following error.

Fatal error: Call to undefined function: preg_match() in /home/mwdhcouk/public_html/photos/include/init.inc.php on line 113

I have searched the forum for similar problems and cannot find anything that helps. I have tried switching debug mode on using the MyphpAdmin tutorial but that hasn't provided any more information.

I have replaced init.inc.php with the orginal version, which made no difference.

The last entry in my error log shows the following text:

[26-Sep-2008 23:04:09] PHP Warning:  Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ixed.5.2.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ixed.5.2.lin: cannot open shared object file: No such file or directory in Unknown on line 0

Can you help me to fix this problem please?



Joachim Müller

preg_match() is a function built into PHP. If it is being reported as missing, something is fishy on your webserver. You can't fix that on your own, so you'll have to ask your webhost for support. Just show them this thread and they should know what to do.

MarpleMW

Thanks for your helpful reply Joachim.

Just in case it is useful to others I can now advise that my host has said that this is caused by a problem with cPanel and they (cPanel) are currently working to fix it. My webhost advised me to try changing my cPanel settings to run PHP4 or PHP5 instead of accepting the server default. Switching to PHP5 has resolved the issue at the moment whilst PHP4 won't work. Hopefully there will be a full fix in the near future.