Error thrown and Games not updated
-
Hi Mark,
Thank you for your quick email response.
I am using MSTW Bracket Builder Version 1.3 on WordPress v6.1.1 with php version 7.4.
After creating a Tournament and entering information to the games, I get an error after clicking on “Update Games” and an Email sent to me from wordpress reads:
Ein Fehler vom Typ E_ERROR wurde in der Zeile 675 der Datei /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined function mstw_log_msg() in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php:675 Stack trace: #0 /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php(56): MSTW_BB_BRACKET_BUILDER->post(Array) #1 /www/htdocs/v166274/demm-cup/wp-includes/class-wp-hook.php(308): MSTW_BB_BRACKET_BUILDER->edit_bracket_screen('') #2 /www/htdocs/v166274/demm-cup/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #3 /www/htdocs/v166274/demm-cup/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /www/htdocs/v166274/demm-cup/wp-admin/admin.php(259): do_action('bracket-builder...') #5 {main} thrown
The first time it sets the date and time of game one to 1970-01-01 00:00.
Only the contents of the first game are saved, everything else gets removed after updating, even time and date.
The first game is displayed without problem on the webpage, no other games are displayed though.
I went through the code in “mstw-bb-bracket-builder-class.php” a bit and tried changing the “if ( $game_obj )” to “if ( true )” after which it doesn’t throw an error anymore, but alas, it still doesn’t save the contents.
If I understand it correctly, the “OBJECT” parameter in line 669 should be object by default, so isn’t it redundant? PHP Storm shows it as “undefined constant”.
Also, PHP Storm shows mstw_log_msg() to be an undefined function, which seems to be what throws the error. At the same time, the error seems to be unrelated to the issue of it not saving the game information.Let me know if I can provide you with further information and if you do find the source for this bug, I would be very interested to know what it was.
If you happen to check out the site, don’t be thrown by the fact that I inserted logos instead of links for the player names, this has no relevance for the error occurring, it was the same when I just used plain text.
Best regards
Bj?rnThe page I need help with: [log in to see the link]
- The topic ‘Error thrown and Games not updated’ is closed to new replies.