The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Query causing MySQL server has gone away
Any idea of why this query is causing the error:
PHP Code:
|
#2
|
|||
|
|||
There are many things that could cause this, refer to the list at: http://dev.mysql.com/doc/refman/5.7/en/gone-away.html
|
Благодарность от: | ||
zero477 |
#3
|
|||
|
|||
Thanks Dave!!
--------------- Added [DATE]1481062567[/DATE] at [TIME]1481062567[/TIME] --------------- Quote:
Following your adivce I saw this in the link you provided: "You tried to run a query after closing the connection to the server. This indicates a logic error in the application that should be corrected." I have some widgets that connect to a different DATABASE that the one that has vbulletin. Maybe this is why the error is happening. Do you know what happens if I connect to another database in a widget and then in another use vbulletin's database class to do the query? I use vbulletin's database class to do the query that. What logic should I use in these widgets that connect to external databases? |
#4
|
|||
|
|||
Multiple database connections should work fine, unless the code of the widget closes the database connection of vBulletin. If you disable the widget, does it work?
|
#5
|
|||
|
|||
Hello dave,
Thanks again for your quick response. It normally works (with or without the widget), sometimes i get an email from vbulletin alerting me about this error. But it usually works. Greetings, Eddie |
#6
|
|||
|
|||
If it's an inconsistent problem then your widgets might not be the cause. Are those widgets sidebar blocks or something else? Try setting cache time to 0 (no caching) and see what happens.
|
#7
|
|||
|
|||
Quote:
Alstublieft again Dave! (I have seen your site, you look like a great developer. I lived in Groningen for 2 years and now live in Mexico I will keep in touch) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|