No Code Attached Yet
avatar brianteeman
brianteeman
28 Mar 2023

Steps to reproduce the issue

100% clean install in a brand new location using the offifial RC zip from github

Actual result

image

System information (as much as possible)

win11 apache php8.,1

Additional comments

avatar brianteeman brianteeman - open - 28 Mar 2023
avatar joomla-cms-bot joomla-cms-bot - change - 28 Mar 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Mar 2023
avatar brianteeman
brianteeman - comment - 28 Mar 2023

image

avatar brianteeman
brianteeman - comment - 28 Mar 2023

The issue is fixed by deleting administrator\cache\autoload_psr4.php and letting Joomla rebuild it. That should not be necessasry on a new install

avatar brianteeman
brianteeman - comment - 28 Mar 2023

weird - cant replicate it again.

avatar obuisard
obuisard - comment - 28 Mar 2023

I can't replicate it either Tried the same environment without issue. That's a strange one

avatar brianteeman
brianteeman - comment - 28 Mar 2023

As the file it crashed on was the first of the plugins I suspect that the build of the cache file didnt complete for some reason.

avatar joomdonation
joomdonation - comment - 29 Mar 2023

Could not replicate the issue, too. I'm using win 10, apache, php 8.2.

avatar OctavianC
OctavianC - comment - 29 Mar 2023

Happened to me too - when using Windows (wamp) and then uploading the files back to a Unix server. The directory separator is different in autoload_psr4.php:

Windows:

'Joomla\\Plugin\\Actionlog\\Joomla\\' => [JPATH_PLUGINS . '\actionlog/joomla/src'],

Unix:

'Joomla\\Plugin\\Actionlog\\Joomla\\' => [JPATH_PLUGINS . '/actionlog/joomla/src'],

Notice the different slashes. When uploading to a Unix server, \ is not treated as a directory separator but as part of the directory's name so it's probably looking for a directory named plugins\actionlog hence the error.

avatar Hackwar
Hackwar - comment - 29 Mar 2023

Yes, the slashes are different, but that doesn't matter for PHP. It handles both fine.

avatar chmst
chmst - comment - 29 Mar 2023

Win 11, xampp, php 8.1
Cannot replicate the issue

avatar N6REJ
N6REJ - comment - 30 Mar 2023

win10 x64pro can't replicate it.

avatar alikon
alikon - comment - 31 Mar 2023

@brianteeman can you close this one ? as it seems not reproducible

avatar brianteeman
brianteeman - comment - 2 Apr 2023

as two of us have reported this issue AND the file responsible for creating the autoload_psr was changed since the previous release I still see it as a problem. It obviously happens its just about working out under what cirscumstances it happens

avatar richard67
richard67 - comment - 3 Apr 2023

Yes, the slashes are different, but that doesn't matter for PHP. It handles both fine.

@Hackwar That's not 100% right. PHP allows to use *nix paths with a slash as directory separator anywhere, i.e. it allows to use standardized paths with slashes, like other programming languages do, e.g. Java. That means you can use paths with slashes also on Windows. But the opposite is not right, you cannot safely use Windows paths with backslashes on Linux. The paths should always use slashes to be portable between servers with different OS.

avatar Fedik
Fedik - comment - 3 Apr 2023

As I understood it happen when uploading files between Windows and Unix?
Well, the cache should not be migrated. This also applies for /tmp files.
No cache => No issue ?

avatar richard67
richard67 - comment - 3 Apr 2023

As I understood it happen when uploading files between Windows and Unix? Well, the cache should not be migrated. This also applies for /tmp files. No cache => No issue ?

Makes sense to me. Should be documented somewhere if possible.

avatar Fedik
Fedik - comment - 3 Apr 2023

Should be documented somewhere if possible.

To me it is an obvious rule, everyone should follow. It not only about Joomla, but about any system

avatar brianteeman
brianteeman - comment - 7 Apr 2023

So I just came across the same thing on another site on *nix and googling and checking this tracker is showing that others are having the same problem not just with 4.3. Deleting the autoload_psr4.php cache does not help as the problem is still present in the renewed file.

I havent worked out why but when you look in the autoload_psr4.php you will see that the first x entries for plugins are all missing.


	'Joomla\\Module\\Version\\Administrator\\' => [JPATH_ADMINISTRATOR . '/modules/mod_version/src'],
	'Joomla\\Module\\Whosonline\\Site\\' => [JPATH_SITE . '/modules/mod_whosonline/src'],
	'Joomla\\Module\\Wrapper\\Site\\' => [JPATH_SITE . '/modules/mod_wrapper/src'],
	'Joomla\\Plugin\\Content\\ConfirmConsent\\' => [JPATH_PLUGINS . '/content/confirmconsent/src'],
	'Joomla\\Plugin\\Editors\\CodeMirror\\' => [JPATH_PLUGINS . '/editors/codemirror/src'],
	'Joomla\\Plugin\\Editors\\TinyMCE\\' => [JPATH_PLUGINS . '/editors/tinymce/src'],


avatar brianteeman brianteeman - change - 1 Aug 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-08-01 18:21:02
Closed_By brianteeman
avatar brianteeman brianteeman - close - 1 Aug 2023

Add a Comment

Login with GitHub to post a comment