source K2 does not work

Replied by mimmomgl on topic source K2 does not work

Posted 3 years 1 month 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 1 month ago by mimmomgl
Last edit: 3 years 1 month 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 4 weeks 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 3 years 4 weeks 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 3 years 4 weeks 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.

Replied by mimmomgl on topic source K2 does not work

Posted 3 years 4 weeks ago #60341
I can't understand why to involve the K2 developers ....
the error appears when I assign the modulemenuCK (source K2) to a Joomla menu item (es.: contacts).
You recommend this "you can disable the PHP error report to NONE in your website configuration" ... but it would be like burying the dust under the carpet.

Anyway thanks :(

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

Replied by ced1870 on topic source K2 does not work

Posted 3 years 4 weeks ago #60342

why to involve the K2 developer

because the warning occurs in their code :

components/com_k2/views/itemlist/view.html.php on line 743

but it would be like burying the dust under the carpet.

this is a temporary solution if your website is live :)

to be clear : if I could do it, I would do
the situation is that when showing a K2 article from the accordion module (with the automatic feature), there is no menu item linked to that page.If there is no menu item related to that page, the code in the K2 component will trigger the warning

May be that you can fix it by creating a top level category menu item in your menu. I don't know as this is how K2 works
If there is something to do in my code, I will do, but I can not do more that is possible by my side

hope you understand

Joomlack Webmaster and Developer

by ced1870

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

Time to create page: 0.660 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 745 guests and no members online