[Resolved] Generate Blocks container – set background image throws a Javascript error

Home Forums Support Generate Blocks container – set background image throws a Javascript error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1422565
    Matt

    WP version 5.5
    GP theme version 2.4.2
    GP Premium 1.11.3
    Generate Blocks 1.1.2

    What happens: For any container, select block settings > Background Image > Set background image

    The image selection window appears, allowing you to select the image as expected.

    However, clicking the Set featured image button returns you to the editor without setting an image. No error message.

    The console shows the following:

    blocks.build.js?ver=1594326046:1 Uncaught TypeError: Cannot read property 'full' of undefined
        at S (blocks.build.js?ver=1594326046:1)
        at s (amp-block-editor.js?…e6d38cb71e9cea89:11)
        at i.value (amp-block-editor.js?…1e6d38cb71e9cea89:7)
        at p (backbone.min.js?ver=1.4.0:2)
        at f (backbone.min.js?ver=1.4.0:2)
        at l (backbone.min.js?ver=1.4.0:2)
        at i.n.trigger (backbone.min.js?ver=1.4.0:2)
        at i.clickSelect (media-views.min.js?ver=5.5:2)
        at i.click (media-views.min.js?ver=5.5:2)
        at HTMLButtonElement.dispatch (jquery.js?ver=1.12.4-wp:3)
    
    S	@	blocks.build.js?ver=1594326046:1
    s	@	amp-block-editor.js?…e6d38cb71e9cea89:11
    value	@	amp-block-editor.js?…1e6d38cb71e9cea89:7
    p	@	backbone.min.js?ver=1.4.0:2
    f	@	backbone.min.js?ver=1.4.0:2
    l	@	backbone.min.js?ver=1.4.0:2
    n.trigger	@	backbone.min.js?ver=1.4.0:2
    clickSelect	@	media-views.min.js?ver=5.5:2
    click	@	media-views.min.js?ver=5.5:2
    dispatch	@	jquery.js?ver=1.12.4-wp:3
    r.handle	@	jquery.js?ver=1.12.4-wp:3
    

    This is happening on three different WP sites, on two entirely separate servers.

    #1423098
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can disable all plugins except GP Premium to eliminate conflicts from other plugins first?

    Let me know 🙂

    #1423337
    Matt

    Hey Leo,

    With all plugins deactivated except for GP and GB, the background image works as expected.

    I tracked down the culprit. It was the official AMP plugin, which has recently upgraded to version 2.0. https://wordpress.org/plugins/amp/

    I guess it’s raising havoc with the post editor. I’ve deactivated it on the affected sites and everything is working as it should with Generate Blocks.

    Maybe that will help someone else.

    #1423374
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    We have this conflict fixed in GB 1.2 – have a couple more features to add to it, then it will enter a quick beta period before being released.

    Sorry for the inconvenience!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.