Keyword

Function broken after K2 upgrade

  • Michael
  • Michael's Avatar Topic Author
  • Offline
  • New Member
More
1 week 1 day ago #174824 by Michael
Michael created the topic: Function broken after K2 upgrade
Hello,

I recently updated K2 from version 2.9 to version 2.10. I read in the documentation that this upgrade was safe for all template overrides, however, that does not seem to be the case for me.

After upgrading, I was hit with this error all over the site:
"Fatal error: Call to undefined method K2HelperUtilities::getFieldValue()"

I use this function to get extra fields from K2 items. Was this function changed in 2.10? Or is there another way to fix this?

Thanks!

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 week 10 hours ago #174830 by Fotis
Fotis replied the topic: Function broken after K2 upgrade
We never had such a method in K2HelperUtilities. So the file was probably modified by you or someone else at some point in the past and the upgrade simply wrote the file again, thus losing any changes.

However, there's a neater way to grab extra fields: getk2.org/documentation/tips-a-tricks/display-single-extra-fields-anywhere-in-your-k2-content

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Michael
  • Michael's Avatar Topic Author
  • Offline
  • New Member
More
4 days 23 hours ago #174851 by Michael
Michael replied the topic: Function broken after K2 upgrade
That seemed to fix my issue so far. Thanks so much!

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
3 days 16 hours ago #174864 by Fotis
Fotis replied the topic: Function broken after K2 upgrade
You're welcome.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum