• jmldesign

    (@jmldesign)


    Just started using GeneratePress and I’m getting this error when I go to the Widgets section:

    The “generatepress-content-width” plugin has encountered an error and cannot be rendered.

Viewing 15 replies - 1 through 15 (of 15 total)
  • ying

    (@yingscarlett)

    Hi there,

    Do you have a plugin called generatepress-content-width?

    Thread Starter jmldesign

    (@jmldesign)

    No, I don’t have that plugin, I was assuming it’s something built into the GenerateWP theme but I can’t find any info on it.

    ying

    (@yingscarlett)

    I’m not sure what that means either, if you disable all plugins, does the error still occur?

    Thread Starter jmldesign

    (@jmldesign)

    I’ve tried deactivating all plugins and still get the error.

    Then I tried to just using the GeneratePress theme instead of the Child theme and still got the error.

    I then used Twenty Seventeen theme and the error is gone so it definitely seems like an issue with the GeneratePress theme. I’ll try reinstalling it next.

    Thread Starter jmldesign

    (@jmldesign)

    I tried reinstalling the GeneratePress theme and still get the error. I’m at a loss.

    Thread Starter jmldesign

    (@jmldesign)

    I was able to add this code to the child theme functions.php to disable the widget block editor:

    add_filter( ‘use_widgets_block_editor’, ‘__return_false’ );

    That got rid of the error.

    ying

    (@yingscarlett)

    Hum… do you have legacy widgets in the widget area? That might be the cause.

    mujeeb21

    (@mujeeb21)

    I have the same issue how I can get rid of that please guide me step by step.

    • This reply was modified 12 months ago by mujeeb21.
    Alvind

    (@alvindcaesar)

    Hi there,

    We’re currently investigating this issue. In the meantime, you can use the following snippet to temporarily disable the feature from the Widgets screen:

    add_action( 'admin_footer', function() {
    $screen = get_current_screen();

    if ( 'widgets' === $screen->base ) {
    ?>
    <script>
    wp.domReady( function() {
    var unregisterPlugin = wp.plugins.unregisterPlugin;

    unregisterPlugin( 'generatepress-content-width' );
    } );
    </script>
    <?php
    }
    } );
    mujeeb21

    (@mujeeb21)

    Thanks for your concern.

    Alvind

    (@alvindcaesar)

    No problem!

    Same here, on a freshly installed WordPress with GeneratePress. Following so I will receive updates about this issue 🙂

    Installing the Classic Widgets plugin fixed this for me. It uses the old widget interface, but if you get blocks, you should find it relatively intuitive.

    prowebwriter (@prowebwriter)
    1 week, 4 days ago
    Installing the Classic Widgets plugin fixed this for me. It uses the old widget interface, but if you get blocks, you should find it relatively intuitive.

    Gracias, esto funciono para mi.

    frafor

    (@frafor)

    Same issue here

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Error trying to update Widgets’ is closed to new replies.