Upload smaller images – Eternal Night https://www.shuijingwanwq.com There is no problem not worth solving, and no technology not worth learning! Fri, 08 May 2026 06:36:58 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 Upload pictures in WordPress, prompting: The server cannot process pictures. This happens if the server is busy or does not have enough resources to complete the task (enable debugging) https://www.shuijingwanwq.com/en/2022/12/06/9915/ https://www.shuijingwanwq.com/en/2022/12/06/9915/#respond Tue, 06 Dec 2022 01:32:27 +0000 https://www.shuijingwanwq.com/?p=9915 浏览量: 45

1. Upload pictures in WordPress, prompting: The server cannot process pictures. This happens if the server is busy or does not have enough resources to complete the task. Uploading smaller pictures may help. The recommended maximum size is 2560 pixels. as shown in Figure 1

在 WordPress 中上传图片,提示:服务器无法处理图片。如果服务器繁忙或没有足够的资源来完成任务,就会发生这种情况。上传较小的图片可能会有所帮助。建议的最大尺寸为 2560 像素

Figure 1

2. Check the size of the uploaded image is 23 KB, and confirm that it is not caused by the large picture. as shown in Figure 2

查看上传图片的大小为 23 KB,确认不是图片过大所导致

Figure 2

3. Decided to open the preview with the photo software, and then take a screenshot to save the original image. as shown in Figure 3

决定用照片软件打开预览,然后截图保存覆盖原图

Figure 3

4. Upload again, still fail.

5. Debugging in WordPress, refer to: https://wordpress.org/support/article/debugging-in-wordpress/ . Edit wp-config.php

/**
* Developer-only: WordPress debugging mode.
;
* Change this value to "true", and WordPress will display all the prompts for development.
* It is strongly recommended that plug-in developers enable this function in the development environment.
*/
define(wp_debug, true);

6. Refresh the page, there are some tips below. as shown in Figure 4

刷新页面,有以下一些提示

Figure 4

Warning: use of undefined constantwp_cumulus_widget(This will throw an error in a future version of php) in /data/wwwroot/www.shuijingwanwq.com/wp-content/plugins/wp-cumulus/wp-cumulus.php on line 375

deprecated: function register_sidebar_widget has been deprecated since version 2.8.0! Please use wp_register_sidebar_widget() instead. in /data/wwwroot/www.shuijingwanwq.com/wp-includes/functions.php on line 5383

deprecated: function register_widget_control has been deprecated since version 2.8.0! Please use wp_register_widget_control() instead. in /data/wwwroot/www.shuijingwanwq.com/wp-includes/functions.php on line 5383

Deprecated: Since version 2.0.0!, the parameters used when calling the function has_cap have been deprecated! The user level has been discarded, please use the ability instead. in /data/wwwroot/www.shuijingwanwq.com/wp-includes/functions.php on line 5667

6. Upload again, the upload is successful. Only debug is turned on. as shown in Figure 5

再次上传,竟然上传成功了。 仅是开启了 debug

Figure 5

7. Restore step 5. Upload again, the upload is successful. It feels like a temporary failure on the server side. Decided to give up for the time being.

]]>
https://www.shuijingwanwq.com/en/2022/12/06/9915/feed/ 0