Kunena 7.0.11 & Kunena 6.4.16 – Security Updates Released and K7.1 in RC1 2

The Kunena team has announce the arrival of three simultaneous security release : K6.4.16, K7.0.11 and K7.1 RC2. Just a reminder K6.4.16 receives only securities fixes untill end of 2026, so it's advised for users to upgrade to K7.0.11. K7.0.11 is the last release of the K7.0 because it's replaced by K7.1 branch with the stable release in the corner. The translations for K7.1 on crowdin.com/project/kunena-forum-7-1 needs to be checked or improved becasue it has been generated by TM (Translation Machine).

Solved Kunena 4.0.5 - Warning: imagecolorsforindex(): Color index 255 out of range

More
11 years 2 months ago #167951 by bernard92000
I have this error:
Warning: imagecolorsforindex(): Color index 255 out of range in /libraries/kunena/image/image.php on line 118

This appends only during post viewing with a new avatar (gif with transparently in my case). I think it's during the avatar miniatures creation. When refreshing the page, no more error message (because the avatar miniatures where already created)

I can add @ before imagecolorsforindex() (like it was made into a line for this function into previous Kunena version), but I'd prefer a real fix.

Thank.

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

More
11 years 2 months ago #167954 by 810
could you add your avatar settings.

and add the avatar, so i can check the error.

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

More
11 years 2 months ago #167955 by 810
try github.com/Kunena/Kunena-Forum/blob/deve...image/image.php#L117

change to
Code:
if ($trnprt_indx >= 0 && $trnprt_indx < imagecolorstotal($this->handle)) { // Get the transparent color values for the current image. $rgba = imageColorsForIndex($this->handle, imagecolortransparent($this->handle)); $color = imageColorAllocateAlpha($handle, $rgba['red'], $rgba['green'], $rgba['blue'], $rgba['alpha']); }

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

More
11 years 2 months ago - 11 years 2 months ago #167956 by bernard92000
All the install have the default setting:
Allow Avatar Upload : Yes
Use Avatars Gallery : Yes
Max. Avatar File Size : 2048
Avatar Quality : 75 %
Avatar Resize Method : Interpolation (Better - Fast)
Avatar Cropping : No

Note: deleted the picture :P
Last edit: 11 years 2 months ago by bernard92000.

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

More
11 years 2 months ago #167957 by bernard92000
For the code test =>
Notice: Undefined variable: color in /libraries/kunena/image/image.php on line 124

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

More
Time to create page: 0.115 seconds