Problem/Motivation

When I click on the "Enable or disable custom CSS" button, and then click "Save configuration" - it doesn't stay enabled.

I tried looking at User Permissions - but there's nothing in there relating to this module.

I'm simply trying to modify Bartik in Drupal 9.1.5.

No messages are coming up in the Error Log.

Thanks!

Comments

jeisel created an issue. See original summary.

jonas139’s picture

There is a known issue with the 1.3 release . I advise to downgrade to the 1.2 version till the 1.4 is released or apply the patch that is mentioned in the issue above.

jonas139’s picture

jeisel’s picture

I will try it - thanks for the quick reply!

jeisel’s picture

There's 4 different patches - I'm going to try 9. Will let you know how it works.

jeisel’s picture

It seems to be working - thanks!

andrew answer’s picture

StatusFileSize
new614 bytes

The problem is in property 'enabled' which wrongly named as 'css_enabled' in form. I made small patch for this issue.

andrew answer’s picture

Status: Active » Needs review
manojithape’s picture

Assigned: Unassigned » manojithape
manojithape’s picture

Patch #7 failed to apply.

manojithape’s picture

Status: Needs review » Needs work
manojithape’s picture

Assigned: manojithape » Unassigned
andrew answer’s picture

StatusFileSize
new538 bytes

@manojithape, patch header fixed for module patching. Please test.

andrew answer’s picture

Status: Needs work » Needs review
hondaman900’s picture

Patch #13 works.

I had the same issue with Drupal 8.9.13 and CSS-editor 8.x-1.3. It was working fine and then when I went to edit the theme's CSS this issues arose.

I applied patch #13 above and it now seems to work. Enabled checkbox stays set and the CSS changes are implemented.

Thank you!

manojithape’s picture

Assigned: Unassigned » manojithape
manojithape’s picture

StatusFileSize
new35.6 KB
new39.1 KB

Verified and tested patch#13 for Drupal version 9.1.7 & CSS-editor 8.x-1.3. Patch applied successfully and looks good to me.

Testing Steps:

  1. Install CSS Editor module
  2. Go to Appearance->Click on Bartik Theme "Settings" link
  3. Check/enable the checkbox of the "Enable or disable custom CSS:" menu which presents under the 'Custom CSS' section
  4. Click on "Save Configuration" CTA.
  5. Observ the Enable status of the "Enable or disable custom CSS:" option not save.
  6. Now apply the patch and again follow the above steps and observe after the patch user is able to enable/disable the "Enable or disable custom CSS:" checkbox and functionality working accordingly.

Testing Results:

Now the user is able to enable/disable the "Enable or disable custom CSS:" checkbox and functionality working accordingly.

Moving this ticket to RTBC.

manojithape’s picture

Status: Needs review » Reviewed & tested by the community
manojithape’s picture

Assigned: manojithape » Unassigned
jweedman’s picture

Patch #13 works great - thank you!

arborrow’s picture

Just confirming that #13 worked for me as well. Seems like a simple enough typo. Hopefully a new release can be made to prevent folks from having trouble.

ricovandevin’s picture

Patch in #13 works fine.

mlzr’s picture

Patch #13 works great, thanks!!

srihari manepally’s picture

Patch #13 worked for me.

bigmonmulgrew’s picture

+2 Patch #13 working for me on 2 different D9 sites

joseph.olstad’s picture

Status: Reviewed & tested by the community » Postponed

Actually, there is a better fix

see patch 6 here:

#3160715-6: Config is saved in theme config and separate config file

joseph.olstad’s picture

Status: Postponed » Reviewed & tested by the community

ok changing back to RTBC for now

mlzr’s picture

+ Patch #13 works.
Thanks!

bilias’s picture

Patch #13 worked for me as well.

joseph.olstad’s picture

I have sent a message to https://www.drupal.org/u/podarok

Andrii Podanenko (podarok) as he seems to be the only active maintainer of css_editor.

If we hear nothing for 2 months, I suggest someone go through the process of taking ownership of this project.

Here's the documentation on how to take ownership of a drupal project:

https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or...

alirahimian’s picture

Hi I had the same issue with Drupal 8.9.13 and CSS-editor 8.x-1.3. It was working fine and then when I went to edit the theme's CSS this issues arose.

I applied patch #13 above and it now seems to work. Enabled checkbox stays set and the CSS changes are implemented.

Thank you!

  • podarok committed a709143 on 8.x-1.x authored by Andrew Answer
    Issue #3203706 by Andrew Answer, manojithape: Enable Status Not Saving
    
podarok’s picture

Version: 8.x-1.3 » 2.0.x-dev
Status: Reviewed & tested by the community » Fixed

Thank you
Merged and tagged in 2.0.1

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.