2018-09-19, 06:12 PM
(This post was last modified: 2018-09-20, 05:03 PM by waldoalvarez.)
Hi. Thanks for your reply. I disabled cloudflare (switched to development mode) and got the same. I only get this error in mybb error log from time to time that looks normal given the traffic.
SQL Error: 2006 - MySQL server has gone away
I even restarted mysql and yesterday the server entirely and exactly same behaviour
Whatever the error mybb is totally mute. I did a backup of the databse and verified/optimized tables and all went ok.
I tried this permissions clearly excessive but still:
https://docs.mybb.com/1.8/install/#file-permissions
Also increased minimal operating system file count. Nothing.
I was tracking down this getting my hands dirty after trying deisabling plugins. And I located a series of problems:
First in this file:
https://github.com/mybb/mybb/blob/featur...upload.php
The function:
function add_attachments($pid, $forumpermissions, $attachwhere, $action=false)
looks quite deficient and buggy. It's error reporting is quite bad. Should complaint when some of the things fail but it silently ignores the errors. Very badly programmed.
I made some amendments checking for $total == 0 that is what was happening and realized the error was reported but not displayed.
I then realized the form was sending "attachment" instead of "attachments" (notice the ending S) so I wen ahead and fixed the template to change the name to "attachments".
But then some other error is happening after the fix. Of course no error is displayed for whatever reason.
Any Idea on why this error is not displayed only showing an empty alert when this variable is populated:
$ret['errors'][] = ...
Maybe I could track down this further.
SQL Error: 2006 - MySQL server has gone away
I even restarted mysql and yesterday the server entirely and exactly same behaviour
Whatever the error mybb is totally mute. I did a backup of the databse and verified/optimized tables and all went ok.
I tried this permissions clearly excessive but still:
https://docs.mybb.com/1.8/install/#file-permissions
Also increased minimal operating system file count. Nothing.
I was tracking down this getting my hands dirty after trying deisabling plugins. And I located a series of problems:
First in this file:
https://github.com/mybb/mybb/blob/featur...upload.php
The function:
function add_attachments($pid, $forumpermissions, $attachwhere, $action=false)
looks quite deficient and buggy. It's error reporting is quite bad. Should complaint when some of the things fail but it silently ignores the errors. Very badly programmed.
I made some amendments checking for $total == 0 that is what was happening and realized the error was reported but not displayed.
I then realized the form was sending "attachment" instead of "attachments" (notice the ending S) so I wen ahead and fixed the template to change the name to "attachments".
But then some other error is happening after the fix. Of course no error is displayed for whatever reason.
Any Idea on why this error is not displayed only showing an empty alert when this variable is populated:
$ret['errors'][] = ...
Maybe I could track down this further.