Fatal error: Call to undefined function preg_match() in /usr

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
Stretch0r
Registered User
Posts: 5
Joined: Mon Oct 17, 2005 7:49 pm

Fatal error: Call to undefined function preg_match() in /usr

Post by Stretch0r » Mon Oct 17, 2005 7:52 pm

Fatal error: Call to undefined function preg_match() in /usr/local/www/data-dist/GW/phpBB2/install/install.php on line 206

This is what i get upon just trying to execute the install command. Any ideas guys? line 206 has to do with language selection.

Thanks in advance

User avatar
eskick
Registered User
Posts: 27
Joined: Sat Feb 26, 2005 12:09 pm

rpely

Post by eskick » Mon Oct 17, 2005 7:54 pm

you shouldnt change the language untill after installation if your not an expert!
go to http://gimeforums.com to create your add-less free phpbb forum!

Stretch0r
Registered User
Posts: 5
Joined: Mon Oct 17, 2005 7:49 pm

Post by Stretch0r » Mon Oct 17, 2005 8:03 pm

I wasnt changing the language, i am just looking at the php file and to what area line 206 reads to, I have done nothing but upload, chmod config.php and went to the link.

I am running FreeBSD 5
MySql and PHP 5

Stretch0r
Registered User
Posts: 5
Joined: Mon Oct 17, 2005 7:49 pm

Post by Stretch0r » Tue Oct 18, 2005 3:28 am

Any ideas fellas/Ladies?

cybrid23
Former Team Member
Posts: 9877
Joined: Wed Jun 29, 2005 5:55 am
Location: Somewhere in the Midwest...
Contact:

Post by cybrid23 » Tue Oct 18, 2005 4:00 am

Yep.

Downgrade to php 4.x if possible. php 5.x is not comaptible with phpbb 2.0.xx
---Never leave home without a towel and your peril sensitive sunglasses.
---Do Not PM Me For Support. It will go unanswered.
Thanks.

Stretch0r
Registered User
Posts: 5
Joined: Mon Oct 17, 2005 7:49 pm

Post by Stretch0r » Tue Oct 18, 2005 4:25 pm

Downgraded to php 4.3.. and still same deal.

Thanks in advance

espicom
Registered User
Posts: 17905
Joined: Wed Dec 22, 2004 1:14 am
Location: Woodstock, IL

Post by espicom » Tue Oct 18, 2005 6:26 pm

You're using one of the BSD variants, correct? Go to your ports collection and install the PCRE libraries, then recompile PHP.

PHP requires the Perl Compatible Regular Expressions library, but *BSD do not install this by default.
Jeff
Fixing 1016/1030/1034 Errors | (obsolete link) | MySQL 4.1/5.x Client Error | phpBBv2 Logo in ACP
Support requests via PM are ignored!
"To be fully alive is to feel that everything is possible." - Eric Hoffer

Stretch0r
Registered User
Posts: 5
Joined: Mon Oct 17, 2005 7:49 pm

Post by Stretch0r » Wed Oct 19, 2005 4:00 pm

Yes FreeBSD and i install both standard PCRE as well as a php4-pcre then did a make on php again, seems no difference. Am using the ports collection to do these installations

espicom
Registered User
Posts: 17905
Joined: Wed Dec 22, 2004 1:14 am
Location: Woodstock, IL

Post by espicom » Wed Oct 19, 2005 6:02 pm

Very strange - there are no configuration items for enabling/disabling PCRE, just the need to run PHP's configuration script; it should detect PCRE installed, and enable the code to handle PCRE regular expressions during the subsequent build.

Sorry, I'm at a loss on this one. If PCRE built without error, PHP should be able to use it.
Jeff
Fixing 1016/1030/1034 Errors | (obsolete link) | MySQL 4.1/5.x Client Error | phpBBv2 Logo in ACP
Support requests via PM are ignored!
"To be fully alive is to feel that everything is possible." - Eric Hoffer

NostromoBSD
Registered User
Posts: 4
Joined: Wed Jan 25, 2006 11:33 pm

Post by NostromoBSD » Sat Jun 03, 2006 4:27 pm

I had the same problem for a while, I'm using a FreeBSD box (6.0 release) running with AMD processor, with Apache 1.3.33, Mysql 5.0 and PHP5.0.4

When trying to run the config script/page I was getting that nasty "Fatal error" about the preg_match function, so I went to dive in the inet to try and get a solution.

After tons of reading I found myself faced with the PCRE problem, but I had PCRE 6.2 installed, so the problem needed a deeper thinking as the problem seemed to be the order of the installations or, maybe, the lack of more packages.

To briefly resume what I did to finally get my PHPBB forum working:

- Deinstalled PHP5.0.4 (pkg_delete)
- Downloaded the packages again: php5-5.0.4_2.tbz and php5-pcre-5.0.4_2.tbz
- Installed (pkg_add) first the php5 and then the php5-pcre

Restarted (apachectl graceful restart) the Apache server and GOTCHA !

Hope this help a bit ;)

Cheers !!
Learning something new everyday...

Locked

Return to “2.0.x Support Forum”