The Personal Website of Zackary P. Boarman

  • Home
  • About
  • Articles
  • Business
  • Opinions
  • Projects
  • Reviews
  • Contact

October 9, 2014

Issues with K2 in Joomla! 3.3

I was installing K2 2.6.8 on a Joomla! 3.3.6 site and as soon as it was installed I tried to access K2 using Components –> K2. First thing I saw was instead of K2 it said com_k2, second was as soon as I clicked on it I got a white screen.

From experience I knew the first thing to do was to turn Error Reporting to maximum and try again, this time I got errors about K2_JVERSION and DS not being defined in administrator/com_k2/k2.php.

The fix I ended up doing was adding the two lines around line 20, right above if(K2_JVERSION==’15’){:

define(‘K2_JVERSION’,30);
define(‘DS’,DIRECTORY_SEPARATOR);

Tried it again, this time I got an error about unable to find K2HelperHTML, so now around line 80 right above the line starting with K2HelperHTML::loadjQuery(… I added this line:

JLoader::register(‘K2HelperHTML’, JPATH_SITE.DS.’administrator’.DS.’components’.DS.’com_k2′.DS.’helpers’.DS.’html.php’);

Tried it yet again, this time I had an error about not being able to find the K2Table class in administrator/components/com_k2/tables/k2item.php. So right above line 13 that said class TableK2Item extends K2Table I added a temporary line since I though K2 wouldn’t work at all:

require_once(__DIR__.DS.’table.php’);

As soon as I did this K2 started to work and even more weirder is I was able to remove all those additions and K2 still loads.

Filed Under: Articles

Contact Me

For all Inquires or Questions
Via Mail
PO Box 876
Madisonville, KY 42431

Via Email
contactme @ zackaryboarman . com

Businesses

Boarman Service Company, LLC
Zack's PC Repair
Task Finishers

Recent Posts

  • Backwards Compatibility and Joomla! 4
  • My issues with QuickBooks
  • Task Finishers
  • Issues with K2 in Joomla! 3.3
  • Using Windows 10 Preview

© Copyright 2007 - 2023 Zackary P. Boarman · All Rights Reserved.