wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Clear Used CSS button in Divi notice results in white screen

Open webtrainingwheels opened this issue 1 year ago • 8 comments

Before submitting an issue please check that you’ve completed the following steps:

  • 3.16.1
  • Used the search feature to ensure that the bug hasn’t been reported before

Describe the bug When using Remove Unused CSS with Divi, we show an admin notice in some cases, to prompt the user to clear the Used CSS: https://jmp.sh/9Oe3GtLW

But, the purge link is malformed, therefore does not work: https://mega.wp-rocket.me/wp-admin/admin-post.php?_wpnonce=f9b9e8d279&action=rocket_clear_usedcss&_wp_http_referer=%2Fwp-admin%2Fplugins.php%3Fplugin_status%3Dall%26paged%3D1%26s

Note the nonce inserted in the middle. Can be reproduced on Mega.

The customer sees a white screen after clicking the button.

To Reproduce Steps to reproduce the behavior:

  1. Make sure Remove Unused CSS is enabled
  2. Go to Divi → Theme Builder
  3. Edit the Global Header
  4. After exiting the Divi builder, you'll see the admin notice - click the button

Expected behavior The button should correctly purge the CSS and reload the page

Screenshots https://jmp.sh/RGSRl0UH

Additional context Tickets: https://secure.helpscout.net/conversation/2628657922/497943?folderId=273766 https://secure.helpscout.net/conversation/2624405455/497101/#thread-7897077980

Acceptance Criteria (for WP Media team use only) Clear instructions for developers, to be added before the grooming

webtrainingwheels avatar Jun 22 '24 00:06 webtrainingwheels

Rel case here: https://secure.helpscout.net/conversation/2660869953/504318/ Told customer to use the regular Clear Used CSS button in the time being

camilamadronero avatar Jul 24 '24 16:07 camilamadronero

New related ticket : https://secure.helpscout.net/conversation/2668080932/505622?folderId=8127840

johan-las avatar Aug 02 '24 07:08 johan-las

Related: https://secure.helpscout.net/conversation/2680002754/507683/

joejoe04 avatar Aug 20 '24 12:08 joejoe04

New related ticket: https://secure.helpscout.net/conversation/2695829620/#thread-8122122577

johan-las avatar Sep 06 '24 11:09 johan-las

Related: https://secure.helpscout.net/conversation/2709860300/512676

suzoutlet avatar Sep 17 '24 13:09 suzoutlet

another one: https://secure.helpscout.net/conversation/2711401348/512969?folderId=377611

webtrainingwheels avatar Sep 18 '24 19:09 webtrainingwheels

another case: https://secure.helpscout.net/conversation/2738349785

webtrainingwheels avatar Oct 18 '24 16:10 webtrainingwheels

Related case: https://secure.helpscout.net/conversation/2738947001/518676/

johan-las avatar Oct 21 '24 09:10 johan-las

Related case here: https://secure.helpscout.net/conversation/2744441169/519688?folderId=8127831

jekayode avatar Oct 28 '24 05:10 jekayode

Related: https://secure.helpscout.net/conversation/2750392370/520730/

joejoe04 avatar Oct 31 '24 20:10 joejoe04

Related: https://secure.helpscout.net/conversation/2755370321/521621/

juricazuanovic avatar Nov 11 '24 16:11 juricazuanovic

https://secure.helpscout.net/conversation/2765289052/523737?viewId=377611

webtrainingwheels avatar Nov 18 '24 20:11 webtrainingwheels

Related: https://secure.helpscout.net/conversation/2809247905/533260/

girlie avatar Jan 04 '25 19:01 girlie

Related: https://secure.helpscout.net/conversation/2814561796/534139

suzoutlet avatar Jan 09 '25 12:01 suzoutlet

https://secure.helpscout.net/conversation/2816265521/534469?viewId=377611

webtrainingwheels avatar Jan 10 '25 18:01 webtrainingwheels

Greetings!

I keep receiving these notifications but am restricted from reviewing the status of this issue. What is the final outcome?

Thank you, Heather

------ Original Message ------ From "WordPress Fan" @.> To "wp-media/wp-rocket" @.> Cc "toad78" @.>; "Manual" @.> Date 1/27/2025 9:03:39 AM Subject Re: [wp-media/wp-rocket] Clear Used CSS button in Divi notice results in white screen (Issue #6736)

Closed #6736 https://github.com/wp-media/wp-rocket/issues/6736 as completed via #7227 https://github.com/wp-media/wp-rocket/pull/7227.

— Reply to this email directly, view it on GitHub https://github.com/wp-media/wp-rocket/issues/6736#event-16081156426, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3J4ERM6CL7TFXQUDJJMSD2MZRGXAVCNFSM6AAAAABJW6GSQCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJWGA4DCMJVGY2DENQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

toad78 avatar Jan 27 '25 17:01 toad78