![]() |
Invalid Monster Battle
Great, thanks.
I have another problem: Many users are getting an "Invalid Battle" error, as in they are still in an active battle which they already clicked submit at the end of a battle. |
I have a small number of people reporting this but I have been unable to reproduce.
Lets start easy; is this regular battle or monster battle? |
Monster battle.
|
Sorry about the delay.
Ok what I need you to do is this: Find an user that is experiencing this problem, and note down his userid. Then run these queries, only replacing the userid with the userid you found: [sql]SELECT monsterbattleid FROM rpg_user WHERE userid = '1'[/sql] [sql]SELECT userid FROM rpg_ibot_templates WHERE userid = '1'[/sql] And tell me what the results of each of these queries are. |
First query:
Code:
An error occurred while attempting to execute your query. The following information was returned. Code:
An error occurred while attempting to execute your query. The following information was returned. |
You use a table prefix then. Append that before the name of the table (so if your prefix is vb_ the table name becomes vb_rpg_user) and try it again.
You can find your table prefix in the config.php file. |
My bad.
First query: 0 2nd query did not come up with any results. |
I see.
And you are sure that the userid you used to query is infact stuck with that error? If you are, then run the following query: [sql]UPDATE user SET rpg = '' WHERE userid = '1'[/sql] Adding the table prefix and replacing the userid as needed, and tell the user to refresh any RPG page, then see if he is still stuck with that error. |
That did it. Thanks a lot man. I'll be talking to you later, I'm sure I'll need more help later on. lol.
|
Okay, well then we have nailed what the problem is: The cache didn't update itself.
That should make it fixable. Thanks for the aid :) PS: When next your users recieve this error, just run the Rebuild RPG Users maintenance function. |
Some of my members are getting the same error still. I ran the SQL query, along with the rebuild function. Suggestions?
|
They must be completing a new monster battle right after you running the queries thus making the problem reappear.
Ill see about bringing out a patch for this soon, got a final exam in 30 mins tho... |
A patch would be great. Good luck on the exam, hah.
|
Okay I know what to do now, I will see about updating the hack for 3.5.4 and 3.6.0 Beta 1 with a fix to this.
Thanks for the help :) |
All times are GMT. The time now is 07:15 PM. |
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:
|