Missing autoload_psr4.php

Be informed that this forum is not an official support forum for Joomla! 4.0. Any issues regarding Joomla! 4.0 must be reported at https://issues.joomla.org/.

Joomla 4.0 is still in Beta stage. This forum should be used for sharing information about Joomla! 4.0.

Moderator: ooffick

Forum rules
Locked
skurvish
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Mon Oct 27, 2008 2:41 pm

Missing autoload_psr4.php

Post by skurvish » Thu Jun 04, 2020 12:14 pm

I installed the latest J from github this morning into a clean directory. I switched to the 4.0-dev branch. Ran composer install and npm -ci and all seemed to work OK. Trying to access the installation I immediately get a 500 error.

Using phpstorm I find that namespacemap.php at line 93 is attempting to requite /administrator/cache/autoload_psr4.php which does not exist in my clean installation. There is also no file by this name in the jpath_root directory.

Did I do something wrong on the install or is this actually an issue with the current repo?

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Missing autoload_psr4.php

Post by brian » Thu Jun 04, 2020 12:46 pm

That file should be automatically generated on load
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2680
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Missing autoload_psr4.php

Post by ceford » Thu Jun 04, 2020 5:00 pm

Is this a write permissions problem?

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Missing autoload_psr4.php

Post by brian » Thu Jun 04, 2020 9:41 pm

I believe this has been addressed in a duplicate posting on the issue tracker
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24986
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Missing autoload_psr4.php

Post by pe7er » Fri Nov 11, 2022 3:49 pm

ceford wrote:
Thu Jun 04, 2020 5:00 pm
Is this a write permissions problem?
Yes, thank you for this remark.
I just encountered this issue with using docker containers.
I needed to fix the write permissions in my Apache container to fix it.
Thanks!
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com


Locked

Return to “Joomla! 4 Related”