Raised This Month: $51 Target: $400
 12% 

Solved [MySQL] Invalid info tuple handle: 0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HuhHuhXd
Junior Member
Join Date: Jul 2023
Old 01-13-2024 , 08:17   [MySQL] Invalid info tuple handle: 0
Reply With Quote #1

Hello, I have a problem with the database.
After entering the server, the following error appears:
Code:
L 01/13/2024 - 14:07:18: [MySQL] Invalid info tuple handle: 0
L 01/13/2024 - 14:07:18: [AMXX] Displaying debug trace (plugin "paintballmod.amxx", version "3.4")
L 01/13/2024 - 14:07:18: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 01/13/2024 - 14:07:18: [AMXX]    [0] paintballmod.sma::client_putinserver (line 171)

while after entering the /modele command, the following error appears:

Code:
L 01/13/2024 - 14:13:18: [MySQL] Invalid info tuple handle: 0
L 01/13/2024 - 14:13:18: [AMXX] Displaying debug trace (plugin "paintballmod.amxx", version "3.4")
L 01/13/2024 - 14:13:18: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 01/13/2024 - 14:13:18: [AMXX]    [0] paintballmod.sma::WczytajMedale (line 1192)
L 01/13/2024 - 14:13:18: [AMXX]    [1] paintballmod.sma::RankingMedali (line 1262)
L 01/13/2024 - 14:13:18: [AMXX]    [2] paintballmod.sma::MenuMedali_ (line 1240)
I don't know how to fix it, please help.
Attached Files
File Type: sma Get Plugin or Get Source (paintballmod.sma - 36 views - 35.8 KB)

Last edited by HuhHuhXd; 01-14-2024 at 09:35.
HuhHuhXd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-13-2024 , 17:16   Re: [MySQL] Invalid info tuple handle: 0
Reply With Quote #2

Have you verified that you can actually connect to your database successfully with your credentials? Also verify that your database is allowed to be access by your server because many web hosts will block external connections by default.
__________________

Last edited by fysiks; 01-13-2024 at 17:17.
fysiks is offline
HuhHuhXd
Junior Member
Join Date: Jul 2023
Old 01-14-2024 , 06:57   Re: [MySQL] Invalid info tuple handle: 0
Reply With Quote #3

How to do it? I have the mod running on localhost, as well as the database (xampp) on localhost, the table was not created, so I created it and it still doesn't work.
HuhHuhXd is offline
HuhHuhXd
Junior Member
Join Date: Jul 2023
Old 01-14-2024 , 09:35   Re: [MySQL] Invalid info tuple handle: 0
Reply With Quote #4

Bug solved, I had register_message twice in public_init
HuhHuhXd is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-18-2024 , 19:06   Re: [MySQL] Invalid info tuple handle: 0
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Have you verified that you can actually connect to your database successfully with your credentials? Also verify that your database is allowed to be access by your server because many web hosts will block external connections by default.
Code:
[MySQL] Invalid info tuple handle: 0
Invalid info tuple handle has nothing to do with connecting to the database, it prepares the connection credentials into a tuple for connection...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 01-18-2024 at 19:06.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-18-2024 , 21:18   Re: [MySQL] Invalid info tuple handle: 0
Reply With Quote #6

Ok, so if that is the case, how is that even possible considering that this condition (a value of 0) is explicitly checked and if it was actually 0, the plugin would be put into a failed state. See line 131.

Feel free to help the OP.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode