• 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?rn

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mark O’Donnell

    (@markodonnell)

    Hi Bjorn,
    Thank you for the detailed information. It is very helpful. I believe the referenced error has been patched in version 1.3. If you deactivate and delete it, then re-install it from www.remarpro.com that error should be fixed.

    As far as the problem with saving/updated games, it could be separate or it could be related. It’s hard to say without further debugging. (It was not occurring when I released version 1.3.) Your data will still be there, but I suggest you start with a clean tournament, who knows what may have been messed up by the error. If it continues, let me know and I will load a clean test environment and dig in deeper.

    -Mark

    Thread Starter dadah83

    (@dadah83)

    Hi Mark,

    Thank you so much again for the quick response and bugfix! The error is now gone, which is great, because now the debug.log shows some information:

    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 1 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 2 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 3 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 4 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 5 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 6 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 7 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 8 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 9 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 10 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 11 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 12 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 13 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:02 UTC] PHP Notice:  Undefined offset: 14 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-2
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-3
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-4
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-5
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-6
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-7
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-8
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-9
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-10
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-11
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-12
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-13
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-14
    [10-Dec-2022 23:05:29 UTC] Error: can't find game demm-cup-2023-15
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 1 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 2 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 3 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 4 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 5 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 6 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 7 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 8 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 9 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 10 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 11 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 12 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 13 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254
    [10-Dec-2022 23:05:29 UTC] PHP Notice:  Undefined offset: 14 in /www/htdocs/v166274/demm-cup/wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php on line 254

    So it seems it looks for the “gamename plus incremented integer” as the name instead of the name itself, which explains why it is not able to find the tournament and update it.

    Let me know if you need more information, I’ll more than happily provide it!

    Best regards
    Bj?rn

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Hey Bjorn,
    Thanks for the detailed info. Just so that I chase the right ghost, the problem is you can create a tournament, but then when you try to save games that you added, you get these errors. If that’s not correct, please advise me on what exactly the issue is.

    On a related note, I’m a bit concerned about the integrity of the code. You previously mentioned that you did something to show team logos instead of names, or something like that. So is the code that you are reporting on the exact code that you downloaded from www.remarpro.com, or are there other modifications in it?

    Please let me know (on both issues).

    Thanks,
    -Mark

    Thread Starter dadah83

    (@dadah83)

    Hi Mark,

    the code is unchanged, I just used a link to a logo as name, but it doesn’t change the issue if I use a “normal” name (simple string) instead.

    No, there are no more errors shown. I can create a tournament and when I edit it, only the first game is saved, all the other games revert to blank as soon as I click on “Update Games”. The information shown at the top is “1 games updated.”

    Thank you
    Bj?rn

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Okay, I just re-tested this. Could not generate these errors. Here’s the edit tournament screen and the resulting shortcode output.

    I also checked out a 5 round tourney I built for 1.3 testing. Here’s the Edit Tourney Screen, the bracket shortcode output, and the table shortcode output.

    Everything looks okay on my end. So my guess is our environment’s differ somehow. The problem is generally PHP or WordPress versions (we seem okay here based on the info you provided) or conflicts with the theme (usually that is front end/shortcode display issues) Based on the debug.log you sent, or conflicts between plugins. In your case, it could be inconsistencies between code versions. So I suggest:

    1. Load version 1.3 straight up, removing any and all code changes you may have made. Delete the previous version, then load and activate the new version from www.remarpro.com.

    2. Deactivate ALL other plugins. Re-test. If there’s no problem, re-activate the plugins one by one until you find the culprit. Then we can see what’s up. It’s usually not hard to resolve the issue once it’s identified.

    Viel Gluck. Bitte lassen sie es mich wissen.

    -Mark

    Thread Starter dadah83

    (@dadah83)

    Hey Mark,

    that is unfortunate. But it must be an issue on my end, I agree.

    I will try removing everything and reinstalling. There are no other plugins at the moment, it is a very lean wordpress installation.

    I will do the necessary steps tomorrow and let you know what I can find out.

    -Bj?rn

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Okay. Let me know. It could also be that the DB is somehow munged up. That would be a bit of a surprise to me, but the data is not removed when you delete the plugin, so re-installing won’t fix a data problem.

    Another option is to try the premium version. This is not a sales pitch, but I believe it to be a more stable product (it gets a lot more attention) and certainly a much more feature rich product. If you have the same issue(s), something is definitely up on your end.

    -Mark

    Thread Starter dadah83

    (@dadah83)

    Hi Mark,

    okay, so I found some time to mess around with it. First I did a clean install of wordpress and the plugin in a fresh folder on my webspace with a new db and here it worked great, no issues. So, yeah, probably something on my end.

    Then I created a backup of the sites created on the original page and did a completely clean install with new db here as well. I added the theme we had used (‘highlight’) and now, whenever I click “update Games”, it swaps teams to different games and sometimes duplicates them as well. (Note that I haven’t done anything else in this installation) I don’t get any error messages and nothing is shown in the wordpress debug, so I can’t even give you more information unfortunately. Clearly there is a conflict between your plugin and the installed theme, but I have way too little clue about the inner workings of wordpress to even have an idea about where that conflict might lie. But at the moment I’m not confident the same conflict might not also arise with the premium version since it’s a conflict with another software.

    Just for fun I also installed the ‘highlight’ theme on my other wordpress installation and here the Bracket Builder plugin still works without issues. This is really confusing to me, because there shouldn’t be any difference between the two installations at this point. And apparantly there also isn’t a conflict between the theme and the plugin.

    Welp, I’m officially out of ideas. I’d like to thank you for your very quick responses and all of your help. If you have any idea that could help resolve this I’d be thankful, of course, but I also understand if you consider this issue resolved on your end now. I will think about buying the premium version, still cautious though, since my wp seems to be irredeemably broken, even beyond complete fresh new install. (which shouldn’t be possible)

    Idk. Sorry for taking up so much of your time.

    Best wishes
    Bj?rn

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Hi Bjorn,
    I’m sorry you are having such difficulty. But wow, great job!!

    If I understand what you did in paragraph 1, it’s pretty clearly not a plugin problem. (I’m glad to hear that at least.)

    I’m not quite sure about para #2 but my question about #1 and #3 relative to #2 is:

    If I understand correctly, you had no other plugins installed in paras #1 and #3, correct?
    It also appears you may have other plugins active (not too concerned about installed) in #2. If so, have you deactivated all the other plugins and tried with just MSTW Bracket Builder??

    It would make the most sense to me if there’s a plugin collision somewhere, not a theme collision.

    Otherwise, I can’t think of anything else it would be. But clearly something is not right. I agree that the premium version is unlikely to help at this point.

    Don’t worry about my time. No problem. There is something important to learn about WordPress with every new “puzzler”. I’m sure there will be when you figure this out too.

    Regards,
    -Mark

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error thrown and Games not updated’ is closed to new replies.