No Code Attached Yet
avatar benyrfg
benyrfg
10 Mar 2023

Steps to reproduce the issue

  1. create new menu item type "Create Article"
  2. in the Options tab, set "Specific category" option to Yes and choose some category in the field below
  3. go to the frontend logged as superuser and open this menu item

Expected result

no error

Actual result

TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given
/administrator/components/com_categories/layouts/joomla/form/field/categoryedit.php:103

screen shot 2023-03-10 at 15 25 04

System information (as much as possible)

Joomla 4.2.8
PHP 8.1.14
Helix Ultimate Framework, tested also on Casiopea template

Additional comments

it has something to do with the template file com_content/form/edit.php
when I remove this line, the error not appear:

form->renderField('catid'); ?>

but then, of course, the form than doesn't work properly.

avatar benyrfg benyrfg - open - 10 Mar 2023
avatar benyrfg benyrfg - change - 10 Mar 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Mar 2023
avatar benyrfg benyrfg - change - 10 Mar 2023
The description was changed
avatar benyrfg benyrfg - edited - 10 Mar 2023
avatar benyrfg
benyrfg - comment - 10 Mar 2023

This problem went away after I logged out and logged back in.

This issue can probably be closed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40073.

avatar benyrfg benyrfg - change - 10 Mar 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-03-10 15:46:28
Closed_By benyrfg
avatar benyrfg benyrfg - close - 10 Mar 2023

Add a Comment

Login with GitHub to post a comment