Daily Lucky Numbers:
1
12
18
28
33
35

Undefined index: action

Started by Shades, December 22, 2022, 02:44:20 PM

Previous topic - Next topic

Shades

SMF 2.1.3
SMF Arcade 2.6.9.4

Haven't been over here in a while, everything seemed to be fine before but just noticed some errors after submitting scores. The scores do get recorded but with errors in admin:

QuoteError
Type of error
Undefined_vars
Error message
8: Undefined index: action
File
/home/******/public_html/******/Sources/Load.php
Line
2402
URL of page causing the error
https://******.com/?arcade.php

Backtrace information
#0: smf_error_handler()
Called from /home/******/public_html/******/Sources/Load.php on line 2402
#1: loadTheme()
Called from /home/******/public_html/******/index.php on line 242
#2: smf_main()
Called from /home/******/public_html/******/index.php on line 192
#3: require_once()
Called from /home/******/public_html/******/arcade.php on line 32
ShadesWeb.com - Custom Logos & SMF Themes
BikerHound.com - Motorcycle Events

Chen Zhen


I realize most recent mods don't edit files but can you attach a copy of your Load.php file?
Various JS/AS game save subs trigger that arcade.php file but the error seems to be an undefined array index named action.
arcade.php defines $_POST['action'] but doesn't attempt to access a null array index.
IMO the error is likely stemming from ../Sources/Load.php

Shades

#2
Yes here it is and thanks! 8)
ShadesWeb.com - Custom Logos & SMF Themes
BikerHound.com - Motorcycle Events

Chen Zhen


This error stems from a mod you have named Childboards Dropdown by Labradoodle.
That mod author neglected to check if $_GET['action'] was empty prior to using that array index.

This error is not really directly related to the Arcade, however I can attempt to define $_GET['action'] in arcade.php in an attempt to stop the error.

Download the attachment & use it to replace the same file in your main forum path.
Clear your error log afterward, play some games & let me know if the errors cease.

Shades

I believe that fixed me problem! Thank you! 8)
ShadesWeb.com - Custom Logos & SMF Themes
BikerHound.com - Motorcycle Events