Log in

View Full Version : Scores not saving, even after changes to index.php are made


s0lidgr0und
01-02-2010, 02:46 AM
Like others, I'm getting the following error after I complete a game...This score was not submitted from the game. Your score will not be saved.

I saw the other thread and the files included with the download and the alterations have been made to the index.php file.

Also, I saw that someone had tried to comment out the content.php rather than the forum.php (or vice versa) and the problem still won't change.

I tested it on Snake, and before it goes to the error I listed above, the game says "Could Not Access Game Table".

Thoughts?

s0lidgr0und
01-04-2010, 09:26 PM
Uninstalled and reinstalled, confirmed index change. Same problem.

--------------- Added 1262658404 at 1262658404 ---------------

While in debug mode,

This score was not submitted from the game. Your score will not be saved.

Error #011 -> gid=5|ui[a_sess_gid]=5|g[gid]=|vs[mid]=17|vs[gname]=snake|gamename=

--------------- Added 1262660065 at 1262660065 ---------------

Removed the index.php nonsense:

Error #010

jaffaman
01-06-2010, 05:05 PM
Doing the changes on the index.php did not work for me but as i am using the VB4 suite i tried putting the changes in the content.php and it seemed to work ok but still testing.

s0lidgr0und
01-09-2010, 09:53 AM
Jaffa - Thanks for your suggestion. I placed the coding in the forum.php, which is my landing page, and everything started working fine.

sdebank
01-12-2010, 07:58 PM
I'm on 3.8.4 and the same problem. The score didn't save, played the game again and it did...

Nightridr
02-13-2010, 10:08 PM
Was wondering if someone here could help me. I have two issues first one is with arcade.php i get an error ......

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\magamers\arcade.php on line 3190

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\magamers\arcade.php on line 4082

line 3190 ----$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

line 4082 -----$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

Seems it doesn't like the reference NEW if i delete these lines the error goes away but i think it prevents you from making a comment on yr high score.

Also have an issue with the code u add to the index.php file. I have read yr posts here and tried it in forum.php and in content.php but this didn't work for me.

After completing a game i get this error:

Notice: Undefined index: module in C:\wamp\www\magamers\index.php on line 2

Notice: Use of undefined constant act - assumed 'act' in C:\wamp\www\magamers\index.php on line 41

Notice: Use of undefined constant autocom - assumed 'autocom' in C:\wamp\www\magamers\index.php on line 42

Notice: Undefined index: autocom in C:\wamp\www\magamers\index.php on line 42

Notice: Use of undefined constant showuser - assumed 'showuser' in C:\wamp\www\magamers\index.php on line 43

Notice: Undefined index: showuser in C:\wamp\www\magamers\index.php on line 43

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\magamers\arcade.php on line 3190

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\magamers\arcade.php on line 4082

I have found that by deleting the reference NEW on lines 3190 & 4082 as well as deleting the whole of line 4083 ..... as well as deleting lines 2, 41,42 & 43 in the index.php i can get it to work .. (save scores) but as i've said above i cannot comment on highscores, probably because i've deleted the bbcode reference :)

Any help would be apprieciated as im trying to get things sorted out on a localhost before i put it onto the web.

ps. newbie to this who is trying to learn

Speysider
02-14-2010, 11:58 AM
The deprecation errors are due to PHP 5.3. Please contact your host and ask them to downgrade their version of PHP to 5.2 .

Nightridr
02-16-2010, 05:22 AM
The deprecation errors are due to PHP 5.3. Please contact your host and ask them to downgrade their version of PHP to 5.2 .

Thanks for that Speysider ...... as it is i'm only using wamp localhost atm and it is running 5.3 i will change the version thankyou for that.

topoli
02-19-2010, 08:03 AM
Doing the changes on the index.php did not work for me but as i am using the VB4 suite i tried putting the changes in the content.php and it seemed to work ok but still testing.

what changes did you put in content.php?

s0lidgr0und
02-19-2010, 12:25 PM
what changes did you put in content.php?

In your download, look for the file named 'INFO - vbadvanced or another Portal.txt'.

topoli
02-21-2010, 04:14 AM
In your download, look for the file named 'INFO - vbadvanced or another Portal.txt'.

ok and what changes need to be made in the file?

Digital Jedi
02-22-2010, 01:52 AM
ok and what changes need to be made in the file?
You're supposed to read the file, not make any changes to it. It's an instruction file.

s0lidgr0und
02-23-2010, 11:49 PM
Thanks, DJ.

dodgechargerfan
02-26-2010, 02:18 PM
Doing the changes on the index.php did not work for me but as i am using the VB4 suite i tried putting the changes in the content.php and it seemed to work ok but still testing.

That seems to have done the trick for me too. Thanks.

Does anyone know if it matters that this bit of code is both my content.php AND my index.php?
Because I tried it in index.php first and that fixed the security token issue but didn't fix the score saving issue.
Now it seems both are fixed and I just wonder if I need the code in both places....