Database Error: MySQL server has gone away
File: /home/thefanta/public_html/attic/Sources/Subs-Post.php
Line: 1468
a couple of my members over the past few days got this message when trying to post either a fresh post or a reply. it is not on the same day nor the same member
I tried as admin and the test regular user and got no error when posting nor replying -- several times
any idea how to fix?
this are the lines with the error line in red
}
mysql_free_result($members);
if (isset($current_language) && $current_language != $user_info['language'])
loadLanguage('Post');
// Sent!
if ($type == 'reply' && !empty($sent))
db_query("
UPDATE {$db_prefix}log_notify
SET sent = 1
WHERE ID_TOPIC = $ID_TOPIC
AND ID_MEMBER != $ID_MEMBER", __FILE__, __LINE__);
}
// Create a post, either as new topic (ID_TOPIC = 0) or in an existing one.
// The input parameters of this function assume:
// - Strings have been escaped.
// - Integers have been cast to integer.
// - Mandatory parameters are set.
function createPost(&$msgOptions, &$topicOptions, &$posterOptions)
{
global $db_prefix, $user_info, $ID_MEMBER, $txt, $modSettings;
if mysql is going away, this is an issue your host has to look into. there is nothing that you can do to fix the issue.
ok thanks