No Code Attached Yet
avatar swiffer
swiffer
24 May 2022

Steps to reproduce the issue

After upgrading from 4.2.0-alpha2 to 4.2.0-alpha3 Joomla Admin and Site are not working anymore via ZIP package from the GitHub release.

Expected result

Should work fine

Actual result

Class "Joomla\Plugin\System\Cache\Extension\Cache" not found

System information (as much as possible)

PHP 8.1.6 / Ubuntu

Additional comments

avatar swiffer swiffer - open - 24 May 2022
avatar joomla-cms-bot joomla-cms-bot - change - 24 May 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 May 2022
avatar richard67
richard67 - comment - 24 May 2022

@swiffer Have you used the Joomla Update Component to upload and update? Or have you uploaded and unpacked the zip manually?

avatar swiffer
swiffer - comment - 24 May 2022

I've used the update component

avatar swiffer
swiffer - comment - 24 May 2022

i removed the plugin entry from the #__extensions table and added it again from the current install sql script. now it's working fine again for me.

INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`) VALUES
(0, 'plg_system_cache', 'plugin', 'cache', 'system', 0, 0, 1, 0, 1, '', '{"browsercache":"0","cachetime":"15"}', '', 3, 0)

maybe because of the manifest_cache? can this in general be refreshed ?

avatar richard67
richard67 - comment - 24 May 2022

The manifest cache of each extension is refreshed with the entries from the XML file at the end of an update.

avatar swiffer
swiffer - comment - 24 May 2022

Looks like the Update didnt completely Run through. Also had a warning regards Out of Date core Database Schema.

avatar nikosdion
nikosdion - comment - 24 May 2022

@richard67 Yup, it is right, this is the class of the extension plugin object returned.

avatar richard67
richard67 - comment - 24 May 2022

Looks like the Update didnt completely Run through. Also had a warning regards Out of Date core Database Schema.

@swiffer Have you used the “Fix database structure” button (with the row of the CMS core selected)? If so: Did it help?

avatar swiffer
swiffer - comment - 24 May 2022

Yes, i did that and it helped (for the alert of outdated DB Schema).

avatar richard67
richard67 - comment - 24 May 2022

And the class not found error was shown after that?

avatar richard67
richard67 - comment - 24 May 2022

Am asking because when using the fix button, it also refresh the manifest caches of extensions at the end.

And what is shown in the update log "administrator/logs/joomla_update.php"?

avatar swiffer
swiffer - comment - 24 May 2022

No, it was shown directly after the Update and solved by removing the Mainfest Cache Data From #__extensions Table. Afterwards i was able to visit the Admin again and noticed that also DB Schema was outdated. Both together let me assume the Update wasn't completely successfully executed (4.2.0-alpha2 -> 4.2.0-alpha3). Now everything ist fine.

avatar richard67
richard67 - comment - 24 May 2022

Well if everything is fine and we could be sure that the problem was not caused by a bug in our code, we could say let’s close this issue. But as long as we don’t know what the problem was, we can’t really be sure. What does the update log show?

avatar swiffer
swiffer - comment - 24 May 2022

2022-05-24T18:23:42+00:00 INFO Ip.Ip.Ip.Ip update Neue Version wird jetzt installiert.

Thats all.

Close and reopen If someone Else ist experiencing this as Well?

avatar richard67
richard67 - comment - 24 May 2022

2022-05-24T18:23:42+00:00 INFO Ip.Ip.Ip.Ip update Neue Version wird jetzt installiert.

Thats all.

That looks indeed incomplete.

Close and reopen If someone Else ist experiencing this as Well?

Not sure yet. I‘d at least like to try to reproduce it, but I‘m off desk at the moment.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

oh my... Im going to say that this is probably the same cause as the Joomla 4.2 fiasco ... that the update is not deleting autoload_psr4.php and allowing it to be regenerated.

delete the /administrator/cache/autoload_psr4.php when you get the error message Class "Joomla\Plugin\System\Cache\Extension\Cache" not found and I bet it then magically works

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

for a 4.2.x to the 4.2.x this #37990 merged in June would have fixed this persons issue reported in May.

However this was the WARNING you needed to prevent the Joomla 4.2 upgrade fiasco we see today

This issue should be closed as it will be fixed by regenerating the namespace map as the changes to Cache by @nikosdion were merged in Alpha3 and so would indeed need a new namespace map to be generated after update, but the code to do that was not added in com_joomlaupdate until after ....

avatar swiffer swiffer - change - 12 Oct 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-10-12 05:07:50
Closed_By swiffer
avatar swiffer swiffer - close - 12 Oct 2022

Add a Comment

Login with GitHub to post a comment