Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    2.0.2 Call to undefined function xml_parser_create() in /etc/inc/xmlparse

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    10 Posts 3 Posters 7.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kalpik
      last edited by

      Hi!

      After doing an auto upgrade from 2.0.1 to 2.0.2, I'm getting the following error on the console:

      Fatal error: Call to undefined function xml_parser_create() in /etc/xmlparse.inc on line 169.

      The web-configurator is down, and I cannot start anything. Any pointers on how to fix this?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Full install? NanoBSD? Something else?

        That error seems to suggest that somehow it didn't get all of the required PHP modules during the upgrade, which I haven't seen any other reports of so far.

        Or, possibly, some package you have installed did something unexpected to those modules.

        Or, less likely but also possible, you accidentally upgraded to 2.1 and then tried to go back down to 2.0.2, which leaves some other files in place that can make PHP fail to load properly, causing errors similar to this.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • K
          kalpik
          last edited by

          It was a full install. And I just went from 2.0.1 to 2.0.2 via the auto upgrader. I have two pfsense boxes. One went fine, but facing this issue on the second one.

          Thank you for your help! I really hope there is an easy way to fix this. I really don't want to have to re-install :(

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Are they both i386? amd64?

            I they are mostly identical and one of them worked and the other didn't, then there could be something else going on that's contributing, like a failing hdd, but it's hard to say for certain.

            Can you show the output of:

            ls -lR /usr/local/lib/php
            

            Or at least look for xml.so, xmlreader.so, and xmlwriter.so and see what dirs they are in, and if they have sane file sizes.

            One way around it might be to somehow get the update .tgz file onto the box and then manually extract the files. If the xml libraries aren't correct then there is a good chance something else is also corrupted as well. (see above, re: hardware issueโ€ฆ)

            Failing that, you can install from CD, using "rescue" mode which should recover the config from the hdd when reinstalling.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • K
              kalpik
              last edited by

              I see all modules with the command you gave. This is a VM. Both VMs were i386.

              So you're saying rescue is my only option?

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                It might be. It certainly appears as though something in the install has become corrupted.

                Three options:
                1. Somehow get the box online, fetch the update tgz and expand it by hand.
                2. Reinstall with rescue install to get the config from the hdd.
                3. Roll the VM back to a working snapshot and work from there.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • K
                  kalpik
                  last edited by

                  I scp'd the config.xml from pfsense to another box, and did a re-install and restored config.

                  Thanks a lot for your help! Don't know what screwed it up in the first place though!

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jon
                    last edited by

                    I had the same thing happen to me as well. My solution was to login and delete the php module directory that started with 2009. I had also used the auto upgrade feature. It may have pulled the wrong bits due to a invalid auto-update url.

                    1 Reply Last reply Reply Quote 0
                    • K
                      kalpik
                      last edited by

                      Hi Jon,

                      Thanks for your reply. But since I've already re-installed, it's too late for me :)

                      But it might help someone else a lot if you could detail the steps you took to resolve this!

                      Thank you for your help!

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        If you have the 2009* dir there, that means you upgraded to 2.1 and then downgraded to 2.0.x, which isn't supported.

                        If auto update did that, someone must have selected the snapshots url from the drop-down menu at some point.

                        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.