Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Avatar Upload

More
16 years 9 months ago #25328 by clawrence
Avatar Upload was created by clawrence
I am having difficulties uploading avatars.

I get this message.

JFile::copy: Cannot find or read file: '/tmp/kn_1ct781'
JFile::copy: Cannot find or read file: '/tmp/kn_GZ828S'
JFile::copy: Cannot find or read file: '/tmp/kn_FKBqaK'
Your avatar has been uploaded.
:S

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

More
16 years 9 months ago #25340 by sozzled
Replied by sozzled on topic Re:Avatar Upload
This question has been asked and discussed in Avatar upload doesn't work .

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

More
16 years 9 months ago #25344 by Lintzy
Replied by Lintzy on topic Re:Avatar Upload
Please test the following:

Please try this, this worked for me, the problem is sys_get_temp_dir () and php version 5.2.0, where this function is broken.

For Kunena 1.5.4

Edit kunena.file.class.php (/components/com_kunena/lib/)

and replace the old code with new code:

old:
Code:
function tmpdir() { static $tmpdir=false; if (!empty($tmpdir)) return $tmpdir; if (function_exists('sys_get_temp_dir')) { $tmpdir = sys_get_temp_dir(); } else { $file = tempnam(false,false); if ($file === false) return false; unlink($file); $tmpdir = realpath(dirname($file)); } return $tmpdir; }

new:
Code:
function tmpdir() { static $tmpdir = false; if (!empty($tmpdir)) return $tmpdir; //Try php >= 5.2.1 functionality if (function_exists('sys_get_temp_dir')) { $tmpdir = sys_get_temp_dir(); $file = tempnam($tmpdir, false); if ($file !== false) { unlink($file); return $tmpdir; } } //Try php setting $tmpdir = ini_get('upload_tmp_dir'); $file = tempnam($tmpdir, false); if ($file !== false) { unlink($file); return $tmpdir; } //Last resort, try system tmp dir $file = tempnam(false, false); if ($file !== false) { unlink($file); $tmpdir = realpath(dirname($file)); return $tmpdir; } return false; }



Or use the attached file for Kunena 1.5.4 kunena.file.class.php and override the existing file in components/com_kunena/lib/


File Attachment:

File Name: avartaruploadfix.zip
File Size:1.53 KB

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

Time to create page: 0.251 seconds