Custom HTML module truncated on Apply/Save

This forum is for general questions about extensions for Joomla! version 1.5.x.

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.
Locked
tgreg
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jul 16, 2009 9:16 am

Custom HTML module truncated on Apply/Save

Post by tgreg » Thu Jul 16, 2009 9:33 am

I added a 'Custom HTML' module in one of the pages and am trying to insert/paste some HTML/Javascript code in it (in No Editor mode), but when I click Apply or Save, the code is truncated in what seem to be random places. The code is ~90KB long and is working by itself as a .htm file.

Thanks for any help with this.

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11616
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Custom HTML module truncated on Apply/Save

Post by ooffick » Thu Jul 16, 2009 9:46 am

Hi, welcome to the forum

Did you check the blacklist setting to include HTML into your Articles:
http://docs.joomla.org/Why_does_some_HT ... n_1.5.8%3F

Olaf
Olaf Offick - Global Moderator
learnskills.org

tgreg
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jul 16, 2009 9:16 am

Re: Custom HTML module truncated on Apply/Save

Post by tgreg » Thu Jul 16, 2009 12:26 pm

Yes, I checked that, I am not filtered. I have version 1.5.11 and am an Admin.
Also, I have another 'Custom HTML' module with a much shorter snippet of HTML and it's working properly. Even this truncated module is displayed in distorted form (because it's truncated).

tgreg
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jul 16, 2009 9:16 am

Re: Custom HTML module truncated on Apply/Save

Post by tgreg » Thu Jul 16, 2009 12:39 pm

...some additional info: I inserted this HTML/JavaScript code in an Article(no Editor mode) and it's not truncated and is working for the most part, some styling and formatting is lost. But I need this code to work in a separate HTML module.

Thanks

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11616
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Custom HTML module truncated on Apply/Save

Post by ooffick » Thu Jul 16, 2009 3:13 pm

I just tried it myself, and it looks like the custom HTML module is truncated at 65535 characters if the Code Cleanup of the TinyMCE Editor is switched on, if it is switched off, I can go over that limit without any problem.

I found that the same limit applies when the WYSIWYG Editor is set to No Editor.

Can you try to switch on the TinyMCE Editor (if possible the one which is included in 1.5.12) and try to disable the Code Cleanup, and tell me if that is working. (you can toggle to html mode, paste it, and then toggle back.)

Olaf
Olaf Offick - Global Moderator
learnskills.org

tgreg
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jul 16, 2009 9:16 am

Re: Custom HTML module truncated on Apply/Save

Post by tgreg » Thu Jul 16, 2009 4:50 pm

Thank you for your response.

I'll upgrade to 1.5.12 and try your solution. (i won't be at my computer until later today and will post my results then)

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11616
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Custom HTML module truncated on Apply/Save

Post by ooffick » Thu Jul 16, 2009 10:29 pm

To change this behaviour please open phpMyAdmin and change in the table jos_modules the type of the field "content" from text to mediumtext.

This would change the limit from 65535 to 16777215.

If you need even more space you will need to change it to longtext.

Olaf
Olaf Offick - Global Moderator
learnskills.org

tgreg
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jul 16, 2009 9:16 am

Re: Custom HTML module truncated on Apply/Save

Post by tgreg » Fri Jul 17, 2009 12:24 am

This solved it!
I didn't even need to upgrade to 1.5.12.

Thank you for all your help!

clickshe
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Aug 16, 2012 10:36 am

Re: Custom HTML module truncated on Apply/Save

Post by clickshe » Thu Aug 16, 2012 10:55 am

ooffick wrote:To change this behaviour please open phpMyAdmin and change in the table jos_modules the type of the field "content" from text to mediumtext.

This would change the limit from 65535 to 16777215.

If you need even more space you will need to change it to longtext.

Olaf

Hello, I got Access Denied when open phpMyAdmin in localhost with Esyphp.
How to do?
And after I will be able to change the table jos_modules, will I be able to do the same on the remote server or or will not be required there?

Just curious:
why normally are set to "text" and not of "mediumtext"
What happens if I change these parameters?
Everything will be slower?

This is a very serious probblem...

Thank you

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11616
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Custom HTML module truncated on Apply/Save

Post by ooffick » Mon Aug 20, 2012 9:22 am

If you cannot open phpmyadmin, please check with your hosting provider to get access.

Kind Regards,
Olaf
Olaf Offick - Global Moderator
learnskills.org

philgcdr
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Sun Nov 15, 2009 7:02 pm

Re: Custom HTML module truncated on Apply/Save

Post by philgcdr » Fri Nov 28, 2014 12:28 am

To change this behaviour please open phpMyAdmin and change in the table jos_modules the type of the field "content" from text to mediumtext.
How to do this in Joomla 3 please?

I am using Kunena latest and could not disable it for a side article (module anywhere) for some reason and want that text for a navigation area.

The data is a little big for the side module area.

How to set to mediumtext in Joomla 3 - I know fairlly little about database in Php my admin and could not find this section in Joomla 3 Php my admin.

Thank you.


Locked

Return to “Extensions for Joomla! 1.5”