Keyword

Can't create menu item linking to K2 item!

More
7 years 11 months ago #154022 by Elena
I have been using K2 for many years and this is the first time to come across this problem.

When I try to make a new menu in the main menu and I select Menu Item Type - K2 - Item (Create a menu item linking directly to an item in K2) the menu is created, but when going to frontend it says : The X page isn’t working
X is currently unable to handle this request.
500

The link in the backend is shown as : index.php?option=com_k2&view=item&layout=item&id=1

This is not a problem with the other options for creating menus with K2, for example when try to create a menu linking to K2 category, it works fine.

How I can solve this?

I use Joomla Joomla! 3.5.1 and K2 v2.7.0.

Thank you

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 11 months ago #154062 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Can't create menu item linking to K2 item!
Hi,
Did you notice any php or javascript errors ?

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

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

More
7 years 11 months ago #154089 by Elena
Replied by Elena on topic Can't create menu item linking to K2 item!
There is some php error, but I don't know how to find out which one is exactly.

In attachment is what it says after clicking on the frontend on the menu created from K2 item.


http://imgur.com/KKYAr3q

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #154124 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't create menu item linking to K2 item!
Enable error reporting and set it to development.
This option is located in your site's global configuration.

This will show the exact error.

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

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

More
7 years 11 months ago #154142 by Elena
Replied by Elena on topic Can't create menu item linking to K2 item!
I have enabled error reporting and in the backend in the menu item that I try to make with K2 item it says:

Strict Standards: Declaration of K2Element::render() should be compatible with JFormField::render($layoutId, $data = Array) in /var/www/html/joomla/administrator/components/com_k2/elements/base.php on line 25


and in the frontend when I click on the menu linked to K2 items it says:

Parse error: syntax error, unexpected end of file in /var/www/html/joomla/templates/tp_runway/html/com_k2/default/item.php on line 691

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #154168 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't create menu item linking to K2 item!
This is a template issue.
Something is wrong with your overrides, specifically in line 691.

You need to address this issue to the template's developer.
Feel free to c/p our conversation.

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

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

More
7 years 11 months ago #154303 by Elena
Replied by Elena on topic Can't create menu item linking to K2 item!
Thanks for the answer. Line 691 is empty as blank space. When I delete it, nothing happens. It's the same. Now I have seen that even when I create a menu from K2 category and when try to click on item to see full preview it shows me the same error:

The page isn’t working

... is currently unable to handle this request.
HTTP ERROR 500

I f this is not K2 issue, than I should try to contact the template developers.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #154332 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't create menu item linking to K2 item!
It is an error of your overrides. Since you are not using K2's default files there is no way of knowing the cause of this error.

Indeed, this issue should be addressed to the developer of the template (and 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.


Powered by Kunena Forum