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

TOPIC: source K2 does not work

source K2 does not work 22 Mar 2021 12:14 #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

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

Last edit: by mimmomgl.

source K2 does not work 22 Mar 2021 16:23 #60262

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

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

source K2 does not work 22 Mar 2021 17:32 #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.

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

Last edit: by mimmomgl.

source K2 does not work 29 Mar 2021 09:32 #60337

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

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

source K2 does not work 29 Mar 2021 10:06 #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.

source K2 does not work 29 Mar 2021 10:26 #60340

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

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

source K2 does not work 29 Mar 2021 14:20 #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.

source K2 does not work 29 Mar 2021 14:27 #60342

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 24557
  • Karma: 427
  • Thank you received: 3073

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

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

  • Page:
  • 1
  • 2
Time to create page: 0.211 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 561 guests and one member online