I cannot upload images in Wordpress library
<p>I cannot upload images in Wordpress library. WP returns http error. All limits are sets to 1024 mb in htaccess and php.ini</p>

<p>Wordpress debug mode returns: </p>

<blockquote>
  <p>Notice: Use of undefined constant ‘wp_image_editors’ - assumed
  '‘wp_image_editors’' in /xxx/public_html/wp-includes/functions.php on
  line 5467</p>
  
  <p>Notice: Use of undefined constant ‘change_graphic_lib’ - assumed
  '‘change_graphic_lib’' in /xxx/public_html/wp-includes/functions.php
  on line 5467</p>
</blockquote>

<p>What can i do?</p>

<p>Edit: line 5467 function.php</p>

<pre><code>add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );

function change_graphic_lib($array) {
return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
}
</code></pre>