- Posts: 3
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Fatal error is coming after upgrading the Joomla to ver 3.9
Fatal error is coming after upgrading the Joomla to ver 3.9
- saurabh agarwal
- Topic Author
- Offline
- New Member
Less
More
4 years 4 weeks ago #177278
by saurabh agarwal
Fatal error is coming after upgrading the Joomla to ver 3.9 was created by saurabh agarwal
I am getting fatal error in K2 component after upgrading the website to Joomla ver 3.9.
Please review below messages in the error log
======================================
Fatal error: Call to undefined method K2ModelItem::getImagesForGallery() in /home/.../public_html/components/com_k2/templates/wallpapers/item.php on line 354
Fatal error: Call to undefined method K2ModelItem::getImagesForGallery() in /home/.../public_html/components/com_k2/templates/audio/item.php on line 619
Fatal error: Call to undefined method K2ModelItem::getTitleFromItemId() in /home/.../public_html/components/com_k2/templates/guru/item.php on line 20
Fatal error: Call to undefined method K2ModelItem::getImagesForGallery() in /home/.../public_html/components/com_k2/templates/photos/item.php on line 332
======================================
Please suggest, where these methods are defined. Any help would be highly appreciated.
Thanks in advance!
Please review below messages in the error log
======================================
Fatal error: Call to undefined method K2ModelItem::getImagesForGallery() in /home/.../public_html/components/com_k2/templates/wallpapers/item.php on line 354
Fatal error: Call to undefined method K2ModelItem::getImagesForGallery() in /home/.../public_html/components/com_k2/templates/audio/item.php on line 619
Fatal error: Call to undefined method K2ModelItem::getTitleFromItemId() in /home/.../public_html/components/com_k2/templates/guru/item.php on line 20
Fatal error: Call to undefined method K2ModelItem::getImagesForGallery() in /home/.../public_html/components/com_k2/templates/photos/item.php on line 332
======================================
Please suggest, where these methods are defined. Any help would be highly appreciated.
Thanks in advance!
Please Log in or Create an account to join the conversation.
- saurabh agarwal
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
4 years 4 weeks ago #177279
by saurabh agarwal
Replied by saurabh agarwal on topic Fatal error is coming after upgrading the Joomla to ver 3.9
Presently I have installed K2 v2.10.3 on Joomla[ver 3.9] and using php [PHP Version 5.6.40] on the website.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 4 weeks ago #177296
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Fatal error is coming after upgrading the Joomla to ver 3.9
These functions are not part of K2's core code, e.g. github.com/getk2/k2/search?q=getImagesForGallery
Whoever built your site modified K2's core code, which is a big no-no... :)
Whoever built your site modified K2's core code, which is a big no-no... :)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- saurabh agarwal
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
4 years 3 weeks ago #177321
by saurabh agarwal
Replied by saurabh agarwal on topic Fatal error is coming after upgrading the Joomla to ver 3.9
thanks for your quick reply. what are the ways to declare custom methods in the k2 components so conflicts can be avoided while upgrading in future without changing in the core files.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 3 weeks ago #177329
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Fatal error is coming after upgrading the Joomla to ver 3.9
In either a plugin or where you render the code (e.g. the template overrides). It depends on the use case.
In your case, I assume these are presentation methods only, so they could have been part of a template override for K2.
In your case, I assume these are presentation methods only, so they could have been part of a template override for K2.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Fatal error is coming after upgrading the Joomla to ver 3.9