![]() |
Get rid of "Notice" messages after changing index.php
After altering index.php to enable scores to be saved, we had an issue with 'notice' messages appearing at the top of the index.php page.
From what i can make out, this is just a warning that variables havent been set or don't exist. The reason some sites get it and others dont, is that you can turn this off in php.ini if you have access. I didn't really want to mess about with the .ini file, so I've set a few checks in the script for index.php. Works for us, hope it works for you too. This is replacement code for the code in the "INFO - vbadvanced or another Portal.txt" document PHP Code:
|
Well this helped quite a bit. I am getting this same situation.
Once I put your code in place only one "Notice: Undefined variable:" remained. It is the one referencing this line. Code:
if($act == "Arcade" || $autocom=="arcade") { Any ideas about that one line? Thank you for your efforts! |
Quote:
I cant replicate that error on our test system, but changing the line to PHP Code:
(I'm not sure if php processes the whole conditional (in which case it might fail) or if it just process the first part (in which case it should work). Alternatively changing the 3 if statement before PHP Code:
PHP Code:
|
Quote:
Quote:
What is interesting is that the error messages have disappeared and I don't get the security token error...but... the only games on my arcade that save their score are the ones that come with the mod. Every other game I have loaded... 52 at the moment... will play and seem to work, but when you finish the game and submit the score, the screen just stays blank and the screen never changes. I will investigate this new issue and see what I can find. But again... thank you very much for your work. :up: |
Quote:
I'll amend the first script with the changes that worked. :up: |
All times are GMT. The time now is 10:28 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:
|