WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
ACF Spits out errors in Page Editor (4 posts)

  1. jackymakesthings
    Member
    Posted 2 years ago #

    When I activate ACF, all seems to be fine until I go to the page/post editor. Then it spits this error out at the top.

    Warning: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag in /URL REMOVED/wp-content/plugins/advanced-custom-fields/core/api.php on line 292

    Warning: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag in /URL REMOVED/wp-content/plugins/advanced-custom-fields/core/api.php on line 292

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. fragholrok
    Member
    Posted 2 years ago #

    Had the same issue. if you go to /wp-content/plugins/advanced-custom-fields/core/api.php, and find line 292...

    REPLACE:

    array_multisort($menu_order, SORT_ASC, $array);

    WITH THIS:

    if (isset($menu_order)):
    array_multisort($menu_order, SORT_ASC, $array);
    endif;

    That should stop the error.

  3. dirtyx
    Member
    Posted 2 years ago #

    Thank you fragholrok !

  4. elliotcondon
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks fragholrok

    I've included this fix in the latest version (3.1.0)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic