Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

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

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 25 Nov 2021 08:44 #62505

  • ml44230
  • ml44230's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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

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

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 25 Nov 2021 15:27 #62508

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 25394
  • Karma: 427
  • Thank you received: 3205
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

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

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 25 Nov 2021 18:22 #62514

  • ml44230
  • ml44230's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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

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

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 26 Nov 2021 08:50 #62517

  • ml44230
  • ml44230's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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

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

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 26 Nov 2021 13:15 #62522

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 25394
  • Karma: 427
  • Thank you received: 3205
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

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

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 26 Nov 2021 17:52 #62527

  • ml44230
  • ml44230's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
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

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

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 27 Nov 2021 08:45 #62529

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 25394
  • Karma: 427
  • Thank you received: 3205
you can find the info in the documentation here
www.joomlack.fr/documentation/maximenu-c...itle-and-description

let me know
Joomlack Webmaster and Developer

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

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 27 Nov 2021 08:46 #62530

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 25394
  • Karma: 427
  • Thank you received: 3205

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

yes :) this was the very first method, now this can be done using the interface

PS : anyway I have noted the problem, so I will check that in the next days. Until that you can hide the messages in your configuration >> server >> php report >> none
Joomlack Webmaster and Developer

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

Last edit: by ced1870.

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 27 Nov 2021 15:43 #62532

  • ml44230
  • ml44230's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Many thanks Cédric !
Effectively, it should be very simple now to custom the menu items wirh the editor, but these goodies are available only for the PRO vesion !
Because my websites are not commercial ones, I use the free Maximenu CK and appreciate it very much.
So, I'll wait until you can fix the problem and I have hidden the message doing like you explained.
A lot of thanks for your work and especially for your disponibility
Best regards
Michel

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

Undefined property: Joomla\CMS\Menu\MenuItem::$colwidth 28 Nov 2021 09:28 #62536

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 25394
  • Karma: 427
  • Thank you received: 3205
ok sorry for the confusion, I did not realize that you are using the Light version
no problem, as said I will check that
Joomlack Webmaster and Developer

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

  • Page:
  • 1
Time to create page: 0.218 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 763 guests and 2 members online