Daily Lucky Numbers:
16
22
24
33
47
49

New errors, some with 2.6.9 and some with previous version 2.6.7

Started by Dave, July 30, 2022, 08:39:36 AM

Previous topic - Next topic

Dave

Hi Chen

SMF2.1.2
PHP8.0 *
Using SMF default theme.

For some reason I get these errors in the server log, some of them are following an attempt by the Arcade to write a score for a game, the more recent ones are from uploading a game.

If I revert to 2.6.7 it works OK and the game scores are saved with no errors, but I cannot upload games, I get the error as in the last code box.

UPDATE: * I have reverted the site back to PHP7.4 re-installed 2.6.9 and all the errors stop.


Stack trace:
#0 /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php(3785): abs('516M')
#1 /******/quizland/public_html/Sources/ManageGames.php(848): arcade_return_bytes('516M')
#2 /******/quizland/public_html/Sources/ManageGames.php(80): ManageGamesUpload()
#3 /******/quizland/public_html/Sources/Admin.php(501): ManageGames()
#4 /******/quizland/public_html/index.php(191): AdminMain()
#5 {main}
  thrown in /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php on line 3785
[30-Jul-2022 12:50:13 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php:3785
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php(3785): abs('516M')
#1 /******/quizland/public_html/Sources/ManageGames.php(848): arcade_return_bytes('516M')
#2 /******/quizland/public_html/Sources/ManageGames.php(80): ManageGamesUpload()
#3 /******/quizland/public_html/Sources/Admin.php(501): ManageGames()
#4 /******/quizland/public_html/index.php(191): AdminMain()
#5 {main}
  thrown in /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php on line 3785
[30-Jul-2022 12:50:27 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php:3785
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php(3785): abs('516M')
#1 /******/quizland/public_html/Sources/ManageGames.php(848): arcade_return_bytes('516M')
#2 /******/quizland/public_html/Sources/ManageGames.php(80): ManageGamesUpload()
#3 /******/quizland/public_html/Sources/Admin.php(501): ManageGames()
#4 /******/quizland/public_html/index.php(191): AdminMain()
#5 {main}
  thrown in /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php on line 3785
[30-Jul-2022 12:50:54 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php:3785
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php(3785): abs('516M')
#1 /******/quizland/public_html/Sources/ManageGames.php(848): arcade_return_bytes('516M')
#2 /******/quizland/public_html/Sources/ManageGames.php(80): ManageGamesUpload()
#3 /******/quizland/public_html/Sources/Admin.php(501): ManageGames()
#4 /******/quizland/public_html/index.php(191): AdminMain()
#5 {main}
  thrown in /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php on line 3785
[30-Jul-2022 12:55:09 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php:3785
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php(3785): abs('516M')
#1 /******/quizland/public_html/Sources/ManageGames.php(848): arcade_return_bytes('516M')
#2 /******/quizland/public_html/Sources/ManageGames.php(80): ManageGamesUpload()
#3 /******/quizland/public_html/Sources/Admin.php(501): ManageGames()
#4 /******/quizland/public_html/index.php(191): AdminMain()
#5 {main}
  thrown in /******/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php on line 3785
[30-Jul-2022 13:04:52 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/ArcadeGame.php:1026
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/ArcadeGame.php(1026): abs('')
#1 /******/quizland/public_html/Sources/Arcade.php(611): ArcadeHighscore()
#2 /******/quizland/public_html/index.php(191): Arcade()
#3 {main}
  thrown in /******/quizland/public_html/ArcadeSources/ArcadeGame.php on line 1026
[30-Jul-2022 13:13:25 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/ArcadeGame.php:1026
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/ArcadeGame.php(1026): abs('')
#1 /******/quizland/public_html/Sources/Arcade.php(611): ArcadeHighscore()
#2 /******/quizland/public_html/index.php(191): Arcade()
#3 {main}
  thrown in /******/quizland/public_html/ArcadeSources/ArcadeGame.php on line 1026
[30-Jul-2022 13:15:34 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/ArcadeGame.php:1026
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/ArcadeGame.php(1026): abs('')
#1 /******/quizland/public_html/Sources/Arcade.php(611): ArcadeHighscore()
#2 /******/quizland/public_html/index.php(191): Arcade()
#3 {main}
  thrown in /******/quizland/public_html/ArcadeSources/ArcadeGame.php on line 1026
[30-Jul-2022 13:15:56 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/ArcadeGame.php:1026
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/ArcadeGame.php(1026): abs('')
#1 /******/quizland/public_html/Sources/Arcade.php(611): ArcadeHighscore()
#2 /******/quizland/public_html/index.php(191): Arcade()
#3 {main}
  thrown in /******/quizland/public_html/ArcadeSources/ArcadeGame.php on line 1026
[30-Jul-2022 13:17:35 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/ArcadeGame.php:1026
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/ArcadeGame.php(1026): abs('')
#1 /******/quizland/public_html/Sources/Arcade.php(611): ArcadeHighscore()
#2 /******/quizland/public_html/index.php(191): Arcade()
#3 {main}
  thrown in /******/quizland/public_html/ArcadeSources/ArcadeGame.php on line 1026
[30-Jul-2022 13:24:05 Europe/London] PHP Fatal error:  Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /******/quizland/public_html/ArcadeSources/ArcadeGame.php:1026
Stack trace:
#0 /******/quizland/public_html/ArcadeSources/ArcadeGame.php(1026): abs('')
#1 /******/quizland/public_html/Sources/Arcade.php(611): ArcadeHighscore()
#2 /******/quizland/public_html/index.php(191): Arcade()
#3 {main}
  thrown in /******/quizland/public_html/ArcadeSources/ArcadeGame.php on line 1026

Stack trace:
#0 /home1/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php(3785): abs('516M')
#1 /home1/quizland/public_html/Sources/ManageGames.php(848): arcade_return_bytes('516M')
#2 /home1/quizland/public_html/Sources/ManageGames.php(80): ManageGamesUpload()
#3 /home1/quizland/public_html/Sources/Admin.php(501): ManageGames()
#4 /home1/quizland/public_html/index.php(191): AdminMain()
#5 {main}
  thrown in /home1/quizland/public_html/ArcadeSources/Subs-ArcadeAdmin.php on line 3785

The site gets 'HTTP ERROR 500' with the above upload attempt.


Chen Zhen


I just updated the Arcade a few days ago.
When you were using PHP 8.0 did you have Arcade 2.6.9 installed or were you still using Arcade 2.6.8 ??

Now that you have version 2.6.9 installed, attempt to use PHP 8.0 again & let me know if it still throws errors.

Chen Zhen

#2
Uninstall Arcade 2.6.9 & delete it.
Install the attachment (Arcade 2.6.9.1), change your forum back to PHP 8.0+ & let me know if it functions properly.

Thanks.

Note: The attachment was removed. Please download the Arcade from the download section for these changes.

Dave

Thank you Chen

Did as you said. Installed 2.6.9.1 and then uploaded games in PHP7.4 and ran OK.

Upgraded to PHP8.0 and installed another game and playing all OK no errors at all.