How to Fix The web server cannot generate responsive image sizes for this image

How to Fix The web server cannot generate responsive image sizes for this image

If you use WordPress and just updated your PHP version to 8.3 as recommended, and you receive the error message The web server cannot generate responsive image sizes for this image when uploading an image webp, you likely changed the PHP version incorrectly.

Don't worry, in this tutorial we will help you resolve this issue. But before that, make sure you are getting the same error message, where the error message received when uploading an image webp will look like this

The web server cannot generate responsive image sizes for this image. Convert it to JPEG or PNG before uploading.

If you have confirmed that you are getting the same error, you can follow these steps

How to Fix The web server cannot generate responsive image sizes for this image

This error can occur because WordPress does not detect the GD or Image Magic extension in WordPress, so image previews cannot be generated. You need to check the Media Handling used in WordPress first

Check WordPress Media Handling

You can check media handling from the menu Tools > Site Health > Info > Media Handling. If the result is like the image below, then WordPress is using default media handling and can only process images in JPEG or PNG format

After knowing the cause, you can now perform repairs using several methods.

Option 1: Fix via MultiPHP Manager

If you use MultiPHP Manager in cPanel and there is no PHP Selector option, you can perform repairs from MultiPHP Manager with a few steps:

1. Open the MultiPHP Page

From the WordPress dashboard, open the MultiPHP Manager page which you can easily find using the search bar

2. Select the Domain Name

Now, select the domain name you are using, for example wpgan.my.id

3. Change the PHP Version

Select the PHP version from the list of available PHP versions and make sure you use the eaversion, not the altversion. For example, you can use ea-php83, then click the Apply button

4. Check Media Handling and Try Uploading a File

After changing the PHP version, make sure the media handling page lists the file formats that can be uploaded to the website, especially the webpfile. If that extension is already in the list, it means you can now upload files webp to WordPress

[irp]

Option 2: Fix via PHP Selector

If you prefer to use PHP Selector, you can follow these steps:

1. Open the PHP Selector Page

Once logged into cPanel, you can open the PHP Selector page by searching for the page Select PHP Version from the cPanel search bar

2. Ensure the Domain Uses PHP Selector

Make sure your domain is already using PHP Selector, which can be identified by the absence of the Use PHP Selector button and the presence of a circle icon. If you still find the button Use PHP Selector, just click that button

3. Enable the GD Extension

After ensuring the domain uses PHP Selector, you can now open the tab Extensions and make sure the GD extension is checked. If it is not checked, you can check it

4. Enable the Imagick Extension (Optional)

For support for more file extensions, you can also enable the extension Imagic from the Extensions page

5. Check Media Handling and Try Uploading a Webp File

Now you can re-check the media handling in WordPress and if you enable the extension Imagic, then there will be many extensions supported for upload to WordPress

Cara Mengatasi The web server cannot generate responsive image sizes for this image - 3-5

If it is confirmed that the webp extension or other extensions like avif are already in the list, then you should be able to upload that media without any issues.

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...