source K2 does not work
3 years 7 months ago - 3 years 7 months ago #60265
by mimmomgl
Replied by mimmomgl on topic source K2 does not work
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.
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 7 months ago by mimmomgl.
Please Log in or Create an account to join the conversation.
3 years 7 months ago #60337
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic source K2 does not work
I have tested that, but I'm not able to reproduce the issue ...
Just to be sure :
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
Just to be sure :
this appears in the K2 page, right ? not in the module itself ?"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"
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
Please Log in or Create an account to join the conversation.
3 years 7 months ago #60339
by mimmomgl
Replied by mimmomgl on topic source K2 does not work
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
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.
3 years 7 months ago #60340
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic source K2 does not work
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
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
Is there anything that you need ?you can disable the PHP error report to NONE in your website configuration
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
3 years 7 months ago #60341
by mimmomgl
Replied by mimmomgl on topic source K2 does not work
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
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.
3 years 7 months ago #60342
by ced1870
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
Replied by ced1870 on topic source K2 does not work
because the warning occurs in their code :why to involve the K2 developer
components/com_k2/views/itemlist/view.html.php on line 743
this is a temporary solution if your website is livebut it would be like burying the dust under the carpet.
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
Please Log in or Create an account to join the conversation.
Time to create page: 0.224 seconds