PDA

View Full Version : Fatal error: Call to undefined function: preg_split()


robert
12-02-2006, 23:25
When I want to go to page .../zabbix/latest.php - Latest Data
I heve message :

Fatal error: Call to undefined function: preg_split() in /usr/local/www/data-dist/zabbix/include/items.inc.php on line 387

Eugene
13-02-2006, 13:39
What the version of Your ZABBIX frontend and PHP?

robert
13-02-2006, 16:57
ZABBIX 1.1beta6 released on FreeBSD 4.11-RELEASE

Alexei
13-02-2006, 21:50
What about version of PHP? :)

robert
13-02-2006, 23:49
php4-4.3.10 PHP Scripting Language (Apache Module and CLI)
php4-gd-4.3.10 The gd shared extension for php
php4-mysql-4.3.10 The mysql shared extension for php

Alexei
14-02-2006, 08:19
Very strange. The function has been introduced in PHP 3.0.9, so it must be supported. Perhaps you use some custom compiled PHP without support of regexp?

robert
14-02-2006, 23:27
I will try reinstall PHP

kevinappel
06-03-2006, 22:15
I had this same issue today. The preg_split comes from the pcre (perl compatible regular expressions) which is not installed by default. On freebsd, I had to install the ports php4-extensions. Inside the make config, pcre is chosen by default, I did make, then make install, restarted apache and it was good to go.

If you make a php page and just put in: <? phpinfo(); ?> and place this in your web home, goto the web and view that page. It should say your php version at the top. Do a search for pcre and you should see a section labled PCRE in bold and telling you whether or not it is enabled

RedMabuse
18-10-2006, 10:58
Thanks, the "PCRE" hint solved my problem.