Warning: Creating default object from empty value

Warning: Creating default object from empty value was created by Senga

Posted 9 years 6 months ago #23006
I get the following error on maximenu module from a joomla install that I have:
"Warning: Creating default object from empty value in /home/mysite/public_html/modules/mod_maximenuck/helper.php on line 184

line 184= } else {
$parentItem->submenuswidth = strval($item->colwidth);
}
How to fix the code so that the warning no longer shows and to fix the problem once for all ?

Thanks,
Agnes
Last Edit:9 years 6 months ago by Senga
Last edit: 9 years 6 months ago by Senga. Reason: subscribe to topic

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

Replied by ced1870 on topic Warning: Creating default object from empty value

Posted 9 years 6 months ago #23010
Hi
it seems that you don't have the latest version of the module
if you don't want to update, go in your site configuration >> server >> error report and set it to none
CEd

Joomlack Webmaster and Developer

by ced1870

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

Replied by ettolo on topic Warning: Creating default object from empty value

Posted 6 years 2 months ago #47113
I have the same warning

Warning: Creating default object from empty value in /var/www/clients/client0/web8/web/modules/mod_maximenuck/helper.php on line 283

but i think i have an uptaded version (see attached file) Tryied updating the module to current version 8.2.11 but the error is still there
Can you help me?
Thank you!
Last Edit:6 years 2 months ago by ettolo
Attachments:
Last edit: 6 years 2 months ago by ettolo.

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

Replied by ced1870 on topic Warning: Creating default object from empty value

Posted 6 years 2 months ago #47114
Hi
few questions to try to find the problem :
1/ are you using the maximenu params or not ?
2/ are you using [col=xxx] in the item titles ?

please give me the anwsers, so that I can continue the investigation
CEd

Joomlack Webmaster and Developer

by ced1870

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

Replied by ettolo on topic Warning: Creating default object from empty value

Posted 6 years 2 months ago #47115
1/ No maximenu params module
2/ yes
by ettolo

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

Replied by ced1870 on topic Warning: Creating default object from empty value

Posted 6 years 2 months ago #47116
ok thanks :)
I will check

Joomlack Webmaster and Developer

by ced1870

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

Time to create page: 0.771 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 625 guests and one member online