Keyword

K2 Modal breaks SIG Pro in Joomla 3.4.4

  • Peter Wooster
  • Peter Wooster's Avatar Topic Author
  • Offline
  • New Member
More
8 years 6 months ago #148273 by Peter Wooster
K2 Modal breaks SIG Pro in Joomla 3.4.4 was created by Peter Wooster
I have recently upgraded our site from Joomla 2.5.8 to 3.4.4. The lightbox in SIG Pro stopped working because of a JavaScript exception related to Squeezebox and Mootools not being included. After much online searching and debugging I narrowed this problem down to the include of behavior.modal
// Joomla! modal trigger
		if ( !$user->guest || (JRequest::getCmd('option') == 'com_k2' && JRequest::getCmd('view') == 'item') || defined('K2_JOOMLA_MODAL_REQUIRED') ){
     JHTML::_('behavior.modal'); 
		}

at line 47 of plugins/system/k2/k2.php. Commenting out this line makes SIG Pro work properly.

Is there a proper, non-hack solution to this?

Thanks/peter

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #148380 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Modal breaks SIG Pro in Joomla 3.4.4
Hello Peter,

This code embeds the required lightbox for K2 items and front-end editing. This is the only way to stop them from loading but if I may ask, where the scripts returning a 404 error or was there a conflict?

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