Problem upgrading to Php 8.1

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
antonios
Joomla! Explorer
Joomla! Explorer
Posts: 286
Joined: Fri Jun 20, 2008 2:22 pm

Problem upgrading to Php 8.1

Post by antonios » Mon Mar 27, 2023 6:52 pm

Hi,
I am running a website with joomla 3.10.11 and was urged to upgrade the php version I am using from php.7.4.33 to 8.x. Right now my hosting provider offers php 8.1.
As soon as I did this, the following errors appear in my front-end:
Deprecated: Joomla\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/permacul/domains/permacultura-es.org/public_html/libraries/vendor/joomla/input/src/Input.php on line 41

Deprecated: Return type of Joomla\Input\Input::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/permacul/domains/permacultura-es.org/public_html/libraries/vendor/joomla/input/src/Input.php on line 170

Deprecated: Joomla\CMS\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/permacul/domains/permacultura-es.org/public_html/libraries/src/Input/Input.php on line 31

Deprecated: Joomla\CMS\Input\Cookie implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/permacul/domains/permacultura-es.org/public_html/libraries/src/Input/Cookie.php on line 21

Deprecated: Return type of FOF30\Date\Date::format($format, $local = false, $translate = true) should either be compatible with DateTime::format(string $format): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/permacul/domains/permacultura-es.org/public_html/libraries/fof30/Date/Date.php on line 282

Deprecated: Return type of FOF30\Date\Date::setTimezone($tz) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/permacul/domains/permacultura-es.org/public_html/libraries/fof30/Date/Date.php on line 395

Deprecated: Return type of FOF30\Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/permacul/domains/permacultura-es.org/public_html/libraries/fof30/Pimple/Container.php on line 139

Deprecated: Return type of FOF30\Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/permacul/domains/permacultura-es.org/public_html/libraries/fof30/Pimple/Container.php on line 101

Deprecated: Return type of FOF30\Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/permacul/domains/permacultura-es.org/public_html/libraries/fof30/Pimple/Container.php on line 81

Deprecated: Return type of FOF30\Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/permacul/domains/permacultura-es.org/public_html/libraries/fof30/Pimple/Container.php on line 149

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/permacul/domains/permacultura-es.org/public_html/libraries/src/Uri/Uri.php on line 141
I wouldn't be able to know why...
Any help appreciated

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

Re: Problem upgrading to Php 8.1

Post by AMurray » Mon Mar 27, 2023 9:51 pm

The technical requirements for Joomla 3.10 recommend PHP 8.0.x, so drop PHP back to 8.0.x and see if that clears those errors. https://downloads.joomla.org/technical-requirements

The alternative, make preparations to migrate to Joomla 4 which can use PHP 8.1, and in near future, Joomla 4.3 will be compatible with PHP 8.2.
Regards - A Murray
General Support Moderator


Locked

Return to “General Questions/New to Joomla! 3.x”