[BUG]: missing use Joomla\CMS\Uri\Uri; #1123

Open
opened 2024-05-03 15:31:33 +00:00 by Polmock · 2 comments

What Happened?

In file components/com_bbl/src/Model/Model.php in site view is missing use Joomla\CMS\Uri\Uri; at the top of the file.
Uri is used in the code generated in the getItems method.

Steps to reproduce the Bug

Create a list site view

Which Joomla version are you compiling in?

3.10.12

Which PHP version are you compiling in?

8.2.2

Which Joomla versions are you targeting?

4.4.4

Which PHP version are you targeting?

8.2.4

Which Web server is JCB running on?

Apache 2.4

Which Relational Database is JCB running on?

MySql 8.0

Which OS is JCB running on?

Windows 11

Which JCB version are you using?

3.2.1-rc5

Where in JCB did this issue occur?

Compilation of a component, Site Views(admin_views)

On which browsers did you encounter the issue?

Firefox, Chrome

Additional Comments

No response

### What Happened? In file components/com_bbl/src/Model/<plural name view>Model.php in site view is missing` use Joomla\CMS\Uri\Uri;` at the top of the file. Uri is used in the code generated in the getItems method. ### Steps to reproduce the Bug Create a list site view ### Which Joomla version are you compiling in? 3.10.12 ### Which PHP version are you compiling in? 8.2.2 ### Which Joomla versions are you targeting? 4.4.4 ### Which PHP version are you targeting? 8.2.4 ### Which Web server is JCB running on? Apache 2.4 ### Which Relational Database is JCB running on? MySql 8.0 ### Which OS is JCB running on? Windows 11 ### Which JCB version are you using? 3.2.1-rc5 ### Where in JCB did this issue occur? Compilation of a component, Site Views(admin_views) ### On which browsers did you encounter the issue? Firefox, Chrome ### Additional Comments _No response_
Polmock added the
Bug
label 2024-05-03 15:31:33 +00:00
Owner

Can you reinstall JCB, and give us a snapshot of the header of that file?

This missing use statement does not make sense, seeing that we are actually adding it... so I would like to understand what is happening here.

Can you reinstall JCB, and give us a snapshot of the header of that file? This missing use statement does not make sense, seeing that we are actually adding it... so I would like to understand what is happening here.
Author

I've updated to 3.2.1-rc6 version.
And manually replaced the compiler folder just to be sured that it's up to date.
I've downgraded php to 8.0.27 version (of course, I always use Firefox to compile).

image

I've updated to 3.2.1-rc6 version. And manually replaced the compiler folder just to be sured that it's up to date. I've downgraded php to 8.0.27 version (of course, I always use Firefox to compile). ![image](/attachments/eb6d7fae-b096-43eb-bcd4-1b8e85a5422e)
115 KiB
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#1123
No description provided.