News:

Wondering if this will always be free?  See why free is better.

Main Menu

The message body was left empty

Started by azarober, December 16, 2013, 05:37:13 PM

Previous topic - Next topic

azarober

Hi !
Getting 'The message body was left empty' message with a large post

http://www.ebaforums.com/index.php/topic,285.msg5973.html#msg5973

and still there is a conclusion to enter.... the message appears trying to enter the conclusion....

admin > posts and topics > Maximum allowed post size: 500000 characters

Something to do in the DB ? What and exactly where ?

Thanks in advance
Roberto
http://ebaforums.com/


shadow82x

Mods installed? Anything in your SMF error log?
Colin B
Former Spammer, Customize, & Support Team Member

azarober

#2
Thanks for yoiur answer !

No error nor problem with the SMF log

Server: Hostgator with direct access by cPanel

1.    Hide Board    1.1    [ Uninstall ]
2.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0    [ Uninstall ]
3.    SMF 1.0.14 / 1.1.6 Update    1.0    [ Uninstall ]
4.    Custom Profile Field Mod    3.19    [ Uninstall ]
5.    SMF 1.0.15 / 1.1.7 Update    1.0    [ Uninstall ]
6.    SMF 1.0.16 / 1.1.8 Update    1.0    [ Uninstall ]
7.    Add Favicon.ico Support    1.0    [ Uninstall ]
8.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0    [ Uninstall ]
9.    SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1    [ Uninstall ]
10.    Advanced Recent-Posts    1.1    [ Uninstall ]
11.    SMF 1.0.19 / 1.1.11 Update    1.0    [ Uninstall ]
12.    SMF 1.0.20 / 1.1.12 Update    1.0    [ Uninstall ]
13.    SMF 1.0.21 / 1.1.13 Update    1.0    [ Uninstall ]
14.    SMF 1.1.14 Update    1.0    [ Uninstall ]
15.    SMF 1.1.15 Update    1.0    [ Uninstall ]
16.    SMF 1.0.22 / 1.1.16 Update    1.0    [ Uninstall ]
17.    SMF 1.0.23 / 1.1.17 Update    1.0    [ Uninstall ]
18.    SMF 1.1.18 Update    1.0    [ Uninstall ]
19.    SMF 1.1.19 / 2.0.6 Update    1.0    [ Uninstall ]

azarober

#3
Looking for solutions in these forums...

changed smf_messages table body from 'mediumtext' to 'longtext'

and changed admin > posts and topics > Maximum allowed post size: 999999 characters

Tried the fix compuart posted: http://www.simplemachines.org/community/index.php?topic=131168.msg838019#msg838019
with the following lines in subs-post.php

         if (strpos($user_info['name'], '[') !== false || strpos($user_info['name'], ']') !== false || strpos($user_info['name'], '\'') !== false || strpos($user_info['name'], '"') !== false)
$parts[$i] = preg_replace('~(?:\A|\n)/me(?: | )([^\n]*)(?:\z)?~i', '[me="' . $user_info['name'] . '"]$1[/me]', $parts[$i]);
else
$parts[$i] = preg_replace('~(?:\A|\n)/me(?: | )([^\n]*)(?:\z)?~i', '[me=' . $user_info['name'] . ']$1[/me]', $parts[$i]);


... and finally tried to post the message as Admin... and same answer:  'The message body was left empty'


NOTHING WORKS !

shadow82x

#4
Based on the post you linked to above and the use of videos, it might be related to the potential use of  the <object> and <embed> tags. Why not give the following mod a try?

http://custom.simplemachines.org/mods/index.php?mod=987

There is also the possibility of something server side that is rejecting large posts from being submitted.
Colin B
Former Spammer, Customize, & Support Team Member

azarober

WHAT EXACTLY I MUST DO WITH THIS ?
Donwnload 2.... or 1.,,,, from where ....  to where.... !

The link to download to do not know where goes to AVG Antivirus.... ?????????

Arantor

Quotechanged smf_messages table body from 'mediumtext' to 'longtext'

WTF. YOU SHOULD NOT DO THAT.

Quoteand changed admin > posts and topics > Maximum allowed post size: 999999 characters

And that should have undone the mess you made trying to make a longtext. You have absolutely no need to create a longtext. You will not be able to make posts that are 4 BILLION characters in length. This is why should be using a mediumtext.

That said, you're never going to be able to make posts that large, no matter how you try to screw around with SMF's database in ways you're not supposed to do, because other limits in MySQL will prevent you from doing so.
Holder of controversial views, all of which my own.


azarober

so... FINALLY there is NO SOLUTION for long texts ?

margarett

Yes, there is. It just has nothing to do with SMF.
Get yourself a dedicated server and extend all your limits in a way to accommodate that.

What Arantor is saying is more or less this: "that text, as long as it is, exceeds the usual limits that your server establishes in the interaction between your script (in this case, SMF) and the database".
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Arantor

Yup, the solution is nothing whatsoever to do with SMF but to reconfigure some of the deepest darkest settings of MySQL itself, though it is distinctly not recommended to do so. Consider, the amount of text you are trying to brute force into a single post is enough to fill a decent sized novel. A megabyte of text weighs in at several hundred pages of print. This as a single post is going to fail very, very badly for users to actually try and read anyway.

If you want to post a novel  attaching a PDF will be far better because at least then the user will be able to remember where they got to.
Holder of controversial views, all of which my own.


Advertisement: