Reputation: 175
I cannot upload images in Wordpress library. WP returns http error. All limits are sets to 1024 mb in htaccess and php.ini
Wordpress debug mode returns:
Notice: Use of undefined constant ‘wp_image_editors’ - assumed '‘wp_image_editors’' in /xxx/public_html/wp-includes/functions.php on line 5467
Notice: Use of undefined constant ‘change_graphic_lib’ - assumed '‘change_graphic_lib’' in /xxx/public_html/wp-includes/functions.php on line 5467
What can i do?
Edit: line 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’ );
}
Upvotes: 0
Views: 618
Reputation: 4296
You are using the wrong quotes.
Try:
add_filter('wp_image_editors', 'change_graphic_lib');
function change_graphic_lib($array) {
return array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick');
}
Upvotes: 2