- Posts: 1
COMMUNITY FORUM
Error with K2 v2.6.0 and new Joomla 2.5.7
- James Tuttle
-
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- Riccardo Fulcoli
-
- Offline
- New Member
- Posts: 1
:(
No solutions I see
:(
Please Log in or Create an account to join the conversation.
- luci
-
- Offline
- New Member
- Posts: 2
i have the same problem here,after i upgraded from v2.5.7 to v2.6 from joomla panel i got the same error :
Model class cpanelModelCpanel not found in file
even worse is that Mini K2 module gives error too:
Please check your setting to get the items or maybe you need to write your K2 items first
does installing v2.5.7 solve the problem?
unfortunately i don't have the v2.5.7,where can i download it?
and i wonder to know if installing previous version delete the existing data in database?!
oooooh god why did i do the upgrade!!! :(
i hope someone finds a solution!
Please Log in or Create an account to join the conversation.
- nano02
-
- Offline
- Senior Member
- Posts: 52
File no longer available for download
Please Log in or Create an account to join the conversation.
- luci
-
- Offline
- New Member
- Posts: 2
Please Log in or Create an account to join the conversation.
- Joseph
-
- Offline
- New Member
- Posts: 18
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
What version of Joomla! are you using? K2 2.6 only supports Joomla! 1.5, 2.5 and 3.0.
Please Log in or Create an account to join the conversation.
- Tomy Francois
-
- Offline
- New Member
- Posts: 3
Anyone having the " Model class cpanelModelCpanel not found in file " error under K2 2.6 just remove the file /administrator/components/com_k2/models/cpanel.php.
I followed this instruction and the problem was solved, however, I have one question, might this not affect any of default K2 features?
Please Log in or Create an account to join the conversation.
- Joseph
-
- Offline
- New Member
- Posts: 18
Tomy Francois wrote: Hi Everyone,
Anyone having the " Model class cpanelModelCpanel not found in file " error under K2 2.6 just remove the file /administrator/components/com_k2/models/cpanel.php.
I followed this instruction and the problem was solved, however, I have one question, might this not affect any of default K2 features?
Please Log in or Create an account to join the conversation.
- George Petcu
-
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
This file is not used anymore. In the next release we are going to add an automatic removal of the file in the installation proccess.
Please Log in or Create an account to join the conversation.
- chris
-
- Offline
- New Member
- Posts: 2
The problem occurs because of the line 360
K2Model::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models');
in file plugins/system/k2/k2.php
you can replace it with the following,
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'item.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'categories.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'category.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'comments.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'cpanel.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'extrafield.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'extrafields.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'items.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'model.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'settings.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'tag.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'tags.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'user.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'usergroup.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'usergroups.php');
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'models'.DS.'users.php');
basically instead of using the method addIncludePath to include the files in the model folder you call require_once for each file in the modle folder.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Using the API is the prefered method to load models. It's also much more shorter. I also think that is more easy for a non programmer to just remove a file than messing with code. Anyway we have already fixed that in the SVN version.
Please Log in or Create an account to join the conversation.
- karlo
-
- Offline
- New Member
- Posts: 15
Sorry for the late reply.
Fatal error: Call to a member function categoriesTree() on a non-object in /home/.../public_html/sites/test/administrator/components/com_k2/views/items/view.html.php on line 124
Joomla 2.5.7
K2mart
K2 - Css4K2
PHP 5.3.17
After the update, the error occurs when the administration should be selected K2 articles.
Delete the file / administrator/components/com_k2/models/cpanel.php.
but the error persists. If you want to give access to the site.
Regards !!!
Please Log in or Create an account to join the conversation.
- Jose Ignacio Huerta Gray
-
- Offline
- New Member
- Posts: 1
¿Is that a bug or it has been removed on purpose?
Reinstalling version 2.5.7 everything works fine
Attachment not found
Regards
Jose
Please Log in or Create an account to join the conversation.
- Eduardo Santos
-
- Offline
- New Member
- Posts: 5
Now I can't change item's order.
Please Log in or Create an account to join the conversation.
- jacob
-
- Offline
- New Member
- Posts: 8
K2 is not installed! Error! Unable to retrieve any Images!
As far as I can see K2 appears to have installed, as I am able to add K2 content generally, so why am I getting the above error message?
Thanks in advance for your help.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
The ordering function has not be changed. You just need to first sort by the Order column.
@jacob
You need to contact the developers of the module. Probably the will already have an update.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
When does the error occur? Are you using K2 2.6.1?
Please Log in or Create an account to join the conversation.