Keyword

Can not attach files to k2 items

More
11 years 10 months ago #106311 by DAVID
Can not attach files to k2 items was created by DAVID
Hi,

I am using joomla 3 and k2 version 2.6.1. I can not attach any document in K2 items. If I do when I try to open that item a blank page appears.

If this can help you: When I try to attach a file it only allows to me to do it from image folder and not from media>k2>attachments.... But if I attach from my computer K2 saves the document in attachments file..it is a mess... It seems to be a problem in configuration but I can not find where...

Please I need help!!!

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

More
11 years 10 months ago #106312 by william white
Replied by william white on topic Re: Can not attach files to k2 items
K2 moves the file you select from your computer or from the server directory /images to its own folder and you are not supposed to select from that folder.......
if you are getting blank pages,
joomla - global configuration - server tab - error reporting - turn up high.....
let us see the error message if it generates one instead of a blank white page

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

More
11 years 10 months ago #106313 by Ryo San
Replied by Ryo San on topic Re: Can not attach files to k2 items
Hi,

Many K2 users have this problem, and nobody have a solution.

Is your site live or on local environment ?

Ryo

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

More
11 years 10 months ago #106314 by DAVID
Replied by DAVID on topic Re: Can not attach files to k2 items
Hi!!

Thanks for your help. i found the error and I solved it... Following this:
"Issue occurs in both front-end and administrator for items with attachments. Error produced = "Call to undefined method getHash()".

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."


getk2.org/community/New-to-K2-Ask-here-first/163941-Fatal-error-attaching-file-Joomla-301-K2-261

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

More
11 years 10 months ago #106315 by Ryo San
Replied by Ryo San on topic Re: Can not attach files to k2 items
so the problem is solved for joomla 3 but for joomla 2.5, what should we do ?

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

More
11 years 10 months ago #106316 by Lefteris
Replied by Lefteris on topic Re: Can not attach files to k2 items
Hi. This issue has been resolved already. Try the SVN version at getk2.org/assets/svn/

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