Ad Widget

Collapse

Fatal error: Call to undefined function: preg_split()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robert
    Junior Member
    • Feb 2006
    • 4

    #1

    Fatal error: Call to undefined function: preg_split()

    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
    Member
    • Feb 2006
    • 57

    #2
    What the version of Your ZABBIX frontend and PHP?

    Comment

    • robert
      Junior Member
      • Feb 2006
      • 4

      #3
      ZABBIX 1.1beta6 released on FreeBSD 4.11-RELEASE

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        What about version of PHP?
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • robert
          Junior Member
          • Feb 2006
          • 4

          #5
          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

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            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?
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • robert
              Junior Member
              • Feb 2006
              • 4

              #7
              I will try reinstall PHP

              Comment

              • kevinappel
                Junior Member
                • Mar 2006
                • 21

                #8
                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

                Comment

                • RedMabuse
                  Junior Member
                  • Aug 2006
                  • 2

                  #9
                  Thanks, the "PCRE" hint solved my problem.

                  Comment

                  Working...