Keyword

Function broken after K2 upgrade

  • Michael
  • Michael's Avatar Topic Author
  • Offline
  • New Member
More
4 years 9 months ago #174824 by Michael
Function broken after K2 upgrade was created by Michael
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.

More
4 years 9 months ago #174830 by JoomlaWorks
Replied by JoomlaWorks on 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

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

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

  • Michael
  • Michael's Avatar Topic Author
  • Offline
  • New Member
More
4 years 9 months ago #174851 by Michael
Replied by Michael on 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.

More
4 years 9 months ago #174864 by JoomlaWorks
Replied by JoomlaWorks on topic Function broken after K2 upgrade
You're welcome.

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

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


Powered by Kunena Forum