Keyword

Error with K2 v2.6.0 and new Joomla 2.5.7

More
12 years 6 months ago #104265 by George Petcu
Replied by George Petcu on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
Regard the Mini K2 module from Template Plazza, there on their website is a new version updated v.1.2 (Oct 2012 v.1.2 fixed helper.php to be compatible with K2 v.2.6.0) for K2 v2.6.0. Just download, install on top on the old one already installed and empty the cache if is enabled. It should work without any problem. Worked in my case.

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

More
12 years 6 months ago #104266 by Lefteris
Replied by Lefteris on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
@Tomy Francois + Joseph

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.

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

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

More
12 years 6 months ago #104267 by chris
If anyone still has this problem and is really annoyed by the error message there is a simple fix.
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.

More
12 years 6 months ago #104268 by Lefteris
Replied by Lefteris on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
@chris

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.

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

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

More
12 years 6 months ago - 12 years 6 months ago #104269 by karlo
Hi Lefteris,

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
  • Jose Ignacio Huerta Gray's Avatar
  • Offline
  • New Member
More
12 years 6 months ago #104270 by Jose Ignacio Huerta Gray
Replied by Jose Ignacio Huerta Gray on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
I did remove that file and the error message disappeared, but now it is not possible to order k2 items. The little blue arrows appear in grey and do not work.

¿Is that a bug or it has been removed on purpose?

Reinstalling version 2.5.7 everything works fine

Attachment not found




Regards

Jose
Attachments:

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

More
12 years 6 months ago #104271 by Eduardo Santos
Replied by Eduardo Santos on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
Exactly same problem as Jose ^

Now I can't change item's order.

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

More
12 years 6 months ago #104272 by jacob
Hello removing your suggested file administrator/components/com_k2/models/cpanel.php. gets rid of the error message, but certain problems are continuing, such as using my Captify Content module - the assigned position for the module gives me the following error message instead of showing my images:

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.

More
12 years 6 months ago #104273 by Lefteris
Replied by Lefteris on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
@Jose @Eduardo Santos

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.

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

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

More
12 years 6 months ago #104274 by Lefteris
Replied by Lefteris on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
@Михаил Новак

When does the error occur? Are you using K2 2.6.1?

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

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

More
12 years 6 months ago #104275 by karlo
Hi

I installed 2.6.1, but the error persists. Do not use plugin for photos, only K2mart.

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

More
12 years 5 months ago #104276 by Miguel Villela
Replied by Miguel Villela on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
I am on Joomla 2.5.7, K2 2.6.1 and K2Mart 2.0.2 and am having the same issue. My environment does not have the cpanel.php file so deleting it does not solve the issue.

It seems like the only real solution is to revert back to version 2.5.7 until this issue is resolved.
Since both K2 and K2 Mart are JoomlaWorks products, they should be able to figure it out.

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

More
12 years 5 months ago #104277 by jacob
Hello,

The error started when I updated K2, not the Captify Content module? What is the logic that I need to contact the authors of the module?

Thank you in advance for your help.

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

More
12 years 5 months ago #104278 by jacob

Lefteris Kavadas wrote: @Jose @Eduardo Santos

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.



Hello,

The error started when I updated K2, not the Captify Content module? What is the logic that I need to contact the authors of the module?

Thank you in advance for your help.

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

More
12 years 5 months ago #104279 by william white
Replied by william white on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
This may be of some help from a tweet 1 hr ago from joomlabamboo
#extension Updated Captify Conten tot be compatible with K2 2.6 and Joomla 3.0 docs.joomlabamboo.com/joomla-extensions/captify-content-changelog

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

More
12 years 5 months ago #104280 by jacob

William White wrote: This may be of some help from a tweet 1 hr ago from joomlabamboo
#extension Updated Captify Conten tot be compatible with K2 2.6 and Joomla 3.0 docs.joomlabamboo.com/joomla-extensions/captify-content-changelog


Thank you for your comeback. However, I've updated Captify Content with the latest unified version for 2.5-3.0. Using Joomla 2.5.7 and K2 2.6.1

Problem persists. Error message (with K2 not installed!) now doesn't show the error message anymore, but just as before, the Captify Content module doesn't load the images from K2 categories or items. I don't know if the problem is with Captify Content or K2? I would assume it's a problem with K2 since the error popped up immediately on updating to K2 2.6 initially, before that Captify Content was working perfectly.

Finding this process frustrating. Firstly, the authors for the Captify Content module (JoomlaBamboo) only provide support if you pay for a subscription?! Since I have already paid for a commercial template that came with Captify Content built in - and my template provider is only taking responsibility for their part of the template, where do I get help and who is ultimately responsible?

Thanking you again for your time.

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

More
12 years 5 months ago #104281 by william white
Replied by william white on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
This will not be a popular post.
I think that the problem lies with open source and "free" in general.
All "free" cms and extensions to them are "free" for us to use and change if we like. There are not guarantees for all environments and more especially no guarantees with mixtures of components.
When we rush to upgrade from stable, tested, and fixed versions of the cms or an extension, we become a part of the testing process in some ways. Sometimes components lag way behind the cms release cycle, especially when there is a short term cycle as in 3.0. I still have stable 1.5 with k2 2.4.1 sites running without errors and with addins that cause no problems along with 2.5 sites with k2 2.5.7.
If it doesnt work when i test it, I wait...and do not hack the core (except for testing and bug reporting) and when I as site owner have tested completely, i go live with upgraded software. This can be seen by the advice given by the official joomla site about who should upgrade to 3.0 and also on many of the different dev's sites answering the same question. Things are in a constant state of evolution.
I guess we as site owners are ultimately responsible

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

More
12 years 5 months ago #104282 by efrain
I have that msg Model class usersModelUsers not found in file.
on Joomla 1.5.26
K2 v2.6.1
and I dont have the file under administrator/components/com_k2/models

please help?

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

More
12 years 5 months ago #104283 by jacob

William White wrote: This will not be a popular post.
I think that the problem lies with open source and "free" in general.
All "free" cms and extensions to them are "free" for us to use and change if we like. There are not guarantees for all environments and more especially no guarantees with mixtures of components.
When we rush to upgrade from stable, tested, and fixed versions of the cms or an extension, we become a part of the testing process in some ways. Sometimes components lag way behind the cms release cycle, especially when there is a short term cycle as in 3.0. I still have stable 1.5 with k2 2.4.1 sites running without errors and with addins that cause no problems along with 2.5 sites with k2 2.5.7.
If it doesnt work when i test it, I wait...and do not hack the core (except for testing and bug reporting) and when I as site owner have tested completely, i go live with upgraded software. This can be seen by the advice given by the official joomla site about who should upgrade to 3.0 and also on many of the different dev's sites answering the same question. Things are in a constant state of evolution.
I guess we as site owners are ultimately responsible


William,

Thank you for taking the time to reply. I agree with you completely on the points you make about open source, free cms and the fact that there are no guarantees with this 'free' method of building a website. My question though, was really trying to understand where I should look to for help in this situation? I've only just begun building my website, so everything that happens on the site now is a learning process and not mission critical. However, the Captify Content module was one of the main attractions of the template design which I decided to purchase for my website. After all, when money exchanges hands, it isn't free any more and the product must operate reasonably as described, no?

Naturally, I have the option to go to the template vendor and get a refund, since it was their product which I purchased and the product is no good to me without the intended compatibility of K2 and Captify Content. However, I don't really want to do this as I would much rather have the product work as described. Hence my earlier question on the K2 Forum, 'who is ultimately responsible?' If it was the K2 update that caused the compatibility issue, (which I assume was the case, since everything was working before the K2 2.6 update) then perhaps the K2 team could indicate the best solution, or even simple acknowledge it was a K2 issue. Failing this, then at least I can move on and find a new template that doesn't use K2, or Captify Content (whichever party is causing the issue).

So essentially I am looking for who might be able to help me, not who might I blame? Once again, I thank you kindly for your time.

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

More
12 years 5 months ago #104284 by william white
Replied by william white on topic Re: Error with K2 v2.6.0 and new Joomla 2.5.7
If you have upgraded Anthony's captify content, with still no luck, and he said that it was fixed for k2 2.6 i would go to the forum there, and report the problem.
It could be that there is something else causing the problems or captify is partially fixed and needs more work. Give him access to the site, and i feel sure they will be working on it

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


Powered by Kunena Forum