![]() |
Query causing MySQL server has gone away
Any idea of why this query is causing the error:
PHP Code:
|
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
|
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? |
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?
|
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 |
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.
|
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) |
All times are GMT. The time now is 06:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|