? No Code Attached Yet
avatar 810
810
9 Jun 2020

Steps to reproduce the issue

I have a package with admin/site/library/plugins/media installers.

I want to use a namespace on the pkg script on the postflight.

use Kunena\Forum\Libraries\Install\KunenaModelInstall;

On the postflight:

$installer = new KunenaModelInstall;
$installer->createMenu();

Expected result

That the namespace is already registered at autoload_psr4 file.

Actual result

Class 'Kunena\Forum\Libraries\Install\KunenaModelInstall' not found

System information (as much as possible)

Nightly build J4

Kunena 6.0 nightly build: www.kunena.org/download on the bottom is the nightly build.

Additional comments

avatar 810 810 - open - 9 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Jun 2020
avatar xillibit
xillibit - comment - 7 Aug 2020

Someone has an idea on this ?

avatar xillibit
xillibit - comment - 29 Aug 2020

Tested on beta4-dev build, still lost the id of component during installation of component :

image

So nobody has an idea of what going on ?

avatar xillibit
xillibit - comment - 29 Aug 2020

We have found a workaround for it : Kunena/Kunena-Forum@85c6386

avatar zero-24
zero-24 - comment - 30 Aug 2020

I guess the best place would be somewhere here: https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Installer/InstallerAdapter.php#L1005 right? So the new names are loaded just before the script.php is executed right?

avatar xillibit
xillibit - comment - 30 Aug 2020

I'am agree with you

avatar zero-24
zero-24 - comment - 30 Aug 2020

Can you do a PR? So we can finally fix this in the core and you can get rid of your workaround?

avatar Hackwar Hackwar - change - 20 Feb 2023
Labels Added: ? No Code Attached Yet
Removed: ?
avatar Hackwar Hackwar - labeled - 20 Feb 2023

Add a Comment

Login with GitHub to post a comment