After upgrading to Joomla 4.2.6, I am now unable to update CiviCRM current version, 5.54.2. I contacted my CiviCRM hosting company and they were not able to resolve the issue either.
The following correspondence is from the hosting company:
"We tried to upgrade your CiviCRM normally, as per: https://docs.civicrm.org/sysadmin/en/latest/upgrade/joomla/
but the "Upgrade the database" step failed with an error. This broke the entire administrative interface of Joomla as well. The following error was displayed:
0 Class "JApplication" not found
We enabled error logging in PHP, but no error is recorded in /home/site-name/private/php-errors.log. We also changed in /home/site-name/www/www/configuration.php the error reporting level to maximum.
CiviCRM tries to access this class:
plugins/authentication/civicrm/civicrm.php: $menu = JApplication::getMenu('site');
However, we could not find where it is defined. It might not be available in Joomla 4, as here:
3.2 Use CMSApplication instead unless specified otherwise
So what we did was to restore your site to as it was."
There it is. Any help is greatfully appreciated,
I followed your advise and updated CiviAuthenticate from your branch (https://github.com/aydun/CiviCRM-CiviAuthenticate/blob/j4/README.md#version-5) and everything went well and was working fine until I updated CiviCRM from 5.54.2 to 5.56.2. On the CiviCRM backend I received the following message:
Sorry, there was a problem we could not recover from. The server returned a "500 - Whoops, looks like something went wrong."
I changed PHP settings from 8 to 8.1 and received this message:
An error has occurred. 0 syntax error, unexpected token "readonly", expecting identifier. The Civi front-end was showing an error as well.
Prior to the upgrade the Joomla Pre-Update Check for Joomla 4.2.6 showed the following:
CiviCRM User Management- Potential Upgrade Issue CiviCRM System Listener- Potential Upgrade Issue System Novarain Framework- Potential Upgrade Issue Authentication - CiviAuthenticate Potential Upgrade Issue System Convert Forms- Potential Upgrade Issue
I disabled these plugins until after the upgrade, except for CiviAuthenticate that was updated of course. The rest of the plugins I reactivated because I had to reactivate CiviCRM System Listener. The other plugins I'm not sure about. Also not sure what you mean by "configure CiviAuthenticate."
Thank you Adrian for your response. Keith
Update! The problem is not only updating CiviCRM after upgrading to Joomla 4, I can't update CiviCRM while running Joomla 3.10 either. I'm currently running CiviCRM 5.54.2 and I've tried to update to CiviCRM versions 5.56.2, 5.57.1 and 5.58.0 and they break the system. The latest attempt using 5.58.0 installed fine until I did the update database routine and was promptly presented with a blank screen. Joomla is nagging me to update to PHP 8 but I'm not sure if CiviCRM likes it. I'm back to PHP 7+.
Thanks for any help, Keith