SP Simple Portfolio: 0 imagecopyresampled - Forum | JoomShaper
Awaiting an answer Extensions

SP Simple Portfolio: 0 imagecopyresampled

Asked by Matt 2 years ago Last activity 2 years ago

When creating a new item in SP Simple Portfolio, if you use a webp image it throws an error on save:

0 imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, null given

It does seem to save changes though.

It also seems to cause a problem (potentially) if you try to edit an item using PageBuilder from the list view. It just opens a blank page. But I haven't worked out if it's due to having any webp images set in the main and/or thumbnail image blocks or if it's another issue altogether.

I'm starting to suspect that there's an underlying issue where after you edit using PB the first time and save everything, if you go back to re-open it to make changes (using the Edit with SP PageBuilder button in the list view), it white pages. Error reporting and debug aren't logging anything for me when it fails.

3 replies

Atick Eashrak Shuvo Staff

Hello Matt,

Apolozy for the inconvenience. This issue is caused by using a WebP-formatted image. Please install the build provided in the hidden content section; it should resolve the problem.

Matt Asked this

Thanks! That fixed the webp problem.

The other problem still exists though. If you create an item, save it, then Edit with SPPageBuilder, add content, save it, then go back to the portfolio list view and try to edit that same item with PB again, it gives you a white page.

Here's a screen recording:
https://www.awesomescreenshot.com/video/33235644?key=5021af8c06e872f7bf25710edaf32903

Atick Eashrak Shuvo Staff

Hi there!

Sorry for your experience.

Would you please give me your admin access to check the issue for you? Kindly, keep a full site backup before sharing the credentials.

Best Regards

Matt Asked this
Here you go
Log in to reply.