• Resolved Air.

    (@air-1)


    Hello

    When you are in popup Media Library, then while selecting image you get following error:

    unterminated string literal
    data: "action=ajax_thumbnail_rebuild&do=regen&id=<br />

    It happens when page calls wp_enqueue_media(); without params.
    If you call it like this wp_enqueue_media(array( 'post' => 1 )); it will not produce errors.

    How to reproduce? Activate Twenty Fourteen theme, Apperarance->Background->Choose image (it opens popup Media Libray) -> select image -> Boom 🙂

    Need to deactivate plugin to make it work in such places. Such call of media script is common in theme settings.

    With regards.

    https://wordpress.org/plugins/ajax-thumbnail-rebuild/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same error here when i’m trying to insert an image into the editor.

    The error points to […]/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,plupload,json2&ver=3.9

    Update 1.12 fixed the error at my website. Thanks!

    Thread Starter Air.

    (@air-1)

    Update 1.12 fixed the error at my website. Thanks!

    Same here:-)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JS Error while in Media libray popup’ is closed to new replies.