WordPress.org

Ready to get started?Download WordPress

Forums

Maximum amount of text?? (5 posts)

  1. RHCdG
    Member
    Posted 1 year ago #

    Hi,

    There is something odd going on when I try to upload a page. It seems I am allowed to place only a limited amount of text on a page. When I exceed the limit, the text is truncated after I hit 'Update'.

    I use WordPress as a CMS mostly, and have uploaded 500+ pages so far to the database. These include pages with lots of text, and if I try to update those, the text is truncated as well.

    After hitting 'Update', the status bar reads 'Uploading (93%)...' The percentage may vary, but it hangs at that point until I press Refresh.

    Please note that I am not talking images or megabytes, but text, and bytes. And it's very strict with the amount of text that it accepts. One comma too many, and it is truncated.

    Has anybody ever heard about such a thing before? What could it be?

    Many thanks!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    WordPress itself doesn't impose any practical limits on the amount of text in a given page but you may be falling foul of an issue on your server. Either the server is overloaded and is simply timing out. Or you're falling foul of the server's security filter: http://wordpress.org/support/topic/cant-save-a-post-or-page-with-certain-text

    If you change the text, does that make any difference to the truncation?

  3. RHCdG
    Member
    Posted 1 year ago #

    Hi esmi,

    Yes, it does! Very strange.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Aha! Now that does sound like a server security issue. The trick is to try and narrow down what word or phrase is causing the problem. In my experience, it's usually something that's quite innocent, so this might take some detective work. Once you have the culprit, you really have two choices:

    1. Avoid that word/phrase forever on this site.

    2. Contact your hosts and see if you can persuade them to reassess their security filters. It's not unknown for them to go a little OTT with filters sometimes and end up causing more problems that they are trying to solve. Once in a while, you can even get them to admit this and make some changes.

  5. RHCdG
    Member
    Posted 1 year ago #

    Hi esmi,

    Yes, I have read about this in the last couple of hours. Words like "from", or "select", and others are simply rejected. A workaround would be to add this code to the .htaccess file:

    <ifmodule mod_security.c>
    <files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </files>
    </ifmodule>

    Indeed, this works for me; I can now post the full original page. I am just wondering about my security now. Do you have anything to say about that?

Topic Closed

This topic has been closed to new replies.

About this Topic