• Resolved Rishi

    (@recrishi)


    Hi there,

    Since a couple of months, I am facing a weird issue with BJ lazy load plugin. Actually, the plugin works fine for normal visitors but it causes trouble when logged in as admin.

    When I visit the homepage or any post as admin, images do not appear (blank square in place of images), only words appear. It’s very irritating because it is disturbing even post preview.

    Everything becomes fine after deactivating BJ lazy load plugin.

    Right now, I want to stick with BJ Lazy Load, so please help me regarding the issue.

    Regards
    Rishi

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Rishi

    (@recrishi)

    Hi @wordpressfast

    Getting this error in console “Uncaught SyntaxError: Unexpected end of input” (only when logged in as admin).

    Thread Starter Rishi

    (@recrishi)

    Hi @wordpressfast

    Error is “Uncaught SyntaxError: Unexpected end of input” and this link shows while clicking on error:-

    https://example.com/wp-content/cache/autoptimize/js/autoptimize_xxxxxxxxxxxxxxxxxxxxxxxxx.js

    ……………………………………………………………………………………………………………….

    Earlier I thought that bjlazyload causing problem because uninstalling it solved the image related issue (although above Uncaught SyntaxError error remain as it is).

    Clearly, error occurring because of autoptimize plugin. Hence disabled “Add try-catch wrapping?” setting of autoptimize plugin, and error got eliminated.

    Thanks for help ??

    • This reply was modified 5 years, 5 months ago by Rishi.
    • This reply was modified 5 years, 5 months ago by Rishi.
    • This reply was modified 5 years, 5 months ago by Rishi.
    • This reply was modified 5 years, 5 months ago by Rishi.

    Hence disabled “Add try-catch wrapping?” setting of autoptimize plugin, and error got eliminated.

    Well done, good fix! Try-catch wrapping _should_ only be on in very specific circumstances, your site will even be faster without ??

    frank (ao dev)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images not loading for WordPress admin’ is closed to new replies.