vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > v3 Arcade Support > v3 Arcade 1.0.8 - 1.1.1 Support > Troubleshooting, Problems, Questions

 
 
Thread Tools Display Modes
  #1  
Old 04-18-2009, 05:11 PM
NeverBored NeverBored is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default Random no permission error when submitting score

This is happening very randomly as far as I can tell, different people different games of which have accepted their score before or after. It may only happen with ibp games though I cant say for sure it may just be coincidence since I have 100s of ibp games and only the preinstalled v3 games.
__________________
http://www.neverboredonline.com
  #2  
Old 04-26-2009, 04:30 PM
NeverBored NeverBored is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default Re: Random no permission error when submitting score

No ideas, eh?
__________________
http://www.neverboredonline.com
  #3  
Old 04-26-2009, 04:46 PM
Mario's Avatar
Mario Mario is offline
Junior Member
 
Join Date: Sep 2005
Posts: 0
Default Re: Random no permission error when submitting score

Did you try my suggestion here?
http://www.v3arcade.com/forums/showthread.php?t=1741
  #4  
Old 04-26-2009, 09:27 PM
NeverBored NeverBored is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default Re: Random no permission error when submitting score

Quote:
Originally Posted by Mario View Post
I'm confused by your solution because the arcade templates have no cache tags by default. Does turning on the no cache option in the vb admin do something more?
__________________
http://www.neverboredonline.com
  #5  
Old 04-27-2009, 12:55 PM
Mario's Avatar
Mario Mario is offline
Junior Member
 
Join Date: Sep 2005
Posts: 0
Default Re: Random no permission error when submitting score

Not sure why it works, but it seems like users with IE8 and sometimes IE7 gets this error and as far i can se it have something to do with the new cookie handling in games on the latest arcade.

If you dont want to enable ad no cache, you can force IE to check for new pages every visit that should also solve your problem until a real fix gets released.

Or you can use Firefox i havent got any errors with that one yet.
  #6  
Old 04-28-2009, 03:59 PM
imported_Mark.B imported_Mark.B is offline
Senior Member
 
Join Date: Jun 2004
Posts: 100
Default Re: Random no permission error when submitting score

My users have had this problem for years and it's not browser specidic.

I did discover that it is caused by the game ids randomly not getting passed, which actually causes a MySQL error, though because of the way the arcade is coded you get the no permission error instead. I did test this once by commenting out the error call and you do indeed get a MySQL error instead, that's how I know.

I'm not sure if no-cache does fix it but on busy sites that's simply not an option.
__________________
BC FORUMS (established 2002) | BC ARCADE (new site with loads of free games)
  #7  
Old 04-29-2009, 12:21 PM
zelnik zelnik is offline
Member
 
Join Date: Aug 2008
Posts: 59
Default Re: Random no permission error when submitting score

Yup the no-cache definitely fixes it but like you say it really needs an official fix as this can only be a temp fix.

Can we have an official response that this is being dealt with on an upcoming release even if it's not 1.10?
  #8  
Old 04-29-2009, 10:19 PM
stump stump is offline
Junior Member
 
Join Date: Apr 2009
Posts: 11
Default Re: Random no permission error when submitting score

Quote:
Originally Posted by Mario View Post

Or you can use Firefox i havent got any errors with that one yet.

All I use is Firefox and I've got this error today many times over.
  #9  
Old 05-08-2009, 12:05 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: Random no permission error when submitting score

For those using FireFox and getting error... by any chance, are you using MySQLi (as opposed to MySQL)?
  #10  
Old 05-09-2009, 07:50 AM
stump stump is offline
Junior Member
 
Join Date: Apr 2009
Posts: 11
Default Re: Random no permission error when submitting score

Quote:
Originally Posted by Kevin View Post
For those using FireFox and getting error... by any chance, are you using MySQLi (as opposed to MySQL)?

No. But it's not limited to Firefox. IE, vista as well.
  #11  
Old 05-09-2009, 02:34 PM
imported_Mark.B imported_Mark.B is offline
Senior Member
 
Join Date: Jun 2004
Posts: 100
Default Re: Random no permission error when submitting score

It is browser and OS independent, that much I do know.

As I've said, it's to do with the gameids not being passed into the MySQL string which returns a database error....except that the arcade masks this with a permissions error.
__________________
BC FORUMS (established 2002) | BC ARCADE (new site with loads of free games)
  #12  
Old 05-09-2009, 08:37 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: Random no permission error when submitting score

Not necessarily *the* problem, but make sure your session timeout is longer than the amount of time being spent in the game. In other words... if your session timeout in vB is set for 5 minutes and somebody is playing a game for ten minutes, then this problem could also occur.
  #13  
Old 05-09-2009, 08:45 PM
NeverBored NeverBored is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default Re: Random no permission error when submitting score

Quote:
Originally Posted by Kevin View Post
Not necessarily *the* problem, but make sure your session timeout is longer than the amount of time being spent in the game. In other words... if your session timeout in vB is set for 5 minutes and somebody is playing a game for ten minutes, then this problem could also occur.
Hmm, my timeout is 30 minutes
__________________
http://www.neverboredonline.com
  #14  
Old 05-11-2009, 11:29 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Random no permission error when submitting score

For you guys that have received a database error when this happens, can you post the full error here?
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
  #15  
Old 05-11-2009, 01:45 PM
imported_Mark.B imported_Mark.B is offline
Senior Member
 
Join Date: Jun 2004
Posts: 100
Default Re: Random no permission error when submitting score

These are old so ignore version numbers....these were from a short period when I commented out the relevant vBulletin error in arcade.php to try and debug this problem:

Database error in vBulletin 3.8.0 Release Candidate 2:

Invalid SQL:
UPDATE arcade_games SET sessioncount=sessioncount+1 WHERE gameid=;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Request Date : Saturday, January 10th 2009 @ 08:52:04 AM
Error Date : Saturday, January 10th 2009 @ 08:52:04 AM
Script : http://www.bowlandcentral.com/forum/arcade.php
Referrer : http://www.bowlandcentral.com/forum/...lay&gameid=511


Database error in vBulletin 3.8.0 Release Candidate 2:

Invalid SQL:
UPDATE arcade_games SET sessioncount=sessioncount+1 WHERE gameid=;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Request Date : Thursday, December 25th 2008 @ 01:22:01 AM
Error Date : Thursday, December 25th 2008 @ 01:22:01 AM
Script : http://www.bowlandcentral.com/forum/arcade.php
Referrer : http://www.bowlandcentral.com/forum/...imalrescue.swf


Database error in vBulletin 3.7.2:

Invalid SQL:
UPDATE arcade_games SET sessioncount=sessioncount+1 WHERE gameid=;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Request Date : Sunday, November 16th 2008 @ 07:36:53 PM
Error Date : Sunday, November 16th 2008 @ 07:36:53 PM
Script : http://www.bowlandcentral.com/forum/arcade.php
Referrer : http://www.bowlandcentral.com/forum/...ankrobbery.swf
__________________
BC FORUMS (established 2002) | BC ARCADE (new site with loads of free games)
  #16  
Old 05-12-2009, 09:57 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Random no permission error when submitting score

It looks like enabling no cache headers just for a few arcade actions is going to be the way to go here. For those having this issue, you should be able to resolve it by adding a new plugin to the 'init_startup' hook location with the following code:
Code:
if (THIS_SCRIPT == 'arcade' AND ($_REQUEST['do'] == 'play' OR $_REQUEST['sessdo'] == 'sessionstart' OR $_REQUEST['sessdo'] == 'burn'))
{
	$vbulletin->options['nocacheheaders'] = 1;
}
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
  #17  
Old 05-12-2009, 04:53 PM
imported_Mark.B imported_Mark.B is offline
Senior Member
 
Join Date: Jun 2004
Posts: 100
Default Re: Random no permission error when submitting score

Thanks...I have implemented this and will monitor things.
__________________
BC FORUMS (established 2002) | BC ARCADE (new site with loads of free games)
  #18  
Old 05-12-2009, 08:59 PM
NeverBored NeverBored is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default Re: Random no permission error when submitting score

Quote:
Originally Posted by Brian View Post
It looks like enabling no cache headers just for a few arcade actions is going to be the way to go here. For those having this issue, you should be able to resolve it by adding a new plugin to the 'init_startup' hook location with the following code:
Code:
if (THIS_SCRIPT == 'arcade' AND ($_REQUEST['do'] == 'play' OR $_REQUEST['sessdo'] == 'sessionstart' OR $_REQUEST['sessdo'] == 'burn'))
{
    $vbulletin->options['nocacheheaders'] = 1;
}
Damn, I was excited this morning about this nice little plugin but just had a member get a no permission error.
__________________
http://www.neverboredonline.com
  #19  
Old 05-14-2009, 01:36 PM
stump stump is offline
Junior Member
 
Join Date: Apr 2009
Posts: 11
Default Re: Random no permission error when submitting score

So what else can be done with these errors?
  #20  
Old 05-14-2009, 05:11 PM
Mario's Avatar
Mario Mario is offline
Junior Member
 
Join Date: Sep 2005
Posts: 0
Default Re: Random no permission error when submitting score

seems to be working fine so far
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 02:06 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.