- Posts: 3
COMMUNITY FORUM
Fatal error attaching file Joomla 3.0.1. K2 2.6.1.
- Ray
-
Topic Author
- Offline
- New Member
Fatal error: Call to undefined method JUtility::getHash() in C:\xampp\htdocs\joomla301\administrator\components\com_k2\models\item.php on line 997
There is no issue if I do not attach a file to the item. Everything else woks perfectly.
Please help!
Please Log in or Create an account to join the conversation.
- Adreck
-
- Offline
- New Member
- Posts: 1
Solution current code base calls JUtility::getHash(); which was changed to JApplication::getHash in the recent update to the Joomla Framework in Joomla 3.0.1
call to getHash() exists in the following locations. In my test fix, I just changed the call, however at version test should be performed as Joomla 2.5 still uses the JUtility;;getHash() call.
Front End Line 1333 of /components/com_k2/models/item.php
Administrator Lines 937 and 997 of /administrator/components/com_k2/models/item.php
You can make this adjustment yourself for now, I've also just posted this bug on Issues page.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Ray
-
Topic Author
- Offline
- New Member
- Posts: 3
Any idea when will you be releasing K2 2.6.2?
Please Log in or Create an account to join the conversation.
- Bryan Smith
-
- Offline
- Premium Member
- Posts: 130
After I installed K2 2.6.1 I can no longer get to the template config.
An error has occurred.
500 View not found [name, type, prefix]: gantry, html, gantryView
Please Log in or Create an account to join the conversation.
- Webonaute
-
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- Maxim
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Alex
-
- Offline
- New Member
- Posts: 4
An error has occurred.
500 View not found [name, type, prefix]: gantry, html, gantryView
I want to use K2 on this site but I have to access the gantry template. Any ideas on how to fix this?
Please Log in or Create an account to join the conversation.
- Alex
-
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- United Online S.A.
-
- Offline
- New Member
- Posts: 3
Using Gantry framework, and Cerulean Rockettheme template with Joomla 3.0.4 & K2 2.6.2
As soon as K2 was uninstalled, I had access to the template again.
Please Log in or Create an account to join the conversation.
- Jack Hughes
-
- Offline
- Junior Member
- Posts: 29
If I unpublish the System - K2 plugin I can then access the template from the backend.
Please Log in or Create an account to join the conversation.
- Bokel
-
- Offline
- New Member
- Posts: 5
JRequest::getCmd()
which is deprecated.
They should use
JFactory::getApplication()->input->get() instead.
docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_3.0_and_Joomla_Platform_12.1
Workaround: Just select template name with checkbox and click on Edit button. That will do the same as if you clicked on template name ...
Perhaps "one day" the K2 guys will change that (and stop blaming Gantry) ...
I guess you could also just "search & replace"
JRequest::getCmd with Factory::getApplication()->input->get
in the k2.php ... but I haven't tested that.
Please Log in or Create an account to join the conversation.