source K2 does not work

Replied by mimmomgl on topic source K2 does not work

Posted 3 years 6 days ago #60258
Good morning,

due to important commitments, I could not try before today.

I installed the correct K2 plugin and the translation works, but there is still a problem .... I try to explain it as best I can.

I have published the CK / k2 menu module on all pages.

If from the main menu (not from the module) I select a menu item created with K2 (for example a menu item that points to a category or a K2 article), the menu items present in the CK / K2 menu module work perfectly. If, on the other hand, from the main menu I select a menu item not created with K2 (for example a menu item that points to a joomla article or a simple login or contact page, etc.), the menu module menu CK / K2 works, but gives this error:
"Warning: Creating default object from empty value in /web/htdocs/www.my site.edu.it/home/components/com_k2/views/itemlist/view.html.php on line 743"

I hope I was clear in the explanations.

Can you correct this error?

Thank you,
Domenico
Last Edit:3 years 6 days ago by mimmomgl
Last edit: 3 years 6 days ago by mimmomgl.

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

Replied by ced1870 on topic source K2 does not work

Posted 3 years 6 days ago #60262
ok, can you please tell me on which page to you have this warning ?in admin, front , where the module is loaded, or not ...
what I see is that this warning comes from the K2 component but I will check by my side if the cause if in my module if you give me a bit more info :)

Joomlack Webmaster and Developer

by ced1870

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

Replied by mimmomgl on topic source K2 does not work

Posted 3 years 6 days ago #60265
The warning is visible from the frontend.

I try to explain it step by step

01- www.miosito.com
02 - from the main menu I select a menu item created with K2 (eg. K2category)
03 - the page with the contents opens and the accordeonmenuCK module appears on the right, which has K2 as its source.
04 - If you try to click on any item of the menuCK module everything works perfectly.
05 - Second case: from the main menu I select a menu item not created with K2 (eg Contacts)
06 - the contact page opens and the accordeonmenuCK module reappears on the right, which always has K2 as source
07 - Now, if you try to click on the items of the menuCK module, the error I reported to you appears.
Last Edit:3 years 6 days ago by mimmomgl
Last edit: 3 years 6 days ago by mimmomgl.

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

Replied by ced1870 on topic source K2 does not work

Posted 3 years 13 minutes ago #60337
I have tested that, but I'm not able to reproduce the issue ...
Just to be sure :

"Warning: Creating default object from empty value in /web/htdocs/www.my site.edu.it/home/components/com_k2/views/itemlist/view.html.php on line 743"

this appears in the K2 page, right ? not in the module itself ?

because this points into the K2 component, and I think that you shall report the problem to the K2 developer. This is related to the $menuActive variable and in this case the menu item from the accordion menu does not belong to any joomla menu (this is what I have seen in the source code of K2 where the warning appears)

until this is fixed, you can disable the PHP error report to NONE in your website configuration

Joomlack Webmaster and Developer

by ced1870

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

Replied by mimmomgl on topic source K2 does not work

Posted 2 years 11 months ago #60339
Good morning,

Thanks for the reply.

Could you take a look at my site to analyze the problem?

How can I send you the access data to the site, in private?

Thanks,
Domenico

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

Replied by ced1870 on topic source K2 does not work

Posted 2 years 11 months ago #60340
I will not see more in your website ...
even if I can not reproduce the message by my side, I have now checked in the code (as explained) and this must be fixed by the K2 developper

I have also given you a method to hide the message

you can disable the PHP error report to NONE in your website configuration

Is there anything that you need ?

Joomlack Webmaster and Developer

by ced1870

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

Time to create page: 0.652 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1182 guests and 2 members online