No Code Attached Yet bug
avatar thuebschmann
thuebschmann
18 Apr 2023

Steps to reproduce the issue

Install Joomla 4.3 via cli/joomla.php core:update

Expected result

Error
0 - Class "Joomla\Plugin\System\GuidedTours\Extension\GuidedTours" not found

Function Location

1 () JROOT/plugins/system/guidedtours/services/provider.php:42
2 Joomla\DI\ServiceProviderInterface@anonymous/kunden/408500_09117/kunden/immotreff-chemnitz/plugins/system/guidedtours/services/provider.php:23$0->{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:99
6 Joomla\CMS\Application\CMSApplication->bootPlugin() JROOT/libraries/src/Plugin/PluginHelper.php:221
7 Joomla\CMS\Plugin\PluginHelper::import() JROOT/libraries/src/Plugin/PluginHelper.php:181
8 Joomla\CMS\Plugin\PluginHelper::importPlugin() JROOT/libraries/src/Application/CMSApplication.php:744
9 Joomla\CMS\Application\CMSApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:635
10 Joomla\CMS\Application\SiteApplication->initialiseApp() JROOT/libraries/src/Application/SiteApplication.php:226
11 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
13 require_once() JROOT/index.php:32

Actual result

Repaired joomla

System information (as much as possible)

Additional comments

I need help to fix itz

avatar thuebschmann thuebschmann - open - 18 Apr 2023
avatar thuebschmann thuebschmann - change - 18 Apr 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 18 Apr 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Apr 2023
avatar thuebschmann thuebschmann - change - 18 Apr 2023
The description was changed
avatar thuebschmann thuebschmann - edited - 18 Apr 2023
avatar obuisard
obuisard - comment - 19 Apr 2023

It's been suggested you delete administrator/cache/autoload_psr4.php manually. The file will be re-created automatically.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40411.

avatar obuisard
obuisard - comment - 19 Apr 2023

Make sure the folder is writable though!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40411.

avatar thuebschmann
thuebschmann - comment - 19 Apr 2023

thank you vari much


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40411.

avatar mikch06
mikch06 - comment - 19 Apr 2023

I have the same issue. Did nothing deleted myself.

But mv the file administrator/cache/autoload_psr4.php to administrator/cache/autoload_psr4.something solved the issue for me.

Page is back.

avatar tecpromotion
tecpromotion - comment - 19 Apr 2023

@thuebschmann did deleting the administrator/cache/autoload_psr4.php file help?

avatar mikch06
mikch06 - comment - 19 Apr 2023

@thuebschmann did deleting the administrator/cache/autoload_psr4.php file help?

yes, for me it helped. but i just renamed the file to have it in case of more problems.

avatar thuebschmann
thuebschmann - comment - 19 Apr 2023

@thuebschmann did deleting the administrator/cache/autoload_psr4.php file help?

yes it helps i posted thank you 14 hours ago

avatar Fedik Fedik - change - 19 Apr 2023
Labels Added: bug
avatar Fedik Fedik - labeled - 19 Apr 2023
avatar richard67
richard67 - comment - 20 Apr 2023

I can reproduce the issue on new, clean installation on a clean 4.2-dev branch. When I use cli to update, the autoload_psr4.php has not changed after the update.

I don't know yet why this happens. The file should be deleted by the extract.php script here https://github.com/joomla/joomla-cms/blob/4.3-dev/administrator/components/com_joomlaupdate/extract.php#L1930-L1941 and also in the finalisation.php script here https://github.com/joomla/joomla-cms/blob/4.3-dev/administrator/components/com_joomlaupdate/finalisation.php#L74-L82 .

avatar brianteeman
brianteeman - comment - 20 Apr 2023

i can confirm this as well

avatar joomdonation
joomdonation - comment - 20 Apr 2023

@richard67 The code you are talking about is only executed when Joomla is updated using web updater. For CLI updater, that code is not executed, and that's the reason causing the error. Somehow, we will need to put that logic into UpdateCoreCommand

avatar richard67
richard67 - comment - 20 Apr 2023

@richard67 The code you are talking about is only executed when Joomla is updated using web updater. For CLI updater, that code is not executed, and that's the reason causing the error. Somehow, we will need to put that logic into UpdateCoreCommand

@joomdonation Yes, I agree. Do you plan to work on that?

avatar joomdonation
joomdonation - comment - 20 Apr 2023

@richard67 I will see but could not promise because I haven't had any experience with console code. If someone is faster, please go head. I would say beside delete autoload_prs4.php, we should also include this block of code, too https://github.com/joomla/joomla-cms/blob/4.3-dev/administrator/components/com_joomlaupdate/extract.php#L1948-L1959

avatar richard67
richard67 - comment - 20 Apr 2023

@richard67 I will see but could not promise because I haven't had any experience with console code. If someone is faster, please go head. I would say beside delete autoload_prs4.php, we should also include this block of code, too https://github.com/joomla/joomla-cms/blob/4.3-dev/administrator/components/com_joomlaupdate/extract.php#L1948-L1959

@joomdonation Also agreed. Unfortunately my time is very limited in the next two or three days, so I would be happy if you could work on it, and of course I would help if necessary.

avatar brianteeman
brianteeman - comment - 20 Apr 2023

the update log also needs to run on the cli update

checking other parts now

avatar rdeutz rdeutz - change - 20 Apr 2023
Labels Added: Release Blocker
avatar rdeutz rdeutz - labeled - 20 Apr 2023
avatar Fedik Fedik - change - 20 Apr 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-04-20 16:47:02
Closed_By Fedik
avatar Fedik
Fedik - comment - 20 Apr 2023

Please test the fix #40437

avatar Fedik Fedik - close - 20 Apr 2023
avatar richard67 richard67 - change - 21 Apr 2023
Labels Removed: Release Blocker
avatar richard67 richard67 - unlabeled - 21 Apr 2023

Add a Comment

Login with GitHub to post a comment