Support

Account

Home Forums Bug Reports Critical, add images broken, js error a.refresh is not a function

Solving

Critical, add images broken, js error a.refresh is not a function

  • Using PRO, and in edit page, in our repeater fields “Add image” not working anymore. Nothing happens but firefox consol throws an error: a.refresh is not a function (…assets/js/acf-…ver5.2.0)

    This is critical when a deadline of content implementation is reached.

    There is a lot of other strange thing going on since latest updates, like metaboxes dissapearing and admin main menu jumping around and more.

    Happy coding, thanks!

  • Hi @Intervik

    Thanks for the bug report. The disappearing postbox issue should now be fixed in v5.2.1

    Please test and let me know if the problem is resolved.

    As for the JS error, please check your console log and look for any errors to report

    Thanks
    E

  • Hi @Intervik

    Just realized you already gave the JS error.

    The refresh function should indeed exist as it is given to the wp.media.view.AttachmentFilters.All.prototype object.

    Can you enter the above into your console log and look at the object that is returned, does it contain a function called ‘refresh’?

    Thanks
    E

  • Hi @Intervik

    I’ve just wrapped this line of code in a condition to check if the function exists.
    Please update to 5.2.1 and the issue should be gone

    Thanks
    E

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Critical, add images broken, js error a.refresh is not a function’ is closed to new replies.