[SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7 Topic is solved

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
Post Reply
paulnecsoiu
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sat Jul 24, 2010 11:18 am

[SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by paulnecsoiu » Wed Mar 30, 2016 12:29 pm

Hello,

I have the following LAMP stack:
1. Ubuntu 16.04 Final Beta (on which I installed the fallowing default packages):
2. Apache 2.4.18
3. PHP 7.0.4

On Apache I enabled mod_proxy and mod_proxy_fcgi and then I enabled php7.0-fpm.conf.

Then I have tested the configuration with a info.php file and seems to work OK.

But when I try to install Joomla running http://localhost in Apache error.log I receive the fallowing error:

Code: Select all

 [proxy_fcgi:error] [pid 21141:tid 140145579747072] [client ::1:58930] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function simplexml_load_file() in /var/www/joomla-cms/libraries/joomla/language/language.php:1373\nStack
Is seems that joomla is not compatible with PHP 7.0 or am I wrong. It's possible to solve this problem?
Last edited by paulnecsoiu on Wed Mar 30, 2016 1:18 pm, edited 1 time in total.

User avatar
ribo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3475
Joined: Sun Jan 03, 2010 8:47 pm
Contact:

Re: PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by ribo » Wed Mar 30, 2016 12:34 pm

Check in your phpinfo if you have this http://php.net/manual/en/book.simplexml.php
chat room spontes : http://www.spontes.com

paulnecsoiu
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sat Jul 24, 2010 11:18 am

Re: PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by paulnecsoiu » Wed Mar 30, 2016 1:17 pm

Ribo you are the best. You really are a time saver.

a thousand thanks

PS: I apologize that I'm so a noob :-[

jaestradag
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri May 13, 2016 6:39 pm

Re: [SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by jaestradag » Fri May 13, 2016 6:57 pm

I have the same proble. How did you solve ?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12892
Joined: Thu Feb 15, 2007 5:48 am
Location: Zagreb, Croatia

Re: [SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by toivo » Fri May 13, 2016 7:54 pm

jaestradag wrote:I have the same proble. How did you solve ?
Check the link to the PHP reference manual provided by ribo and check the section Requirements.
Toivo Talikka, Global Moderator

buf1957
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Jun 09, 2016 8:46 am

Re: [SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by buf1957 » Fri Jun 10, 2016 10:41 am

People

This what I did

php -m
list modules
No SimpleXML

sudo apt-get install php7.0-simplexml

php -m

Will show
SimpleXML

Restart apache2

Joomla should start

levingtinoco
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jun 29, 2013 1:51 am

Re: [SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by levingtinoco » Fri Jul 22, 2016 3:37 am

if you are using ubuntu server 16.04

try installing "sudo apt-get install php7.0-xml"
and restart the server "sudo service apache2 restart"

Buena suerte!

User avatar
heisenberg
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Wed Aug 12, 2009 3:29 pm
Location: near Vancouver, Canada

Re: [SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by heisenberg » Fri Jul 14, 2017 1:20 am

I went up to php 7.1.7 but having the same problem with Joomla 3.x once I left php 5.6.x.

This solution worked liked a charm. I invoked...

sudo apt-get install php7.1-simplexml
then
sudo service apache2 restart

and BOOM! it worked.

I am on Ubuntu 14.04 for the time being.

Thanks to all involved!

-Andrew
-Andrew

cknederland
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Jan 25, 2019 1:33 pm

Re: [SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by cknederland » Fri Jan 25, 2019 4:52 pm

I am having the same issue today with the latest Joomla 3.9.2
Can someone please tell me what to do ? i have read the http://php.net/manual/en/book.simplexml.php but don't know where to start.

We are having a host from a 3rd party using Cpanel.

Thank you

noxidsoft
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Sun Aug 16, 2009 2:39 pm
Location: Queensland Australia
Contact:

Re: [SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by noxidsoft » Sun Jun 28, 2020 12:51 am

Because Google led me here, on Ubuntu 20.04 this works in 2020:

Code: Select all

sudo apt install php7.4-xml
If on Apache2, remember to restart (probably not necessary):

Code: Select all

sudo systemctl restart apache2

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20243
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by leolam » Mon Jun 29, 2020 2:32 pm

cknederland wrote:
Fri Jan 25, 2019 4:52 pm
I am having the same issue today with the latest Joomla 3.9.2
You should not have this issue since you are not only seeing possible PHP-issues but have you looked how outdated your Joomla version is? We are now on Joomla 3.9.19. You are running an outdated and very vulnerable version of Joomla since your version was released on 15th of January 2019 (!!!)

Get your site management together and keep Joomla and extensions up-to-date

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Webmaster Services: gws-webmaster.services

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12892
Joined: Thu Feb 15, 2007 5:48 am
Location: Zagreb, Croatia

Re: PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by toivo » Mon Jun 29, 2020 3:08 pm

leolam wrote:
Mon Jun 29, 2020 2:32 pm
You should not have this issue since you are not only seeing possible PHP-issues but have you looked how outdated your Joomla version is?
@leolam, that was the latest version @cknederland had available last year, two weeks after Joomla 3.9.2 was released!
Toivo Talikka, Global Moderator

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20243
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by leolam » Mon Jun 29, 2020 3:19 pm

toivo wrote:
Mon Jun 29, 2020 3:08 pm
@leolam, that was the latest version @cknederland had available last year, two weeks after Joomla 3.9.2 was released!
Not reading properly mea culpa....tnx for the heads-up and the correction

Leo 8)
Last edited by toivo on Mon Jun 29, 2020 10:39 pm, edited 1 time in total.
Reason: mod note: removed post icon
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Webmaster Services: gws-webmaster.services

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12892
Joined: Thu Feb 15, 2007 5:48 am
Location: Zagreb, Croatia

Re: [SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by toivo » Mon Jun 29, 2020 3:25 pm

No problems, @leolam.
Toivo Talikka, Global Moderator

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20243
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: [SOLVED] PHP Fatal Error when installing Joomla 3.5 on PHP 7

Post by leolam » Mon Jun 29, 2020 3:30 pm

thanks for correcting your post

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Webmaster Services: gws-webmaster.services


Post Reply

Return to “Installation Joomla! 3.x”