Fatal error:Call to undefined function simplexml_load_file()

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
krum_boy
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Wed Sep 07, 2011 3:53 pm

Fatal error:Call to undefined function simplexml_load_file()

Post by krum_boy » Thu Apr 10, 2014 12:04 am

Hi everyone,

I've been trying to install joomla 3.x on a server and every time I run the installation, I get this message on the browser:

Code: Select all

Fatal error: Call to undefined function simplexml_load_file() in /usr/local/www/compstar/installation/application/web.php on line 284
What I get on line 284 is:

Code: Select all

$xml = simplexml_load_file(JPATH_INSTALLATION . '/localise.xml');
-The PHP version running on the server is 5.4.23 so I exclude the problem with outdated PHP
-I've looked on the internet for similar problems and solution and the only thing I find is information from 4 years ago so not sure where that would help as versin 3 of Joomla isn't that old.
-Not sure if that helps but I read something about php.ili files and making sure that simplexml is activated. I am installing on a guest server with an FTP access only!

I want to apologize is my question is dumb, but I am not much into coding and I would appreciate any type of help.

Thank you!

User avatar
ionut
Joomla! Ace
Joomla! Ace
Posts: 1264
Joined: Thu May 27, 2010 1:00 pm
Location: EU

Re: Fatal error:Call to undefined function simplexml_load_fi

Post by ionut » Thu Apr 10, 2014 6:15 am

You can check if Simplexml support is enabled in the administration area - System - System Information - PHP Information tab and search for "Simplexml support".

krum_boy
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Wed Sep 07, 2011 3:53 pm

Re: Fatal error:Call to undefined function simplexml_load_fi

Post by krum_boy » Thu Apr 10, 2014 12:46 pm

Thank you ionut,

I do not have access to admin panel of the hosting server. The only access I have is FTP.
I will try to request this from the server team.

I tried to run the same installation with the same files on a different sever and it runs without any problems.

P.S. I just read your comment again and would like to note that I am trying to run a fresh installation of Joomla. There is nothing installed yet and admin panel to go through

EDIT: They have another web site (Joomla 2.5) installed on the same server and its supported by the same PHP version. I logged into the admin panel of the site and found the section Simplexml which states its enabled. The PHP version from what I can see is 5.4.15

User avatar
ionut
Joomla! Ace
Joomla! Ace
Posts: 1264
Joined: Thu May 27, 2010 1:00 pm
Location: EU

Re: Fatal error:Call to undefined function simplexml_load_fi

Post by ionut » Thu Apr 10, 2014 1:37 pm

Ohh sorry, I've missed this important fact that you don't have it installed.
You could check if this extension is loaded by creating a php file with the following code inside:

Code: Select all

<?php
if (!extension_loaded('SimpleXML')) {
	echo 'not loaded';
} else {
	echo 'SimpleXML is loaded';
}
?>
Upload this php file, run it and see what it appears.

krum_boy
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Wed Sep 07, 2011 3:53 pm

Re: Fatal error:Call to undefined function simplexml_load_fi

Post by krum_boy » Thu Apr 10, 2014 1:47 pm

I get the message "not loaded".
I am guessing the extension is not loaded. Would you help me to sort this out?

Thank you

User avatar
ionut
Joomla! Ace
Joomla! Ace
Posts: 1264
Joined: Thu May 27, 2010 1:00 pm
Location: EU

Re: Fatal error:Call to undefined function simplexml_load_fi

Post by ionut » Thu Apr 10, 2014 2:23 pm

This extension according to php.net is enabled by default, it might be that the hosting company disabled it. You should contact the hosting company for proper support.

krum_boy
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Wed Sep 07, 2011 3:53 pm

Re: Fatal error:Call to undefined function simplexml_load_fi

Post by krum_boy » Thu Apr 10, 2014 2:42 pm

Ok, thank you ionut. Does Joomla 2.5 need this extension?
The reason I am asking is as there is Joomla 2.5 already running and if SimpleXML is not required then I might simply proceed with Joomla 2.5 rather than version 3.x?

EDIT: I have managed to enable the SimpleXML. It all works now!

Thank you!!!


Locked

Return to “Installation Joomla! 3.x”