Tuesday 21 June 2011

php simplexml problems kunena install problems

When I tried to upgrade kunena forum form 5.x to the latest version 6.x  I could not complete the installation as the xml install file was not being read and resulted in a blank page.

I test ran an xml file and got the error below
PHP Fatal error:  Call to undefined function simplexml_load_file()
PHP Fatal error:  Call to undefined function simplexml_import_dom()
PHP Fatal error:  Call to undefined function simplexml_load_string()

I was a bit surprised as simplexml is supposed to be build into php from php5.3 onwards.

I was wrong. You still have to install the port below.
php5-simplexml-5.3.2_1 The simplexml shared extension for php

Once done all is working well.

http://www.tiv.net/2010/07/upgrading-to-php-53-ports-on-freebsd.html