PHP upgrade in server

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

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
waqaspuri2
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Mar 18, 2021 5:06 am

PHP upgrade in server

Post by waqaspuri2 » Thu Mar 18, 2021 5:18 am

My Joomla has been recently causing the following error.

Code: Select all

Notice: Array to string conversion in /home/malkanin/public_html/site/libraries/joomla/registry/registry.php on line 356

Notice: Array to string conversion in /home/malkanin/public_html/site/libraries/joomla/registry/registry.php on line 361

Notice: Array to string conversion in /home/malkanin/public_html/site/libraries/joomla/registry/registry.php on line 356

Notice: Array to string conversion in /home/malkanin/public_html/site/libraries/joomla/registry/registry.php on line 361

Notice: Array to string conversion in /home/malkanin/public_html/site/libraries/joomla/registry/registry.php on line 365

Notice: Array to string conversion in /home/malkanin/public_html/site/libraries/joomla/registry/registry.php on line 365

Notice: Array to string conversion in /home/malkanin/public_html/site/libraries/joomla/registry/registry.php on line 365

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/malkanin/public_html/site/libraries/joomla/session/session.php on line 124

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/malkanin/public_html/site/libraries/joomla/session/session.php on line 127

Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /home/malkanin/public_html/site/libraries/joomla/session/storage.php on line 92

Warning: session_name(): Cannot change session name when headers already sent in /home/malkanin/public_html/site/libraries/joomla/session/session.php on line 898

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/malkanin/public_html/site/libraries/joomla/session/session.php on line 925

Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /home/malkanin/public_html/site/libraries/joomla/session/session.php on line 818

Warning: session_cache_limiter(): Cannot change cache limiter when headers already sent in /home/malkanin/public_html/site/libraries/joomla/session/session.php on line 657
Does the website return the following source code?
See, pithm.edu.pk

What recently happened - > Upgrade PHP to 7.4
Version of my Joomla. Probably, 3.1.0

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2906
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: PHP upgrade in server

Post by SharkyKZ » Thu Mar 18, 2021 6:54 am

Joomla 3.1.0 doesn't support PHP 7.4 or even 7.0 properly. You should update Joomla before updating PHP.

User avatar
darb
Joomla! Hero
Joomla! Hero
Posts: 2042
Joined: Thu Jul 06, 2006 12:57 pm
Location: Stockholm Sweden

Re: PHP upgrade in server

Post by darb » Thu Mar 18, 2021 7:00 am

Yes Joomla 3.1 is hundred years ago. You have to update and understand the process of taking care of your website and now how to update it. I would recommend you to take care of a Joomla professional to solve this problem.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24985
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: PHP upgrade in server

Post by pe7er » Thu Mar 18, 2021 7:05 am

Don't forget the non-core extensions that have been installed.
You'll need to update those too before switching to a higher PHP version.
And create a backup (files+database) before doing so.
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9739
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: PHP upgrade in server

Post by AMurray » Thu Mar 18, 2021 9:45 pm

Is PHP 7.4 the only version available, or can you choose it in the cPanel options (of your hosting account)?

My host offers PHP way back to 5.6 (even though it's long obsolete) and it's a self-service thing where you can pick and choose the PHP you want, when you want.

If you don't have a backup tool within Joomla (such as Akeeba), you can still obtain a version for Joomla 3.1 from their site. Otherwise, you could do a files+database backup from your hosting account admin.
Regards - A Murray
General Support Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44092
Joined: Sat Apr 05, 2008 9:58 pm

Re: PHP upgrade in server

Post by Webdongle » Sat Mar 20, 2021 5:51 pm

You can (depending on the hosting) set the php to 5.x. Check your host's help on how to do that.

Otherwise transfer the site to localhost wamp on your PC.

Then update
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Migrating and Upgrading to Joomla! 3.x”