Php 我无法在Wordpress库中上载图像

Php 我无法在Wordpress库中上载图像,php,wordpress,Php,Wordpress,我无法在Wordpress库中上载图像。WP返回http错误。在htaccess和php.ini中,所有限制都设置为1024MB Wordpress调试模式返回: 注意:使用未定义常量“wp\u image\u editors”-假定 /xxx/public\u html/wp includes/functions.php中的“wp\u图像编辑器” 第5467行 注意:使用未定义的常量“change\u graphic\u lib”-假定 /xxx/public\u html/wp includ

我无法在Wordpress库中上载图像。WP返回http错误。在htaccess和php.ini中,所有限制都设置为1024MB

Wordpress调试模式返回:

注意:使用未定义常量“wp\u image\u editors”-假定 /xxx/public\u html/wp includes/functions.php中的“wp\u图像编辑器” 第5467行

注意:使用未定义的常量“change\u graphic\u lib”-假定 /xxx/public\u html/wp includes/functions.php中的“change\u graphic\u lib” 在线5467

我能做什么

编辑:第5467行function.php

add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );

function change_graphic_lib($array) {
return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
}

你使用了错误的引语

尝试:


你使用了错误的引语

尝试:


你能发布你的functions.php文件行5467I编辑的帖子吗。在这里,您的代码中似乎插入了奇怪的引号。请确保您使用的是
。是否可以发布functions.php文件行5467I-edited post。这里显示的是您在代码中插入奇怪的引号。请确保您使用的是
add_filter('wp_image_editors', 'change_graphic_lib');

function change_graphic_lib($array) {
return array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick');
}