Daily Lucky Numbers:
9
14
19
31
34
40

Arcade throwing same error suddenly

Started by Grammy, February 27, 2025, 02:24:41 PM

Previous topic - Next topic

Grammy

2.1.4 default, the error is "Undefined index: arcade_shout_session"

The file involved is ArcadeSkinC.template.php, line 274




var str = "' . $_SESSION['arcade_shout_session'] . '";

and line 307



var str = "' . $_SESSION['arcade_shout_session'] . '";

I would appreciate any help.  Thank you.

Grammy

Not to bump, but just adding that when I simply added
$txt['arcade_shout_session'] = 'Arcade Shout Session';to the ArcadeSkinC.english.php file, members who claimed they couldn't see the arcade can now see it and play on it.  That just sounds weird to me.  Why should that error have stopped them from even seeing the arcade?  Oh well...  I'm going to leave this "unsolved" until you guys weigh in, in case something else on my part should have been done.  Thank you.

Chen Zhen

#2
Thank you for the report.
The undefined error was a known issue & is already fixed for the upcoming release.

You can change that line you reported to this:
var str = "' . (!empty($_SESSION['arcade_shout_session']) ? $_SESSION['arcade_shout_session'] : substr(uniqid('invalid_', true), -5)) . '";



Quote from: Grammy on February 27, 2025, 02:51:23 PMNot to bump, but just adding that when I simply added
$txt['arcade_shout_session'] = 'Arcade Shout Session';to the ArcadeSkinC.english.php file, members who claimed they couldn't see the arcade can now see it and play on it.  That just sounds weird to me.  Why should that error have stopped them from even seeing the arcade?  Oh well...  I'm going to leave this "unsolved" until you guys weigh in, in case something else on my part should have been done.  Thank you.

That won't do anything because you're mixing the $_SESSION array with the $txt array & that $txt key doesn't exist in the Arcade & won't have any effect.


Grammy

Quote from: Chen Zhen on February 27, 2025, 03:31:31 PMThat won't do anything because you're mixing the $_SESSION array with the $txt array & that $txt key doesn't exist in the Arcade & won't have any effect.



Oh, I see!  (Well, I don't actually, but that's why you build arcades and I only enjoy them.)   :)

Thank you so much!