Advanced Custom Fields
still notices in (2 posts)

  1. najamelan
    Posted 3 years ago #


    I get this on image upload in wp editor.

    PHP Notice: Undefined index: sizes in ...pluginss/advanced-custom-fields/core/fields/image.php on line 783

    This breaks the ajax call of the image upload for people who have WP_DEBUG on true.

    Also, makes me wonder why ACF needs to run on ajax calls like that. It can be good to load your plugin selectively only where needed (performance gain).


  2. najamelan
    Posted 3 years ago #

    proposed change:

    if( isset( $meta['sizes'] ) && is_array( $meta['sizes'] ) )

    That is without looking at the consequences of what happens if it does not exit, but it will at least avoid the php notice.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.