[BUG]: Admin View / Toolbar / Add PHP (addToolbar - Admin_views) * #1280

Open
opened 2026-01-18 14:42:27 +00:00 by dormasta · 1 comment

What Happened?

When you set "Add PHP (addToolbar - Admin_views)", to "yes" and fill out the field (like a comment to test where it is placed in the code) and than set to "no" again you get a compilation error.

Steps to reproduce the Bug

  1. go to Admin View / Toolbar / Add PHP (addToolbar - Admin_views) *
  2. set add PHP to yes
  3. put a comment
  4. set add PHP to no
  5. compile ->

An error has occurred. 0 Joomla\Filesystem\File::delete: Failed deleting index.html

Which Joomla version are you compiling in?

5.4.2

Which PHP version are you compiling in?

8.3.23

Which Joomla versions are you targeting?

5

Which PHP version are you targeting?

8.3.23

Which Web server is JCB running on?

Apache

Which Relational Database is JCB running on?

MySQL 8.0.43-34

Which OS is JCB running on?

linux

Which JCB version are you using?

5.1.4-beta4

Where in JCB did this issue occur?

Compilation of a component, Site View(admin_view)

On which browsers did you encounter the issue?

Safari

Additional Comments

in the new Toolbar Tab

### What Happened? When you set "Add PHP (addToolbar - Admin_views)", to "yes" and fill out the field (like a comment to test where it is placed in the code) and than set to "no" again you get a compilation error. ### Steps to reproduce the Bug 1. go to Admin View / Toolbar / Add PHP (addToolbar - Admin_views) * 2. set add PHP to yes 3. put a comment 4. set add PHP to no 5. compile -> An error has occurred. 0 Joomla\Filesystem\File::delete: Failed deleting index.html ### Which Joomla version are you compiling in? 5.4.2 ### Which PHP version are you compiling in? 8.3.23 ### Which Joomla versions are you targeting? 5 ### Which PHP version are you targeting? 8.3.23 ### Which Web server is JCB running on? Apache ### Which Relational Database is JCB running on? MySQL 8.0.43-34 ### Which OS is JCB running on? linux ### Which JCB version are you using? 5.1.4-beta4 ### Where in JCB did this issue occur? Compilation of a component, Site View(admin_view) ### On which browsers did you encounter the issue? Safari ### Additional Comments in the new Toolbar Tab
dormasta added the Bug label 2026-01-18 14:42:27 +00:00
Owner

Hello @dormasta,

Thank you for reporting this issue.
I've tested the behavior on my side and was unable to reproduce the problem. From what I can see, your environment is running on Linux with MariaDB and Apache, which is perfectly fine. My setup is also running on Ubuntu Linux, so our server environments are very similar.
One key difference I noticed is that you are using the Safari web browser. Unfortunately, Safari is not recommended for use with JCB. JCB has been extensively tested and validated on Firefox and LibreWolf, and these browsers are known to work correctly and consistently.
I've attached a couple of screenshots for reference. As you'll see, even when I add PHP code and then remove it again, everything continues to function as expected.
Could you please try reproducing the issue using Firefox or LibreWolf and let us know if the problem persists? This will help us determine whether the behavior is browser-specific.. maybe also share some screenshot or debug logs if this issue persists.

Added PHP comment:
Screenshot01.png

Area in tool bar where the code is rendered:
Screenshot02.png

Set the add php to NO and the default toolbar is added back:
Screenshot03.png

Hello @dormasta, Thank you for reporting this issue. I've tested the behavior on my side and was unable to reproduce the problem. From what I can see, your environment is running on Linux with MariaDB and Apache, which is perfectly fine. My setup is also running on Ubuntu Linux, so our server environments are very similar. One key difference I noticed is that you are using the Safari web browser. Unfortunately, Safari is not recommended for use with JCB. JCB has been extensively tested and validated on Firefox and LibreWolf, and these browsers are known to work correctly and consistently. I've attached a couple of screenshots for reference. As you'll see, even when I add PHP code and then remove it again, everything continues to function as expected. Could you please try reproducing the issue using Firefox or LibreWolf and let us know if the problem persists? This will help us determine whether the behavior is browser-specific.. maybe also share some screenshot or debug logs if this issue persists. Added PHP comment: ![Screenshot01.png](https://git.vdm.dev/attachments/5c54fd34-c206-43fc-967f-555c5d847d01) Area in tool bar where the code is rendered: ![Screenshot02.png](https://git.vdm.dev/attachments/b9c9ae84-64a8-4a8b-8df7-8faea3c44af7) Set the add php to `NO` and the default toolbar is added back: ![Screenshot03.png](https://git.vdm.dev/attachments/027a56a9-e912-414c-ad52-c3560d4fb034)
Lemuel added help wanted and removed Bug labels 2026-02-11 08:23:11 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1280