[BUG]: Demo extension: use Joomla\CMS\Factory; is used twice #1177

Open
opened 2024-10-13 17:11:56 +00:00 by peterpeter · 0 comments

What Happened?

Hi
I want to give JCB a try, installed today a new J-5.1.4 and the JCB 5.0.3.
When I compile and try to install the (unchanched) demo-extension that comes with JCB, PHP throws an error:
"Cannot use Joomla\CMS\Factory as Factory because the name is already in use"

In the DemoInstallerScript.php
use Joomla\CMS\Factory;
is used/written twice:
https://prnt.sc/eru0LbQws2CK

Steps to reproduce the Bug

Install new J and JCB, compile demo extension and try to install it.

Which Joomla version are you compiling in?

5.1.4

Which PHP version are you compiling in?

8.1.26

Which Joomla versions are you targeting?

5.1.4

Which PHP version are you targeting?

8.1.26

Which Web server is JCB running on?

Localhost/Wampserver/Apache 2.4.58.1

Which Relational Database is JCB running on?

MySQL 8.1..0

Which OS is JCB running on?

Windows 10

Which JCB version are you using?

5.0.3

Where in JCB did this issue occur?

Compilation of a component, Installation of a component

On which browsers did you encounter the issue?

Brave

Additional Comments

No response

### What Happened? Hi I want to give JCB a try, installed today a new J-5.1.4 and the JCB 5.0.3. When I compile and try to install the (unchanched) demo-extension that comes with JCB, PHP throws an error: "Cannot use Joomla\CMS\Factory as Factory because the name is already in use" In the DemoInstallerScript.php use Joomla\CMS\Factory; is used/written twice: https://prnt.sc/eru0LbQws2CK ### Steps to reproduce the Bug Install new J and JCB, compile demo extension and try to install it. ### Which Joomla version are you compiling in? 5.1.4 ### Which PHP version are you compiling in? 8.1.26 ### Which Joomla versions are you targeting? 5.1.4 ### Which PHP version are you targeting? 8.1.26 ### Which Web server is JCB running on? Localhost/Wampserver/Apache 2.4.58.1 ### Which Relational Database is JCB running on? MySQL 8.1..0 ### Which OS is JCB running on? Windows 10 ### Which JCB version are you using? 5.0.3 ### Where in JCB did this issue occur? Compilation of a component, Installation of a component ### On which browsers did you encounter the issue? Brave ### Additional Comments _No response_
peterpeter added the
Bug
label 2024-10-13 17:11:56 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1177
No description provided.