Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter artur0111

    (@artur0111)

    I have another domain with Blocksy, I haven’t touched it for a some time and I see that now it also has this problem.

    Eduard

    (@cteduard)

    Hello @artur0111

    In order to be able to diagnose this, we would require a few more details about the issue, such as what plugins you have installed, if you have any additional code added and so on.

    Also, it would be very helpful if you could post the actual website URL so that we could check a few things out from the front end.

    Could you help us with those details, please? ??

    Thanks

    Thread Starter artur0111

    (@artur0111)

    Thanks Eduard,

    if you have any additional code added and so on.

    I checked functions.php; I have a lot of stuff there. So, after I removed this code, the problem went away:

    // changing default gutenberg image block alignment to “center”
    function change_default_gutenberg_image_block_options (){
    $block_type = WP_Block_Type_Registry::get_instance()->get_registered( “core/image” );
    $block_type->attributes[‘align’][‘default’] = ‘center’;
    }
    add_action( ‘init’, ‘change_default_gutenberg_image_block_options’);

    Eduard

    (@cteduard)

    Glad to hear you’re on the right track, @artur0111 ??

    Have a good one. ??

    formerfatguy

    (@formerfatguy)

    Ha! This lead me to search through my custom code as well and found a reference to the block editor. Commented it out until I can get it updated so I can continue to use it. It’s just a little piece of code that sets the default alignment for images we insert to centered.

    This is not theme related, but rather custom code that hooks into the blocks.

    Tracking this down took me about 4 hours until this post clued me in, so I thank you Artur

    Eduard

    (@cteduard)

    ??

    Happy to have been of service, @formerfatguy

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘TypeError: Cannot read properties of undefined (reading ‘lightbox’)’ is closed to new replies.