Topic: An error was encountered: unable to update topic

Hello everybody,
I frequently get this error on my forum when trying to access a topic. I guess it has something to do with my server load, but is it possible to change any parameters to decrease the chances to get this message ?

Any ideas where I should look at ?

Thanks

Re: An error was encountered: unable to update topic

Enable debug mode and paste the full error

Re: An error was encountered: unable to update topic

Thanks:

File: /home.2/boursema/www/forum/viewtopic.php
Line: 426

PunBB reported: Unable to update topic

Database reported: Lost connection to MySQL server during query (Errno: 2013)


Il s'agit de cette ligne:

// Increment "num_views" for topic
$low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
$db->query('UPDATE '.$low_prio.$db->prefix.'topics SET num_views=num_views+1 WHERE id='.$id) or error('Unable to update topic', __FILE__, __LINE__, $db->error());

Re: An error was encountered: unable to update topic

That's a MySQL issue: talk to your host.