×
Blue Eagle 5 v1.6.2 has been Released for Kunena 5.2 (20 Jan 2021)

The Kunena team has announce the arrival of Kunena template Blue Eagle 5 v1.6.2 which is now available for download. This version addresses most of the issues that were discovered in development.

REQUIREMENTS
Blue Eagle 1.6.x requires Kunena 5.2.x to work with

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

More
5 years 6 months ago #1 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
5 years 6 months ago #2 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
5 years 6 months ago #3 by 810
try github.com/Kunena/Kunena-Forum/blob/deve...image/image.php#L117

change to
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
5 years 6 months ago - 5 years 6 months ago #4 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: 5 years 6 months ago by bernard92000.

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

More
5 years 6 months ago #5 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
More
5 years 6 months ago #7 by bernard92000

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.093 seconds