Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Third new WP installation “generatepress-content-width”

  • Buongiorno,
    sono alla terza nuova installazione di WordPress e conseguentemente di GeneratePress theme, GP Premium et cetera.
    Da un paio di giorni riscontro questo errore ogni qual volta entro nella sezione Widget – Il plugin “generatepress-content-width” ha causato un errore e non può essere visualizzato. – di seguito il link allo screenshot https://prnt.sc/AbRHWVgOq4S_
    Il sito è nuovissimo, ancora senza articoli.
    In tutta sincerità non ho riscontrato problemi, ma non vorrei compromettere il mio lavoro, dato che si tratta di un sito web di news locali abbastanza importante. Per cui vorrei capire se posso continuare o c’è il rischio che salti tutto.
    Grazie davvero.

  • Hi there,

    We’re aware of the issue and are still investigating it. It’s been a bit tricky to debug since we haven’t been able to replicate it on our test site.

    As a temporary fix, you can use this snippet:

    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
    	}
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

  • Thanks for the suggestion, Alvind, I’ll give it a try

  • Sure, let us know how it goes!

  • Thanks Alvid, I solved it.

  • Glad to hear that!

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