Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid database Handle 0 (error: 4) #141

Open
Villads1 opened this issue Feb 7, 2023 · 3 comments
Open

Invalid database Handle 0 (error: 4) #141

Villads1 opened this issue Feb 7, 2023 · 3 comments

Comments

@Villads1
Copy link

Villads1 commented Feb 7, 2023

Hello! Unfortunately my server hoster crashed & somehow corrupted all their files. The store plugin was working fine before but i am getting this error now? It doesnt happen all the the time & the plugin has made a connection many times.

L 02/07/2023 - 04:40:53: [store\store.smx] Database connection is lost or not yet initialized.
L 02/07/2023 - 04:40:53: [store\store.smx] Database connection is lost or not yet initialized.
L 02/07/2023 - 04:40:53: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 02/07/2023 - 04:40:53: [SM] Blaming: store\store.smx
L 02/07/2023 - 04:40:53: [SM] Call stack trace:
L 02/07/2023 - 04:40:53: [SM] [0] SQL_FormatQuery
L 02/07/2023 - 04:40:53: [SM] [1] Line 540, store\store_functions.sp::Store_LogMessage
L 02/07/2023 - 04:40:53: [SM] [2] Line 230, store\store_functions.sp::Store_DisconnectClient
L 02/07/2023 - 04:40:53: [SM] [3] Line 443, C:\Users\villa\Desktop\servers\5v5\addons\sourcemod\scripting\store.sp::OnClientDisconnect

Thanks in advance & great plugin!

@nuclearsilo583
Copy link
Owner

Check if you have setup the database entry/connection correctly. Check this entry here and check your addons/sourcemod/configs/database.cfg are matching.

@Villads1
Copy link
Author

My database.cfg entry is correct & so is the plugin.store.cfg configuration. I havent been able to figure out whether this actually makes an impact or not, But regardless this error shows up in error log once in a while & i'm really not interested in leaving it like that.

@azalty
Copy link
Contributor

azalty commented Feb 21, 2023

Seems like a problem with your database, code seems fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants