Keyword

K2 Plugin K2.PHP HTML Prefix Conflict

  • Mick
  • Mick's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 3 months ago #166299 by Mick
Joomla 3.8.3, Ideal Extensions Plugin Ideal Store Locator 3.8.0.

There is a conflict between the K2 Plugin (plugins/system/k2/k2.php) and this Ideal Extensions Ideal Store Locator plugin caused by the HTML prefix for the OpenGraph Meta Tags lines 739 to 767.

This has been fixed by the Ideal Extensions developer by editing Line 740 to:

if($application->isSite() && $params->get('facebookMetatags', 1) && $application->input->get('option') !== 'com_ajax')

Can this be included in the next K2 update?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 3 months ago #166306 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Plugin K2.PHP HTML Prefix Conflict
Hello,

What was the issue exactly?

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

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

  • Mick
  • Mick's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 3 months ago #166315 by Mick
Replied by Mick on topic K2 Plugin K2.PHP HTML Prefix Conflict
I have asked the Ideal Extensions developer if he has any more details and will update you when I have a response.

The Ideal Extensions Ideal Store Locator plugin generates a Google Map and displays contact locations in the specified category/categories on the map. From the last K2 update the contacts were not being displayed until either I commented out lines 758 to 763 in k2.php or until Ideal Extensions suggested the com_ajax edit.

I understand that the content to be displayed was being prefixed with the html and body tags and that caused the issue. The Ideal Extensions developer initially said " [ the K2 plugin] is adding the <html> and <body> tags and should not add such tags onContentPrepare event."

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

  • Mick
  • Mick's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 3 months ago #166326 by Mick
Replied by Mick on topic K2 Plugin K2.PHP HTML Prefix Conflict
From Ideal Extensions I have had this update : "iStoreLocator retrieves all contacts/locations via com_ajax component and it executes Content Plugins on one of the contact fields. For some reason unknown to me the K2 plugin adds <html prefix="og: ogp.me/ns# "> tag to the contact text field."

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 3 months ago #166333 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Plugin K2.PHP HTML Prefix Conflict
Got it,

They can make a PR with the changed in our repo github.com/getk2/k2 so we can evaluate the issue.

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