Stickybit Posted June 11, 2019 Share Posted June 11, 2019 (edited) Hi everyone Got a problem with this page: https://jentronic.dk/content/21-led-panel-kode-eksempel The problem is that I can no longer update the page content, as I get an error saying "The content field is invalid". The problem is, that the error does not tell anything about - what actually is the problem, so I'm kinda stuck. Any hints on this one? Edited September 16, 2019 by Stickybit Problem solved (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted June 12, 2019 Share Posted June 12, 2019 Try to disable htmlpurifier in Settings->General in the backoffice. Link to comment Share on other sites More sharing options...
Stickybit Posted June 12, 2019 Author Share Posted June 12, 2019 Allready disabled - just as iFrames is alowed. 🙂 Is there som place, where logging of this kind of errors is logged in detail? - as the does-not-compute´ish "content is invalid" message actually is useless at best. 😯 Link to comment Share on other sites More sharing options...
musicmaster Posted June 12, 2019 Share Posted June 12, 2019 It is easy to do a text search for the error message My guess would be adminCmsController.php or adminCmsContentController.php Link to comment Share on other sites More sharing options...
Stickybit Posted September 15, 2019 Author Share Posted September 15, 2019 Sorry no. It's a generic error, not limited to CMS. The problem is that I post encoded javascript within the CMS posting. Some code slips through .. some does not. The code are just for display, and not for executing .. and everything works just fine when the code is accepted (or manually inserted into the database). If someone could tell me where the content field is validated .. I would just skip the validation steps within the code .. and problem solved. Link to comment Share on other sites More sharing options...
musicmaster Posted September 15, 2019 Share Posted September 15, 2019 Did you check out isCleanHTML in classes/Validate.php? Link to comment Share on other sites More sharing options...
Stickybit Posted September 16, 2019 Author Share Posted September 16, 2019 ahh .. thanks mate .. that did the trick. :-) Looking back .. it can recall actually skipping this function - but I guess that updating has reverted the modification. :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now