PHP Fatal error: gd-webp cannot allocate temporary buffer in C:\xampp\htdocs\{x}\src\XF\Image\Gd.php on line 61

Scandal

Well-known member
Hello!
I'm trying to import (merge) two xF2.3.7 forums.
When I'm was asked for finalize import, it goes until Rebuilding... Posts and I see this error enough posts later:

PHP Fatal error: gd-webp cannot allocate temporary buffer in C:\xampp\htdocs\{x}\src\XF\Image\Gd.php on line 61

This is line 61:
$image = @imagecreatefromwebp($file);

How to fix it?

Localhost, PHP 8.0.30.
memory limit in php.ini is 2048M !
 
How to fix it?

Localhost, PHP 8.0.30.
memory limit in php.ini is 2048M !
PHP 8.0 has been end of life since November 2023 ...

If you insist on doing an import on your PC I'd suggest to start a WSL2 instance, install PHP 8.3 there and run the import via cli.

Or at least use an up-to-date XAMPP version.
 
Back
Top Bottom