1

Topic: it worked and then suddenly "An error was encountered"

i get this error, have no idea why, i can accsess the db without problem,with phpmyadmin, and i cant explain where its hanging, sometimes its working and then again it doesnt, any idea???

An error was encountered

Unable to connect to MySQL server. MySQL reported: Lost connection to MySQL server at 'reading authorization packet', system error: 0

Note: For detailed error information (necessary for troubleshooting), enable "DEBUG mode". To enable "DEBUG mode", open up the file config.php in a text editor, add a line that looks like "define('FORUM_DEBUG', 1);" (without the quotation marks), and re-upload the file. Once you've solved the problem, it is recommended that "DEBUG mode" be turned off again (just remove the line from the file and re-upload it)

2

Re: it worked and then suddenly "An error was encountered"

Hi:)

Did you enable "DEBUG mode"? If not, can you do that and post the results here?

3 (edited by uzog 2011-05-22 19:55)

Re: it worked and then suddenly "An error was encountered"

colak wrote:

Hi:)

Did you enable "DEBUG mode"? If not, can you do that and post the results here?

this is what i get, but i have no problem accessing the db with phpmyadmin

An error was encountered

Unable to connect to MySQL server. MySQL reported: Lost connection to MySQL server at 'reading authorization packet', system error: 0

The error occurred on line 45 in /home/uzogen/public_html/pbb/punbb-1.3.5/include/dblayer/mysql.php

oh yes and line 45 says

else