Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth was created by ml44230

Posted 2 years 4 months ago #62505
Hi Cédric
I get this message when installing MaximenuCK 9.1.21 on my website upgraded to Joomla 4.0.4 under Xampp :
Notice: Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth in E:\xampp\htdocs\clos\components\com_maximenuck\helpers\source\menu.php on line 157

Any idea ?
Thanks for help
Best regards
Micchel
by ml44230

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth

Posted 2 years 4 months ago #62508
Hi
thank you for reporting the problem
I will check it, until that you can disable the error report int he website configuration >> server >> php report
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by ml44230 on topic Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth

Posted 2 years 4 months ago #62514
The problem does not exist in relrase 9.1.20
it appears when you upgrade to 9.1.21.
I fixed it by commenting line 157 in the file, but this is not of course the valid solution.
Best regards
Michel
by ml44230

Please Log in or Create an account to join the conversation.

Replied by ml44230 on topic Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth

Posted 2 years 4 months ago #62517
Hello Cédrik
It seems that the problem occurs when the text of the menu entry is displayed on 2 lines using the "||" to force a newline.
In that case it generates 2 error messages.
In the examle I sent you, there was only 1 entry mennu like this and 2 notice message.
I have another website in test where there are 6 entries text splitted on 2 lines and I receive 12 notice messages.
Hope that could help !
Best regards
Michel
by ml44230

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth

Posted 2 years 4 months ago #62522
instead of using || , you shall better use the description field in the Source >> menu >> edition interface
please try that and tell me

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by ml44230 on topic Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth

Posted 2 years 4 months ago #62527
I'm sorry, I could not find the file.
Could you plese give me the full path ?
I use the || separator because you told me to do that 4 years ago by mail, in order to reduce the length of the bar menu of my website
Best regards
Michel
by ml44230

Please Log in or Create an account to join the conversation.

Time to create page: 0.633 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 857 guests and 2 members online