Advertisement
Text Filters Won't Save
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Feb 14, 2024 10:23 pm
Text Filters Won't Save
I have just converted an older site to Joomla 5. Site is running PHP 8.1. RSFirewall is disabled.
I am attempting to use JCE Editor, but when I save an article it strips all HTML out.
The advice I found was to Check the settings in Global Configuration / Text Filters. All users are set to "Default Forbidden List" If I reset the Super User to "No Filter" and click on SAVE, it does NOT change it. In fact, it will not Save a new setting for any user.
I have confirmed the situation does not change at all for various PHP versions, and I have confirmed proper settings for PHP variables. I have also already checked config.php and .htaccess for all things I got advice to remove/include as I researched this problem.
Any advice at what could be blocking me from saving the Text Filter settings? Or someway I can change it manually in the database?
I am attempting to use JCE Editor, but when I save an article it strips all HTML out.
The advice I found was to Check the settings in Global Configuration / Text Filters. All users are set to "Default Forbidden List" If I reset the Super User to "No Filter" and click on SAVE, it does NOT change it. In fact, it will not Save a new setting for any user.
I have confirmed the situation does not change at all for various PHP versions, and I have confirmed proper settings for PHP variables. I have also already checked config.php and .htaccess for all things I got advice to remove/include as I researched this problem.
Any advice at what could be blocking me from saving the Text Filter settings? Or someway I can change it manually in the database?
Advertisement
- ceford
- Joomla! Virtuoso
- Posts: 3095
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Text Filters Won't Save
Public, Guest and Registered are supposed to be set to No HTML. Super Users should be No Filtering. Everything else should be Default Forbidden List. The data are stored in the #__extensions table, com_config record, params field.
-
- Joomla! Enthusiast
- Posts: 175
- Joined: Thu Sep 02, 2010 3:57 am
Re: Text Filters Won't Save
Here's what is in my params field:
So filter_tags and filter_attributes are both empty across the board. What should they be?{"filters":{"1":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"9":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"6":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"7":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"2":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"3":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"4":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"5":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"8":{"filter_type":"NONE","filter_tags":"","filter_attributes":""}}}
- ceford
- Joomla! Virtuoso
- Posts: 3095
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Text Filters Won't Save
filter_tags and filter_attributes are normally empty - like the fields in the Text Filters tab of the Global Configuration form. Here is my params field content
What happens when you use the Tiny MCE editor? It has a setting to allow you to use the Joomla text filters.
Code: Select all
{"filters":{"1":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"9":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"6":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"7":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"2":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"3":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"4":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"5":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"8":{"filter_type":"NONE","filter_tags":"","filter_attributes":""}}}
-
- Joomla! Enthusiast
- Posts: 175
- Joined: Thu Sep 02, 2010 3:57 am
Re: Text Filters Won't Save
I realized how the db structure worked right after posting that... ;-)ceford wrote: ↑Wed Feb 21, 2024 6:44 pm filter_tags and filter_attributes are normally empty - like the fields in the Text Filters tab of the Global Configuration form. Here is my params field content
What happens when you use the Tiny MCE editor? It has a setting to allow you to use the Joomla text filters.Code: Select all
{"filters":{"1":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"9":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"6":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"7":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"2":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"3":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"4":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"5":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"8":{"filter_type":"NONE","filter_tags":"","filter_attributes":""}}}
I set the editor to Tiny MCE but still no luck, either with or without the use of Joomla text filters. Also as I mentioned in my other thread that you replied to, I also have tried disabling all 3rd party extensions and reinstalling the Joomla core. What else could it be?
- ceford
- Joomla! Virtuoso
- Posts: 3095
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Text Filters Won't Save
From your descriptions it seems that the database table params has NONE for User Group 8 but the Text Filters table is showing Default Forbidden List for Super Users. Can you confirm that is so?
Have a look at the #__usergroups table where you will see the group id and parent_id values. Super Users has id 8 and parent_id 1.
Have a look at your own Profile. Are you assigned to any group as well as Super Users?
Have a look at the #__usergroups table where you will see the group id and parent_id values. Super Users has id 8 and parent_id 1.
Have a look at your own Profile. Are you assigned to any group as well as Super Users?
-
- Joomla! Enthusiast
- Posts: 175
- Joined: Thu Sep 02, 2010 3:57 am
Re: Text Filters Won't Save
Yes to that.
No, there are only three users on the site and they are all Super Users only.
- ceford
- Joomla! Virtuoso
- Posts: 3095
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Text Filters Won't Save
So the Text Filters form does not load what is in the database and changes are not saved. Inexplicable!
Check that there are not two entries for com_config in the $__extensions table. Have at a look at the database settings in the Global Configuration / Server form. Anything unusual there? I am wondering whether the table prefix matches the table you see in phpMyAdmin.
We occasionally see mod_security blocking form submissions. Hmmmm!
Check that there are not two entries for com_config in the $__extensions table. Have at a look at the database settings in the Global Configuration / Server form. Anything unusual there? I am wondering whether the table prefix matches the table you see in phpMyAdmin.
We occasionally see mod_security blocking form submissions. Hmmmm!
-
- Joomla! Enthusiast
- Posts: 175
- Joined: Thu Sep 02, 2010 3:57 am
Re: Text Filters Won't Save
Nailed it! Not only com_config but many others! What should I do? My first thought would be to delete all of the ones with higher ID numbers.
You do not have the required permissions to view the files attached to this post.
- ceford
- Joomla! Virtuoso
- Posts: 3095
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Text Filters Won't Save
Can you take another screenshot showing the column headers? My #__extensions table has five columns with integers beginning with client_id but I only see four columns in your screenshot.
-
- Joomla! Enthusiast
- Posts: 175
- Joined: Thu Sep 02, 2010 3:57 am
Re: Text Filters Won't Save
Better?
You do not have the required permissions to view the files attached to this post.
- ceford
- Joomla! Virtuoso
- Posts: 3095
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Text Filters Won't Save
I have some fields that are not shown in your screenshot. I guess that is because of the different history and the extra fields may be at the right of your table out of view in your screenshot. Check that you have fields named changelogurl and locked.
Take a database backup and site backup then bite the bullet!
Do you see any duplicate extensions with id values over 10000 in System / Manage / Extensions? If so, try to delete them there. The snag is that doing that might delete code used by the originals.
Otherwise - delete the duplicate database records with id values over 10000.
Your screenshot shows the records with id values over 10000 are not protected and 2/3 have no params. It would be really nice to know how they got created.
Take a database backup and site backup then bite the bullet!
Do you see any duplicate extensions with id values over 10000 in System / Manage / Extensions? If so, try to delete them there. The snag is that doing that might delete code used by the originals.
Otherwise - delete the duplicate database records with id values over 10000.
Your screenshot shows the records with id values over 10000 are not protected and 2/3 have no params. It would be really nice to know how they got created.
-
- Joomla! Enthusiast
- Posts: 175
- Joined: Thu Sep 02, 2010 3:57 am
Re: Text Filters Won't Save
Nope, neiter changelogurl and locked nor in my table: I will just delete all of the duplicates with the high ID numbers and see what happens. I have a full backup of the site just in case.ceford wrote: ↑Sat Feb 24, 2024 7:41 am I have some fields that are not shown in your screenshot. I guess that is because of the different history and the extra fields may be at the right of your table out of view in your screenshot. Check that you have fields named changelogurl and locked.
Take a database backup and site backup then bite the bullet!
Do you see any duplicate extensions with id values over 10000 in System / Manage / Extensions? If so, try to delete them there. The snag is that doing that might delete code used by the originals.
Otherwise - delete the duplicate database records with id values over 10000.
Your screenshot shows the records with id values over 10000 are not protected and 2/3 have no params. It would be really nice to know how they got created.
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Enthusiast
- Posts: 175
- Joined: Thu Sep 02, 2010 3:57 am
Re: Text Filters Won't Save
Well that did it! First I removed the duplicate entry for com_config and I was able to save and edit articles, woohoo!
I then removed all of the duplicate entries which were all components (com_xxxx) and the site still functions just fine. All of the duplicates had empty params content, so it was pretty straightforward really. I checked the rest of the entries such as modules, packages, etc. and there were no duplicates, so the issue was with components only.
Also of note, the first duplicate had an ID number that fell just after the ID for the template (J51_Verona by Joomla51.com, ID #10000 in the table), and all previous IDs were three digits before the template was installed. I will forward this thread to them just in case they need to fix something on their end.
I then removed all of the duplicate entries which were all components (com_xxxx) and the site still functions just fine. All of the duplicates had empty params content, so it was pretty straightforward really. I checked the rest of the entries such as modules, packages, etc. and there were no duplicates, so the issue was with components only.
Also of note, the first duplicate had an ID number that fell just after the ID for the template (J51_Verona by Joomla51.com, ID #10000 in the table), and all previous IDs were three digits before the template was installed. I will forward this thread to them just in case they need to fix something on their end.
You do not have the required permissions to view the files attached to this post.
Advertisement