0

Hi after searching a lot I,m posting this question. When trying to add a tag in k2 item in joomla 2.5 backend, nothing happens. I have pressed enter and also tried with comma. I have tried with updating k2 latest version. But still same problem. I,m using ja_wall template, joomla 2.5. Also I,m getting this error after k2 upgrade

Model class cpanelModelCpanel not found in file

Can anyone help please.

Shaz
  • 2,647
  • 2
  • 35
  • 45
Ashfaq Rahman
  • 85
  • 2
  • 5
  • 12

2 Answers2

0

This was a issue that was fixed in K2 v2.6.1. Alternatively delete the file ROOT/administrator/components/com_k2/models/cpanel.php. Which was effectively what the update did.

Also see this forum post on k2 for more info on the issue!!

George Wilson
  • 5,595
  • 5
  • 29
  • 42
  • Hello Willson. ModelCpanel is not the main issue. Its solved by updating k2. But my problem is tag not working in backend. I can,t save any tag. Please help – Ashfaq Rahman Oct 17 '12 at 12:44
  • Have you tried adding a tag in the 'tag' area section of the backend? Does that save? – George Wilson Oct 17 '12 at 15:46
  • no I can't save that. Thats the problem, After hiting comma or enter process starts and suddenly stops :( – Ashfaq Rahman Oct 17 '12 at 19:16
  • But there is a tag tab in the backend where you can manage the tags created or add new ones. I'm not talking about the article editor for now – George Wilson Oct 17 '12 at 20:05
  • Also have you checked the table exists in PHP myadmin or where ever? and if there is anything in your error log? – George Wilson Oct 17 '12 at 20:09
  • THANKS A LOT MAN, I didn't noticed that functionality. You saved me. It works if I add a new tag in tag tab and then type it in item editor. But why it don't work directly in article editor ? – Ashfaq Rahman Oct 18 '12 at 08:00
  • I don't know! It shouldn't make a difference. Have you made any modifications? Glad it's fixed though! – George Wilson Oct 18 '12 at 16:58
0

I have the right solution. Go to phpMyadmin then to jos_k2_tags_xref and edit the structure. Set the ID as a Primary, (click on it) then go to edit the id row. Set "Default" as "None" or "Not Set" (I don't know how it is called in english but anyway it's the first possible selection) then check the "A_I" field (AUTO_INCREMENT) and then save. Now it should work :)

The problem was, ID of new k2 tags was 0 due to a wrong migration of k2 tables :)

This can also used to fix the same error when creating/copying/deleting k2 items if this cause problems.

v3ntus
  • 216
  • 1
  • 13