MyBB Community Forums

Full Version: Empty Post Error Bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Thanks to one of my members who finally tracked down an occasional bug.

To replicate:
https://community.mybb.com/newreply.php?...rocessed=1


As you can see the error says "Can not upload file - Too large for php post_max_size directive. Please press the back button."

When in fact it's that the $post var is empty.

From newreply.php, editpost.php, and newthread.php

if((empty($_POST) && empty($_FILES)) && $mybb->get_input('processed', MyBB::INPUT_INT) == 1)
{
	error($lang->error_cannot_upload_php_post);
}

So the error says it's too large but actually it's just empty. This confuses members.

This appears to happen when you refresh the page btw. So the $post data might empty out and reload the page with that error.

The error should be corrected so it's not confusing people.

I recommend something slightly more generic like:

"There has been an error due to your post data being empty. Possibly cause is a browser page refresh or direct access to this page. We recommend you press your browser back button and begin again."

In any case the existing error is wrong and confuses people into thinking your site is the problem with some pseudo php error that didn't happen.


Honestly, got reports of this for years. Smile
Thank You for reporting.
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/3044

Thanks for contributing to MyBB!

Regards,
The MyBB Group