All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Can't save low variables using Rich Text or Wygwam if content has multiple lines

charlieperrins 16 Nov 2014 16:21 problem, active

EE Version: 2.7.0
Low Variables Version: 2.5.0

I am having a problem trying to save low variables, which seems to be related to having multiple lines/paragraphs within a Rich Text Area or a Wygwam fieldtype.

If I have only a single paragraph of text with no line breaks within the low variable then everything saves fine. If I add a second paragraph then the save appears to fail. Rather than seeing an error message the homepage of my site is loaded by the browser.

It's weird that I'm seeing the homepage, because the URL looks like a legitimate admin area url. Sanitised example below:

mysite.co.uk/admin.php?
S=[hash_goes_here]
&D=cp
&C=addons_modules
&M=show_module_cp
&module=low_variables
&method=save

I've checked a standard channel publishing field using Wygwam and there's no problem with saving out rich text or multiple paragraphs or anything like that. The problem does appear to be confined to the low variables part of my CMS.

Any help with this would be appreciated.

Replies

  1. Low 16 Nov 2014 16:24

    This is most likely due to a mod_security setting on your server. Ask your host about this and see if they can ad an exception to their rules to avoid the issue.

  2. charlieperrins 16 Nov 2014 16:33

    Hi Low,

    Thanks for the quick reply. Do I need to access them to disable the entire Mod_security apache module for my site - or is there a specific setting/config within the module that I should ask them to change?

  3. Low 16 Nov 2014 16:37

    You could try and disable it yourself in your htaccess, if your host allows it: https://ellislab.com/forums/viewthread/104260/#563826

    But most likely, the host will have to add an exception themselves. In a previous case, a host disabled rules 300061, 340149, and 340163. Not sure what that actually means, tho.