在WP 3.5.2上使用多文件上载程序时,我无法将图像上载到媒体库。单文件媒体上传器工作正常。
我用1k PNG图像对它进行了测试,不管怎样,它还是卡在了“嘎吱嘎吱”的状态。该部分的调试日志附带以下消息:
[23-Jul-2013 13:41:28] PHP Notice: has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/animals/public_html/mysite.com/wp-includes/functions.php on line 2925
[23-Jul-2013 13:41:28] PHP Notice: has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/animals/public_html/mysite.com/wp-includes/functions.php on line 2925
[23-Jul-2013 13:41:28] PHP Notice: get_theme_data is <strong>deprecated</strong> since version 3.4! Use wp_get_theme() instead. in /home/animals/public_html/mysite.com/wp-includes/functions.php on line 2841
此外,当我尝试从特色图像中使用图像上载程序时,它会显示错误消息:
An error occurred in the upload. Please try again later.
看起来这是与WP相关的问题,而不是托管/权限。WP\\U MEMORY\\U LIMIT设置为128M,PHP mem LIMIT相同,PHP upload LIMIT为5M。
随着进一步的测试,它似乎与媒体库有关。如果我将重置DB并保持一切正常,它就会工作。当我重新上传将近12000张图片的DB时,它崩溃了。
谢谢