J4 Issue ?
avatar frogydiak
frogydiak
27 Jun 2018

Steps to reproduce the issue

I did a:

git pull origin 4.0-dev

I didn't get any error while pulling but when I tried to reload /administrator, I get this:

Error: Class 'Joomla\Module\Version\Administrator\Helper\VersionHelper' not found: Class 'Joomla\Module\Quickicon\Administrator\Helper\QuickIconHelper' not found

Additional comments

I don't know what changed in the code but understandably it is still in Alpha. I was able to fix it by deleting all the files and copying over a downloaded zip file of the same branch (But using my previous database).

Another issue with the current version of 4.0-dev branch is suddenly the Extension class is no longer auto loaded when called in the administrator\components\com_custom\services\provider.php file. My custom component would not run anymore. I am getting an error class not found:

Class 'Joomla\Component\Mycomponent\Administrator\Extension\MyComponent' not found

I did not change anything with the provider.php file and it use to work before the git pull. Seems like the class MyComponent is not being auto loaded anymore.

I guess it is wrong to develop while the framework is still in Alpha LOL!

avatar frogydiak frogydiak - open - 27 Jun 2018
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jun 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Jun 2018
avatar frogydiak frogydiak - change - 27 Jun 2018
The description was changed
avatar frogydiak frogydiak - edited - 27 Jun 2018
avatar frogydiak frogydiak - change - 27 Jun 2018
The description was changed
avatar frogydiak frogydiak - edited - 27 Jun 2018
avatar frogydiak frogydiak - change - 27 Jun 2018
The description was changed
avatar frogydiak frogydiak - edited - 27 Jun 2018
avatar frogydiak frogydiak - change - 28 Jun 2018
The description was changed
avatar frogydiak frogydiak - edited - 28 Jun 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Jun 2018
Category CLI
avatar brianteeman brianteeman - change - 29 Jun 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 29 Jun 2018
avatar roland-d
roland-d - comment - 1 Jul 2018

I have the same issue and traced it back to this issue #17259 implementing this code. @laoneo Can you have a look at why this is failing? I am not sure why we are using \Joomla\Module\Version\Administrator\Helper\ while the file is in folder administrator\modules\mod_version\Helper. There is no autoloader able to make that translation.

avatar brianteeman
brianteeman - comment - 1 Jul 2018

Do you still have a file called autoloader_psr4.php (or something like that) in the libraries folder?

avatar roland-d
roland-d - comment - 1 Jul 2018

@brianteeman Yes it is there although I can see it is excluded from Git now. Removing that file fixes it. Thank you.

avatar brianteeman
brianteeman - comment - 1 Jul 2018

Going to close this ;)

avatar brianteeman brianteeman - close - 1 Jul 2018
avatar brianteeman brianteeman - change - 1 Jul 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-07-01 19:35:55
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment