-
AuthorPosts
-
November 27, 2012 at 8:18 am #182618
After upgrading K2 and The Wall template I am getting a Fatal error: and the page doesn’t load anything else except the link to the rss feed.
Fatal error: Call to undefined method K2ViewItemlist::buildAliasBasedExtraFields() in /home/xxxxx.com/components/com_k2/models/item.php on line 1492
server is php 5.3
Joomla is 2.5.8November 27, 2012 at 5:40 pm #474410Same here! :-/
Zach Stein FriendZach Stein
- Join date:
- September 2014
- Posts:
- 5
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 2 times in 1 posts
November 27, 2012 at 9:39 pm #474441Same issue after updating K2 2.6.2. They did add/change some things with the extra fields and groups in this K2 update. Thankfully I only had one page using “double-grid” and similar styles, so I’m not too bad. Removing the extra field style from the k2 item is the a temporary solution, but found I had to do it through the database backend as k2 was still leaving a value even though it was now showing none/empty. In the database, the k2 item’s extra_fields is something like ‘[{“id”:”2″,”value”:””}]’ when an empty field should be ‘[]’
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
November 28, 2012 at 4:09 am #474485Hi Guys,
The K2 component latest version has more changes to make it compatible with Joomla 3.0.x . So i think that upgrading this component is not necessary when you still running website on Joomla 2.5.x .
Regards,
November 29, 2012 at 8:53 am #474689Seriously? How about new features offered by Extra Fields in K2 since 2.6.2.? I really counted on them and now your advice is not to upgrade and stick to the old version K2. How about future K2 upgrades? Come on, I’m sure you can fix this issue.
Cheers,
Olek
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 29, 2012 at 10:22 am #474704Hi there,
Currently, we only have this JA Wall template with K2 version updated to 2.5.7
We are running full capacity in releasing monthly template and upgrading J!2.5 templates to be compatible with J25 and J30. We would love to get all of our products up to its latest version,
Give us some time to get JA Wall updated for latest K2 version.
Regards.
1 user says Thank You to Saguaros for this useful post
November 29, 2012 at 6:47 pm #474740BUT WE ALL HAVE BROKEN WEBSITES NOW….??? 🙁
For those of us who did upgrade… Can you please provide a fix? Is there a way to go back down to the working version of k2 without loosing data? A way to preserve all my k2 items, tags, categories, etc?
A fix would be appreciated… There are MANY customers that have this problem from what I’ve read…
PRETTY PRETTY PLEASE?!?!?!
November 29, 2012 at 7:12 pm #474742No worries. Simply download 2.6.1 from K2 website and install it over 2.6.2. Your site will be immediately up and running again.
PS. You can get earlier versions from the blog section of K2 headquarters.
January 9, 2013 at 4:19 pm #479105You must replace code that get the extra fields in the template.
For example:
[PHP]if(count($this->item->extra_fields)) {
$extra_fields=K2ModelItem::getItemExtraFields($this->item->extra_fields);
if (count($extra_fields)) {
foreach ($extra_fields as $key=>$extraField) {
if ($extraField->name == ‘FIELD NAME’) {
$the_value = $extraField->value;
break;
}
}
}
}[/PHP]with this one:
[PHP]$the_value = $this->item->extraFields->FIELD_ALIAS->value;[/PHP]Then you have to edit the K2 category and set “show” to the “Extra Fields” in “Item view options in category listings”.
-
AuthorPosts
This topic contains 9 replies, has 7 voices, and was last updated by inetis 12 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum