- Posts: 7
COMMUNITY FORUM
Layout issue when publishing comment on k2 item
- Marcel
- Topic Author
- Offline
- New Member
Less
More
8 years 4 months ago #154735
by Marcel
Layout issue when publishing comment on k2 item was created 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
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 4 months ago #154757
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
8 years 4 months ago #154764
by Marcel
Replied by Marcel on topic Layout issue when publishing comment on k2 item
Can i sent you this link through mail?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 4 months ago #154799
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
8 years 4 months ago #154800
by Marcel
Replied by Marcel on topic Layout issue when publishing comment on k2 item
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 4 months ago #154808
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
8 years 3 months ago #154950
by Marcel
Replied by Marcel on topic Layout issue when publishing comment on k2 item
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
8 years 3 months ago #154954
by Marcel
Replied by Marcel on topic Layout issue when publishing comment on k2 item
This is the link to the item:
www.vanaarledelaat.nl/item/213-passend-toewijzen-ook-voor-de-zorgsector
www.vanaarledelaat.nl/item/213-passend-toewijzen-ook-voor-de-zorgsector
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
- Offline
- Elite Member
Less
More
- Posts: 169
8 years 3 months ago #154959
by JoomlaWorks Support Team
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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 ?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
8 years 3 months ago #154960
by Marcel
Replied by Marcel on topic Layout issue when publishing comment on k2 item
Yes, i reinstalled K2 and Beez3 gives the same results.
Please Log in or Create an account to join the conversation.