Why i get this error: imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given - Forum | JoomShaper
Solved Extensions

Why i get this error: imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given

Asked by Inguar Karlsson-Parra 3 years ago Last activity 3 years ago

Hi there! I have Joomla 4.2.8, template Shaper Travelia, SP Page builder Pro 4.0.7.
When I manage, adjust and save the image album title (or one image) in SP Easy Image Gallery album I´ll recieve the error: "imagecopyresampled(): Argument #2 ($srcimage) must be of type GdImage, bool given".
The result when I return to the Dashboard and back to the SP Easy Image gallery for check is that my adjusts has been made but I can also read a warning message on the top: "Unable to find a user with the ID: 186". When I make a new adjustment I´ll receive the same error.
What can I do?
Greetings from Finland! / Inguarkp

Accepted answer

Marked as the solution
Ronald Mol

Hi,

Experienced the same error here.
I found out at that the image which was selected at 'featured image' was physically not present in the media folder. Selecting another image from the media folder solved the issue and makes saving possible.

Confusing thing is that the featured image requires a selected and existing file even if when Featured Image is set to 'no'.

13 more replies

Anke Sauer

Hi Inguar,
I have had the same Problem and solved it.

Maybe your Image is named "xxxxxx.JPG" so change it in "xxxxxx.jpg"

Inguar Karlsson-Parra Asked this

Hi Anke! Thanks for quick reply.
The images in my SP Easy Image Gallery are named in xxxx.jpg .
I receive also the same error message when i adjust or make a new page title in the image gallery album.
Waiting for more tips/solutions.
Thank you Anke! Greetings! Inguar

Toufiq Senior Staff

Hi there,

I appreciate you reaching out. I sincerely apologize for this oversight. Will you please provide me the Joomla administrator access to check the issue? I will check & get back to you soon. 

-Thanks

Inguar Karlsson-Parra Asked this

Hi Toufiq! Many thanks for quick reply.
Please find admin credentials in Hidden content below
Cheers! / Inguar

Toufiq Senior Staff

Will you please try to check downgrade your PHP version 8.1 to 8.0. Thanks

Inguar Karlsson-Parra Asked this

Hi! Now I check downgrade PHP version from 8.1 to 8.0.
Result: The server returned a "500 - Whoops, looks like something went wrong".

Toufiq Senior Staff

Give me time. Developer team checking your issue. Thanks

Inguar Karlsson-Parra Asked this

Ok! Yust tell me if yo want me to check another PHP version. Thanks

Toufiq Senior Staff

Did you change image format? e.g png to jpg someting like that?

Inguar Karlsson-Parra Asked this

No pictures have changed. There are still the original pictures of the template

Log in to reply.