• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

imagecolorsforindex() Color index 255 out of range

Status
Not open for further replies.

glumbo

Chevereto Member
When I tried to upload an animated gif, I got this error

Code:
imagecolorsforindex() Color index 255 out of range in class.upload.php line 414

The image was uploaded correctly but the error prevents the script from redirecting to the viewer page after upload. I suppressed the error on line 414 and everything works.

Code:
$transparent_color = @imagecolorsforindex($source, $transparent_index);

Why does this error happen?
 
Sometimes when the functions (bundeld functions) doesn't work they shout a warning or error. In this case because the image index was out of range as the error display says.
 
What file do you need? It's weird because I tried on demo.chevereto.com with the same image and it worked without errors.
 
Because the demo has the error reporting disabled.
 
Status
Not open for further replies.
Back
Top