I recently opened a site I had begun developing some time ago and paused. The site was using Joomla 4.3.x and PHP 8.1.30 and there was a warning message to upgrade the PHP version as the current version was unsupported. When I changed the PHP version to 8.2 I got a 500 error on both the front-end and Admin. I changed back to PHP 8.1.30 and then upgraded Joomla to the ultimate version of 4.9.x. Same problem- Fatal Error with Joomla 8.2. I then discovered that strangely, the site could function with Joomla 8.3 and updated to Joomla 5.2.2. I got a fatal error at the termination of the installation, but Joomla 5.2.2 was installed. All requirements were met for the 5.x installation within the Joomla update page. The front end was also not working.. I turned PHP back to 8.1 and it restored functionality. I turned on error reporting and All extensions are updated, and as this is a site where development has just started, the only third-party extensions installed are Akeeba Backup and JCE Editor as well as the Gantry Framework and Gantry Galeta Template Current version. I turned on error reporting and got the following results with PHP 8.2.
Compile Error: Declaration of Joomla\CMS\Log\DelegatingPsrLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::log($level, $message, array $context = [])
* @return void
*
* @since 3.8.0
* @throws InvalidArgumentException
*/
public function log($level, string|\Stringable $message, array $context = []): void
{
// Make sure the log level is valid
if (!\array_key_exists($level, $this->priorityMap)) {
throw new \InvalidArgumentException('An invalid log level has been given.');
}
But when I upgraded to 5.2.2 I first got the following errors:
Show exception properties:
Symfony\Component\ErrorHandler\Error\FatalError {#195 ▼
-error: array:4 [▼
"type" => 64
"message" => "Declaration of Joomla\CMS\Log\DelegatingPsrLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerI
▶
"
"file" => "/home/xhkfmfkg/public_html/libraries/src/Log/DelegatingPsrLogger.php"
"line" => 77
]
}
and Stacktrace:
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of Joomla\CMS\Log\DelegatingPsrLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::log($level, $message, array $context = [])
at /home/xhkfmfkg/public_html/libraries/src/Log/DelegatingPsrLogger.php:77
Turning PHP pack to version 8.0 almost all text and titles in both the front end and back end, even the title of the site and the menu items are now all enclosed in double ** marks. Example **Title** **Menu Item** **Home Dashboard** I don't know what symphony does but it sure strikes a bad cord with my site, and it looks like it was last utilized in Joomla with PHP 8.1....can anyone help me to orchestrate a solution to this problem?
Compile Error: Declaration of Joomla\CMS\Log\DelegatingPsrLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::log($level, $message, array $context = [])
* @return void
*
* @since 3.8.0
* @throws InvalidArgumentException
*/
public function log($level, string|\Stringable $message, array $context = []): void
{
// Make sure the log level is valid
if (!\array_key_exists($level, $this->priorityMap)) {
throw new \InvalidArgumentException('An invalid log level has been given.');
}
But when I upgraded to 5.2.2 I first got the following errors:
Show exception properties:
Symfony\Component\ErrorHandler\Error\FatalError {#195 ▼
-error: array:4 [▼
"type" => 64
"message" => "Declaration of Joomla\CMS\Log\DelegatingPsrLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerI
▶
"
"file" => "/home/xhkfmfkg/public_html/libraries/src/Log/DelegatingPsrLogger.php"
"line" => 77
]
}
and Stacktrace:
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of Joomla\CMS\Log\DelegatingPsrLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::log($level, $message, array $context = [])
at /home/xhkfmfkg/public_html/libraries/src/Log/DelegatingPsrLogger.php:77
Turning PHP pack to version 8.0 almost all text and titles in both the front end and back end, even the title of the site and the menu items are now all enclosed in double ** marks. Example **Title** **Menu Item** **Home Dashboard** I don't know what symphony does but it sure strikes a bad cord with my site, and it looks like it was last utilized in Joomla with PHP 8.1....can anyone help me to orchestrate a solution to this problem?
Statistics: Posted by douglaspantanal — Thu Dec 05, 2024 7:52 pm