Keyword

Layout issue when publishing comment on k2 item

  • Marcel
  • Marcel's Avatar Topic Author
  • Offline
  • New Member
More
7 years 10 months ago #154735 by Marcel
I created in main menu a blog layout with k2 items (K2 » Item listings » Categories).
Clicking read-more on the intro displays the full item is showed correctly in the template structure.
However, when a comment on an item is approved by the moderator, the layout of the whole website suddenly changes.
The template is lost, the blog layout is gone, no css settings. This is only for the item for which a comment is published.
Unpublishing the comment and refresh the page shows the correct layout again.
I use K2 2.7 with J3.5.1. and helix-3 template.
I also use an override (templates/templatename/html/com_k2/overridename) for items but i can't figure out what this has to do with publishing comments.
Any notion?

Screenshots

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #154757 by Krikor Boghossian
Replied by Krikor Boghossian on topic Layout issue when publishing comment on k2 item
Hello,

Can you send me a link to the issue please?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Marcel
  • Marcel's Avatar Topic Author
  • Offline
  • New Member
More
7 years 10 months ago #154764 by Marcel
Can i sent you this link through mail?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #154799 by Krikor Boghossian
Replied by Krikor Boghossian on topic Layout issue when publishing comment on k2 item
I would prefer through the public forum. No need to post credentials.
You can edit the post afterwards or use a service like bit.ly

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Marcel
  • Marcel's Avatar Topic Author
  • Offline
  • New Member
More
7 years 10 months ago #154800 by Marcel

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #154808 by Krikor Boghossian
Replied by Krikor Boghossian on topic Layout issue when publishing comment on k2 item
Can you try deactivating the overrides?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Marcel
  • Marcel's Avatar Topic Author
  • Offline
  • New Member
More
7 years 9 months ago #154950 by Marcel
No same issue when disabling overrides..
The css of the template is removed. It appears the item is displayed i a new window without inheriting the template or k2 css.
Comments for this item are also not displayed, in fact that's where this messages appear.

Error reporting says:

Notice: Undefined property: stdClass::$comments in /var/www/vhosts/vanaarledelaat.nl/httpdocs/components/com_k2/templates/default/item.php on line 592

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/vanaarledelaat.nl/httpdocs/components/com_k2/templates/default/item.php on line 592

Fatal error: Call to a member function getPagesLinks() on null in /var/www/vhosts/vanaarledelaat.nl/httpdocs/components/com_k2/templates/default/item.php on line 647

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

  • Marcel
  • Marcel's Avatar Topic Author
  • Offline
  • New Member
More
7 years 9 months ago #154954 by Marcel

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
7 years 9 months ago #154959 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Layout issue when publishing comment on k2 item
Hi,

Did you try to reinstall K2 ? If you switch templates ( e.x Beez3) do you have the same issue ?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Marcel
  • Marcel's Avatar Topic Author
  • Offline
  • New Member
More
7 years 9 months ago #154960 by Marcel
Yes, i reinstalled K2 and Beez3 gives the same results.

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


Powered by Kunena Forum