Upgrading from 5.5 to 5.6: Call to undefined function dom_import_simplexml()

Permalink
I performed the following steps of the upgrade from version 5.5 to version 5.6:

1. In the dashboard of your site, place your site into "Maintenance Mode." This will ensure your site does not appear down while upgrading.
2. Back up all site data thoroughly, including files and database tables, just in case.
3. Copy the "concrete" subdirectory from this new archive over your previous directory.
4. Visit the URLhttp://yoursite.com/index.php/tools/required/upgrade...

That produced a page stating: "Upgrading from 5.5.2.1 [new line] Upgrading to 5.6.0 [new line] To proceed with the upgrade, click below." After clicking the Upgrade button, I get this error message:

Fatal error: Call to undefined function dom_import_simplexml() in /var/www/html/c5/concrete/core/controllers/single_pages/upgrade.php on line 178

Where do I go from here?


Benoît Gauthier
Gatineau, Québec

bgauthier
 
aheuneman replied on at Permalink Reply
I had the same error today when upgrading, but I was able to get past it by installing some additional packages. For Centos they are php-xml and php-gd.

Hope it helps.
Andrew
bgauthier replied on at Permalink Reply
bgauthier
Arrrrh! Things are going from bad to worse. I uninstalled php and reinstalled php53 (on a CentOS 5.8). Now, I have this:

yum list | grep php

php53.x86_64 5.3.3-13.el5_8 installed
php53-cli.x86_64 5.3.3-13.el5_8 installed
php53-common.x86_64 5.3.3-13.el5_8 installed
php53-gd.x86_64 5.3.3-13.el5_8 installed
php53-xml.x86_64 5.3.3-13.el5_8 installed

but phpinfo() returns nothing.

Where should I go from here?


Benoît Gauthier
garagan replied on at Permalink Reply
garagan
When you say nothing do you mean that the page is blank? So a page just invoking phpinfo() is blank, index.php is blank, etc?

If this is the case, the problem I found when I saw that was the short_open_tag was set to "Off" in the PHP install by default. Setting it to "On" fixed it and Concrete5 ran as expected.
bgauthier replied on at Permalink Reply
bgauthier
Thank you for your reply. I checked the short_open_tag php.ini option and it is set to On.

The situation has evolved though. I uninstalled php and reinstalled version 5.2.17. Now I can see a response from php_info() but nothing (a pure blank page) when I try to access concrete5 or any other php software on the server. And no messages appear in Apache's error_log file.

Any other suggestions?

Benoît
bgauthier replied on at Permalink Reply
bgauthier
It turns out that, in my fury of attempting to get php-simplexml to fire, I had uninstalled a bunch of php modules and not completely reinstalled them. I was missing php-mysql which explains why I got a blank page.

Thanks everyone for their help.


Benoît