[BUG]: Compiler view Error when there are no Components created #1164
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1164
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What Happened?
Trash or Archive all Components in JCB and try to go to the Compiler, you get and Error:
Call to a member function renderFieldset() on null
Steps to reproduce the Bug
Trash or Archive all Components in JCB and try to go to the Compiler
Presented with the following Error:
Which Joomla version are you compiling in?
v5.1.2
Which PHP version are you compiling in?
v8.2.18
Which Joomla versions are you targeting?
v5.1.2
Which PHP version are you targeting?
v8.2.18
Which Web server is JCB running on?
Apache/2.4.59 (Debian)
Which Relational Database is JCB running on?
MariaDB 11.3.2
Which OS is JCB running on?
Ubuntu Desktop (24.04)
Which JCB version are you using?
v 5.0.2
Where in JCB did this issue occur?
Compiler(admin_view)
On which browsers did you encounter the issue?
Firefox
Additional Comments
No response
Can you do some tests on this? there are two places we should debug this:
The Class area:
On line 103 check what is the value received from getDynamicForm
We can also check what is the value from the model at line 100 when it calls the getComponents method in the model.
The view:
Here in the view where the error is found, we are calling the form value which I would expect to be null, if there are no components found, let me know what you see there.