No Code Attached Yet
avatar PhilETaylor
PhilETaylor
16 Aug 2022

Steps to reproduce the issue

Upgrade to Joomla 4.1.2

 How did you upgrade?

"2 with your great tooling and 2 with login in the backend.
The same result"

references:

Replicated locally in development sites myself using com_joomlaupdate in the backend. My tests were Joomal 4.1.0 to Joomal 4.2.0 jump.

Expected result

Perfect upgrade.

Actual result

Screen Shot 2022-08-16 at 17 21 52

 Quick Solution For Those With Bricked Sites:

The problem is with the administrator/cache/autoload_psr4.php not being regenerated after update.
Do the upgrade, then manually DELETE this file -this allows the site to come online again and is then an up to date Joomla 4.2.0 with a regenerated autoload_psr4.php

avatar PhilETaylor PhilETaylor - open - 16 Aug 2022
avatar joomla-cms-bot joomla-cms-bot - change - 16 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Aug 2022
avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
Title
4.1.2 Update from previous version
4.1.2 Update from previous version - Taggable no found.
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
Title
4.1.2 Update from previous version - Taggable no found.
4.1.2 Update from previous version - Taggable not found.
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar ChristianGrieger
ChristianGrieger - comment - 16 Aug 2022

Got the same error and after deleting the administrator/cache/autoload_psr4.php it tells its version 4.2.0 now. Is that true or is it now a 4.1.2 with a wrong version display?

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

It will be 4.2.0 - the upgrade completes fine, its just that the autoload_psr4.php is not regenerated...

avatar ChristianGrieger
ChristianGrieger - comment - 16 Aug 2022

Okay, good :) Thank you!

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022
avatar brianteeman
brianteeman - comment - 16 Aug 2022

could someone correct the title please

avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
Title
4.1.2 Update from previous version - Taggable not found.
4.2.0 Update from previous version - Taggable not found.
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

could someone correct the title please

Sorry. Changed now

avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
The description was changed
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
The description was changed
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
The description was changed
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
The description was changed
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
The description was changed
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar richard67
richard67 - comment - 16 Aug 2022

Here the update from 4.1.5 to 4.2.0 went fine. Maybe it happens only with PHP 8.1? I was on 8.0. Or maybe it happens only when updating from an older version than 4.1.5?

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022
avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

Here the update from 4.1.5 to 4.2.0 went fine.

That is only one of many upgrade paths that should be tested. Joomla 4.2.0 upgrade it offered to all Joomla 4 versions as an upgrade and even to Joomla 3.10.x versions. All should have been tested.

Maybe it happens only with PHP 8.1? I was on 8.0.

Unrelated.

Or maybe it happens only when updating from an older version than 4.1.5?

Older versions of Joomla 4 have no code in finalise (as far as I can see in com_joomlaupdate) to regenerate administrator/cache/autoload_psr4.php after an upgrade. #facepalm

avatar richard67
richard67 - comment - 16 Aug 2022

@PhilETaylor Code could be in the database model of the installer. Forget it, there is nothing.

avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
The description was changed
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
The description was changed
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar roland-d
roland-d - comment - 16 Aug 2022

Hello @PhilETaylor Thank you for the issue.

So I ran a couple of upgrades using PHP 8.1.0

  • 4.1.0 -> 4.2.0
  • 4.1.2 -> 4.2.0
  • 4.1.5 -> 4.2.0

They all finished normally. After that I had a backup of a user who encountered this issue with 4.1.5 to 4.2.0. So I tested it with the users backup locally from 4.1.5 -> 4.2.0 also without issues.

Do you happen to have any more information on how this could be reproduced? I am going to do some more testing but would be helpful to get an idea of how to reproduce it reliably.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

let me trawl the code history of a project I no longer contribute code to, for you...

d66de71

So, the above commit, It was not until 4.0.5-rc1 that Joomla Recreated namespace map on Joomla! update #36094

So basically any upgrade from < 4.0.5 will fail for sure.

It was "fixed" again here #37990 but again, code released before that date

Whether you can replicate or not, the multiple reports from multiple people indicate there is a real issue still to be resolved.

My own docker based Joomla 4 test container is Joomla 4.0.0 with PHP 8.0.18 with nginx. But the php/nginx is irrelevant. I click Start Update, wait, and then get the error at the end of the update - every single time.

Im just the reporter. I have no solutions.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

joomla/update.joomla.org#261 Is totally the wrong solution - making users do multiple updates is not the correct approach

avatar zero-24
zero-24 - comment - 16 Aug 2022

joomla/update.joomla.org#261 Is totally the wrong solution - making users do multiple updates is not the correct approach

It was not intended as solution but as workaround until the patches have been deployed as mentiond within the PR ;)

avatar roland-d
roland-d - comment - 16 Aug 2022

Whether you can replicate or not, the multiple reports from multiple people indicate there is a real issue still to be resolved.

I never said that there is no issue.

Im just the reporter. I have no solutions.

Was just asking for more info, not solutions.

So basically any upgrade from < 4.0.5 will fail for sure.

Thank you.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

And on that note I'll unsubscribe. Have fun.

avatar PhilETaylor PhilETaylor - change - 16 Aug 2022
The description was changed
avatar PhilETaylor PhilETaylor - edited - 16 Aug 2022
avatar roland-d
roland-d - comment - 16 Aug 2022

So, we have for now removed the update to 4.2.0 being offered while we are looking into the reports of sites failing the update and see how we can fix this as soon as possible.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

So, we have for now removed the update to 4.2.0 being offered while we are looking into the reports of sites failing the update and see how we can fix this as soon as possible.

But you did not test that "fix". It "fixes" nothing. It workaround nothing. It just leads to the same root problem with a different error message and the same solution - removing the map file.

It was not intended as solution but as workaround until the patches have been deployed as mentiond within the PR ;)

@zero-24 Congratulations - now the upgrade to 4.1.5 from 4.0.0 is also SCREWED UP #38486

Im going to bed.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2022

Its almost like someone gave you a massive heads up and warning about this... #37881 and then @joomdonation worked on #37990 after that but no one thought about what would happen to sites upgrading from prior versions...

All the warnings were there... todays fiasco could have been averted so so easily :(

avatar PhilETaylor PhilETaylor - close - 17 Aug 2022
avatar PhilETaylor
PhilETaylor - comment - 17 Aug 2022
avatar PhilETaylor PhilETaylor - change - 17 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-17 08:53:10
Closed_By PhilETaylor
avatar kp-martin
kp-martin - comment - 18 Aug 2022

I have a failed update from 4.1.5 -> 4.2 - same taggable error displays. I deleted 'autoload_psr4.php' with no change. The deleted file is replaced on reload. Debug info:
0 Class 'Joomla\Plugin\Behaviour\Taggable\Extension\Taggable' not found
Call stack

Function Location

1 () JROOT/plugins/behaviour/taggable/services/provider.php:37
2 class@anonymous/home1/jeffer/public_html/test/plugins/behaviour/taggable/services/provider.php:20$1ab->{closure}() JROOT/libraries/vendor/joomla/di/src/ContainerResource.php:182
3 Joomla\DI\ContainerResource->getInstance() JROOT/libraries/vendor/joomla/di/src/Container.php:96
4 Joomla\DI\Container->get() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:177
5 Joomla\CMS\Application\CMSApplication->loadExtension() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:94
6 Joomla\CMS\Application\CMSApplication->bootPlugin() JROOT/libraries/src/Plugin/PluginHelper.php:235
7 Joomla\CMS\Plugin\PluginHelper::import() JROOT/libraries/src/Plugin/PluginHelper.php:193
8 Joomla\CMS\Plugin\PluginHelper::importPlugin() JROOT/libraries/src/Application/CMSApplication.php:736
9 Joomla\CMS\Application\CMSApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:709
10 Joomla\CMS\Application\SiteApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:224
11 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:63
13 require_once() JROOT/index.php:32

avatar brianteeman
brianteeman - comment - 18 Aug 2022

delete the file administrator/cache/autoload_psr4.php
problem solved

avatar kp-martin
kp-martin - comment - 18 Aug 2022

As I stated, I deleted the file administrator/cache/autoload_psr4.php numerous times but problem is not solved and re-occurs repeatedly.

avatar brianteeman
brianteeman - comment - 18 Aug 2022

it is supposed to re-appear

avatar kp-martin
kp-martin - comment - 18 Aug 2022

Thanks Brian but I think you misunderstand me. I understand that the file is supposed to re-occur and it does that. The problem is that the error still occurs even after deleting the file multiple times.

avatar jeff-bronks
jeff-bronks - comment - 24 Aug 2022

I have the same problem as kp-martin. 4.1.5 to 4.2.0 upgrade (using Zip file method). The site is bricked with the error 0 - Class 'Joomla\Plugin\Behaviour\Taggable\Extension\Taggable' not found on front and back ends.

I deleted autoload_psr4.php but this did not help. I made sure that my host's edge caching was disabled. Don't know what else to try.

avatar jeff-bronks
jeff-bronks - comment - 25 Aug 2022

Update: I never found out what was wrong, but I managed to restore the site from a backup, version 4.1.5. Panic over.

avatar zero-24
zero-24 - comment - 25 Aug 2022

@jeff-bronks

Update: I never found out what was wrong, but I managed to restore the site from a backup, version 4.1.5. Panic over.

Can you please deploy that site to a backup and try to update to 4.2.1-rc2: https://github.com/joomla/joomla-cms/releases/tag/4.2.1-rc2

I have the same problem as kp-martin. 4.1.5 to 4.2.0 upgrade (using Zip file method).

Please tell us what this "zip file method" is. Please be informed that updating it by just replacing the files will always fail. you have to use the updater component via install & upload or via update server (on the backup site you can also go to the testing update server)

avatar jeff-bronks
jeff-bronks - comment - 25 Aug 2022

OK, I deployed 4.2.1-rc2 to my backup site. It worked fine, and now it says 4.2.1-rc2 in the status bar. Thanks!

You correctly guessed what my Zip file method is: upload the file using the server's file manager and unpack it. I used to do it that way with my Joomla 3 site because the Joomla admin update page didn't work. I never found out why - it was something about an AJAX error. The Zip file method always worked for me with Joomla 3.

When I updated to Joomla 4 the admin update page worked so I used it. I only used the Zip method yesterday because the Joomla update page didn't offer the 4.2.0 update. Now I know why - you had discovered this bug and so you pulled the update. I am now schooled and I shan't use the Zip file method again!

avatar zero-24
zero-24 - comment - 25 Aug 2022

Just to let you know that is not a supported update method its even not supported for J3 and never was supported for J4.

The problem is that there are more than just one step happening on the upgrade like updating the database and deleting files that nolonger exists as well as the autoload files. When you need to reset the files please use the "Reset core files" via the Updater to make sure your site will not break.

avatar jeff-bronks
jeff-bronks - comment - 25 Aug 2022

Understood. Thanks for all your help. I've been using Joomla since 1.5 and perhaps unzipping was a permitted method back then. I was lucky that I got away with it in J3 but my database was probably a mess!

avatar zero-24
zero-24 - comment - 25 Aug 2022

It was allowed / used back than thats right but within modern Joomla version it is not supported and can lead to issues like this

avatar carlosdiaz2017
carlosdiaz2017 - comment - 31 Aug 2022

Update: I never found out what was wrong, but I managed to restore the site from a backup, version 4.1.5. Panic over.

I have the same error. I have deleted the file administrator/cache/autoload_psr4.php numerous times and still the same problem.

I have tried to restore a backup from a day before. I STILL HAVE THE ERROR!! even though it is a file and db backup from a day before the update. Isnt't that crazy? It is not only the backend, the website is crashed as well.

avatar richard67
richard67 - comment - 31 Aug 2022

Update: I never found out what was wrong, but I managed to restore the site from a backup, version 4.1.5. Panic over.

I have the same error. I have deleted the file administrator/cache/autoload_psr4.php numerous times and still the same problem.

I have tried to restore a backup from a day before. I STILL HAVE THE ERROR!! even though it is a file and db backup from a day before the update. Isnt't that crazy? It is not only the backend, the website is crashed as well.

@carlosdiaz2017 Have you used an empty database to restore the backup, or used Akeeba Kickstart? If not, your database might still contain stuff from after the failed update.

avatar Pream-webapps
Pream-webapps - comment - 14 Jun 2023

I am also facing the same issue. I just changed the 'administrator/cache' folder permission to 777 its working fine

avatar richard67
richard67 - comment - 14 Jun 2023

I am also facing the same issue. I just changed the 'administrator/cache' folder permission to 777 its working fine

@Pream-webapps If you need 777 because 775 does not work for you, then something is wrong with your webserver configuration.

avatar wolmex
wolmex - comment - 9 Jul 2024

the problem is solved by deleting the administrator/cache/autoload_psr4.php file. THANK YOU

avatar jrichard2
jrichard2 - comment - 1 Feb 2025

Same Error when i wanted to move my site from my local site wampserver to my host site on debian server.
the problem is solved by deleting the administrator/cache/autoload_psr4.php file
THANK YOU!

Add a Comment

Login with GitHub to post a comment