Wednesday, 11 December 2013 08:41
Modified: Wednesday, 11 December 2013 11:00
K2 Fix Plugin released 4.7 out of 5 based on 12 votes.


K2 modules may conflict with 3rd party components (some of ours as well) which contain item.php file in models folder.

This is related with function addIncludePath of JModel and that K2 system plugin doesn't use prefix as a second parameter of this function. In result the path to K2 models is added only to global prefix where all other paths are also added usually after K2 path. Consequently getting the instance of the model include the item.php only from last added path which is not K2 and generates the warning message that K2ModelItem class was not found in file.


Our K2 fix plugin adds the models path with K2Model prefix what fix major problems with proper working of K2 modules with other extensions. It fixes following problems in certain modules:

  • K2 Content - module doesn't show up and warning message is displayed: Model class K2ModelItem not found in file
  • K2 Users - nothing except php error message: Fatal error: Call to a member function getUserProfile() on a non-object in components\com_k2\helpers\utilities.php on line 65
  • K2 User - white page after log in
  • K2 Comments - it seems to work, but warning message is displayed: Model class K2ModelItem not found in file

Download K2 Fix Plugin from our download section


Found this article interesting? Subscribe for more.
Or share this article with your friends.

Subscribe to the Telegram bot / Subscribe to the Messenger Bot
User Rating:  (12)