[BUG]: Compilation error #1260

Closed
opened 2025-10-07 09:02:09 +00:00 by flamingo · 4 comments

What Happened?

In JCB Options, Activate Super Powers is disabled.
If I set Add Power to Yes at compiler, the InstallerScript file contains the entries Joomla\CMS\Factory and Joomla\CMS\Language\Text twice, resulting in errors.
If Add Power is set to No, the following error occurs during installation:
Class "Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power" not found

How can I resolve this problem?

Steps to reproduce the Bug

See description

Which Joomla version are you compiling in?

5.3.3

Which PHP version are you compiling in?

8.2.12

Which Joomla versions are you targeting?

5

Which PHP version are you targeting?

8.2

Which Web server is JCB running on?

XAMPP 8.2.12

Which Relational Database is JCB running on?

MYSQL MariaDB 10.4.32

Which OS is JCB running on?

Windows 11

Which JCB version are you using?

5.1.1

Where in JCB did this issue occur?

Installation JCB pkg

On which browsers did you encounter the issue?

Firefox

Additional Comments

No response

### What Happened? In JCB Options, Activate Super Powers is disabled. If I set Add Power to Yes at compiler, the InstallerScript file contains the entries Joomla\CMS\Factory and Joomla\CMS\Language\Text twice, resulting in errors. If Add Power is set to No, the following error occurs during installation: Class "Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power" not found How can I resolve this problem? ### Steps to reproduce the Bug See description ### Which Joomla version are you compiling in? 5.3.3 ### Which PHP version are you compiling in? 8.2.12 ### Which Joomla versions are you targeting? 5 ### Which PHP version are you targeting? 8.2 ### Which Web server is JCB running on? XAMPP 8.2.12 ### Which Relational Database is JCB running on? MYSQL MariaDB 10.4.32 ### Which OS is JCB running on? Windows 11 ### Which JCB version are you using? 5.1.1 ### Where in JCB did this issue occur? Installation JCB pkg ### On which browsers did you encounter the issue? Firefox ### Additional Comments _No response_
flamingo added the Bug label 2025-10-07 09:02:09 +00:00
Owner

Please give us code, images and text. We can not work with PDF's thanks.

Please give us code, images and text. We can not work with PDF's thanks.
Author

Thanks for your feedback.
I also noticed the administrator/components/com-componentbuilder/compiler folder contains a Joomla_3 and a Joomla_4 folder, but no Joomla_5. Is that okay?

Thanks for your feedback. I also noticed the administrator/components/com-componentbuilder/compiler folder contains a Joomla_3 and a Joomla_4 folder, but no Joomla_5. Is that okay?
Author

After updating to 5.1.2-rc2 didn't improve the situation, I reinstalled the JCB component.

Then I compiled the DEMO component.
The compilation was successful: Successful Build!
With the following notes:

Info:
You do not have a global power plugin setup, so the powers plugin autoloader could not be added.

A method (moveFolders) was added to the install ComponentnameInstallerScript.php of this package to insure that the folder(s) are copied into the correct place when this component is installed!

Warnung
You do not have a global privacy plugin setup, so the integration with Joomla privacy suite could not be build.

I assume that these notes do not require any action.

Installing the Demo component resulted in these errors:

Deprecated: Creation of dynamic property VDM\Component\Componentbuilder\Administrator\Controller\CompilerController::$_compiler_model is deprecated in L:\XAMPP\htdocs\duetto\administrator\components\com_componentbuilder\src\Controller\CompilerController.php on line 531

Deprecated: Creation of dynamic property VDM\Component\Componentbuilder\Administrator\Controller\CompilerController::$_installer_lang is deprecated in L:\XAMPP\htdocs\duetto\administrator\components\com_componentbuilder\src\Controller\CompilerController.php on line 536

Fatal error: Cannot use Joomla\CMS\Factory as Factory because the name is already in use in L:\XAMPP\htdocs\duetto\tmp\install_68e93255b8e98\DemoInstallerScript.php on line 25

I am beyond my expertise to troubleshoot these system errors. Can anyone help?

After updating to 5.1.2-rc2 didn't improve the situation, I reinstalled the JCB component. Then I compiled the DEMO component. The compilation was successful: Successful Build! With the following notes: Info: You do not have a global power plugin setup, so the powers plugin autoloader could not be added. A method (moveFolders) was added to the install ComponentnameInstallerScript.php of this package to insure that the folder(s) are copied into the correct place when this component is installed! Warnung You do not have a global privacy plugin setup, so the integration with Joomla privacy suite could not be build. I assume that these notes do not require any action. Installing the Demo component resulted in these errors: Deprecated: Creation of dynamic property VDM\Component\Componentbuilder\Administrator\Controller\CompilerController::$_compiler_model is deprecated in L:\XAMPP\htdocs\duetto\administrator\components\com_componentbuilder\src\Controller\CompilerController.php on line 531 Deprecated: Creation of dynamic property VDM\Component\Componentbuilder\Administrator\Controller\CompilerController::$_installer_lang is deprecated in L:\XAMPP\htdocs\duetto\administrator\components\com_componentbuilder\src\Controller\CompilerController.php on line 536 Fatal error: Cannot use Joomla\CMS\Factory as Factory because the name is already in use in L:\XAMPP\htdocs\duetto\tmp\install_68e93255b8e98\DemoInstallerScript.php on line 25 I am beyond my expertise to troubleshoot these system errors. Can anyone help?
Owner

I think this is related to: #1219

Please think about giving octojoom a try 😉

I think this is related to: https://git.vdm.dev/joomla/Component-Builder/issues/1219 Please think about giving [octojoom](https://git.vdm.dev/octoleo/octojoom) a try 😉
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1260