• Resolved elexandri

    (@elexandri)


    Hi,

    When I try to update a sportpress entity such as a team or a player, I am redirected to a white page with the error bellow:

    This site can’t be reached. The connection was reset.
    Try:
    Checking the connection
    Checking the proxy and the firewall
    Running Windows Network Diagnostics
    ERR_CONNECTION_RESET

    Generally I get warnings concerning sportpress like the ones bellow in my debugging logs.

    Deprecated: Required parameter $league_id follows optional parameter $id in /var/www/html/promitheas/Kae/wp-content/plugins/sportspress/includes/sp-deprecated-functions.php on line 112

    Deprecated: Required parameter $team_id follows optional parameter $columns in /var/www/html/promitheas/Kae/wp-content/plugins/sportspress/includes/sp-deprecated-functions.php on line 124

    Deprecated: Required parameter $column follows optional parameter $w in /var/www/html/promitheas/Kae/wp-content/plugins/sportspress/includes/class-sp-league-table.php on line 913

    Deprecated: Required parameter $taxonomy follows optional parameter $post_types in /var/www/html/promitheas/Kae/wp-content/plugins/sportspress/includes/admin/class-sp-admin-menus.php on line 271

    My overall actions are:
    – Go to edit a team name.
    – Press Save.
    – Get redirected to the error white page.
    – Go back to edit screen by pressing the browser turn back arrow.
    – It is peculiar that when I go back to the team edit page from turn back arrow, and press save again, the saving process seems to work for the team name.
    – If I try to change something else like the logo, the saving process returns the error white page again.

    Actually in edit screen the url is:
    https://promitheaskae.ergologic.gr/wp-admin/post.php?post=75&action=edit
    but when I press save, it becomes like this one.
    https://promitheaskae.ergologic.gr/wp-admin/post.php

    I use the latest version of php and wordpress and the free version of sportspress, in top club theme.
    In appearance-themes there is a warning
    Your theme has bundled outdated copies of SportsPress template files – if you encounter functionality issues on the frontend this could the reason. Ensure you update or remove them (in general we recommend only bundling the template files you actually need to customize). See the system report for full details.

    In sportspress system status I get this:
    event-blocks.php version 2.6.15 is out of date. The core version is 2.7.3,
    team-gallery-thumbnail.php,
    team-gallery.php,
    team-staff.php

    I am unable to solve this problem. I have tried anything that comes to mind. Any ideas please?

    • This topic was modified 3 years, 1 month ago by elexandri.
    • This topic was modified 3 years, 1 month ago by elexandri.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @elexandri ,

    It seems like you are using php8. If you switch to php7.4 the warnings will stop appearing. The new update will solve those issues as you can see below:
    https://github.com/ThemeBoy/SportsPress/commit/6edd62ff118c969274783111b23f37b63763e9aa
    https://github.com/ThemeBoy/SportsPress/commit/12ab5579a9101cc8ce4fdcf5d41e7f013351a229
    https://github.com/ThemeBoy/SportsPress/commit/56d829540c42573429cd939acd138404bb5bfaff

    About the blank screen now… I am not sure if it is related to the LetsEncrypt expired root certificate issue as described here: https://portswigger.net/daily-swig/lets-encrypt-root-cert-update-catches-out-many-big-name-tech-firms

    It may be relevant also to a max-input-vars limit: https://support.undsgn.com/hc/en-us/articles/213459869-Max-Input-Vars

    Or a theme issue? Try to switch to a default theme like Rookie or TwentyTwenty to check it up.

    Thanks,
    Savvas

    Thread Starter elexandri

    (@elexandri)

    Hi @savvasha. Thanks for the fast reply.
    I will try the updates concerning the deprecated parameters.

    I tried the TwentyTwenty theme, and the error in edit mode persisted.
    Max input vars limit is also in the specified range.

    These warnings also appear.

    In appearance -> themes
    Your theme has bundled outdated copies of SportsPress template files – if you encounter functionality issues on the frontend this could the reason. Ensure you update or remove them (in general we recommend only bundling the template files you actually need to customize). See the system report for full details.

    In System status, template overrides (sportspress)
    In sportspress system status I get this:
    event-blocks.php version 2.6.15 is out of date. The core version is 2.7.3,
    team-gallery-thumbnail.php,
    team-gallery.php,
    team-staff.php`

    When I deactivate and reactivate the plugin I get this warning too in plugins page.
    The plugin generated 657 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    Plugin Contributor Savvas

    (@savvasha)

    It seems like your theme is not using the latest template files of SportsPress. You should contact with the theme developer for an update.

    Try to eliminate all warnings first and then identify what error is producing the blank page.

    You can try also to re-install SportsPress plugin. Maybe there is something missing there.

    Thanks,
    Savvas

    Thread Starter elexandri

    (@elexandri)

    Hi,
    So I asked the theme’s support and they weren’t very helpful.
    They gave me this reply:

    `The theme does not modify or affect the admin area anyhow. Only frontend is changed. It is unlikely that the theme could cause such an issue.
    “Your theme has bundled outdated copies of SportsPress template files…” message can be ignored at this point. It can’t be the reason for your issue since it is related to the frontend. This shouldn’t raise any other issues as well.
    It can be a plugin conflict. You may try to do the following:
    Switch to any default theme and check whether SportSpress posts editing screen works. If it still doesn’t work, start deactivating plugins one by one and check whether SportSpress posts editing screen works after each deactivated plugin. Do not activate the plugins back unless you reached the last one or found the one that caused the issue.`

    Deactivating the plugins and changing theme didn’t fix the problem.

    I think the problem is that the first time that I press save, the url changes from
    https://promitheaskae.ergologic.gr/wp-admin/post.php?post=75&action=edit
    to
    https://promitheaskae.ergologic.gr/wp-admin/post.php.
    The second time I press save after returning to the edit screen, the ulr stays as it was and it should be, and that is why this time it works correctly.
    https://promitheaskae.ergologic.gr/wp-admin/post.php?post=75&action=edit&message=1

    Could this be related to SportsPress plugin, maybe how it uses the permalinks?

    • This reply was modified 3 years, 1 month ago by elexandri.
    Thread Starter elexandri

    (@elexandri)

    Ι forgot to mention, that after reactivating the plugins and change back to the correct theme, I get this error too.

    `FATAL ERROR: UNCAUGHT TYPEERROR: IMPLODE(): ARGUMENT #2 ($ARRAY) MUST BE OF TYPE ?ARRAY, STRING GIVEN IN /VAR/WWW/HTML/PROMITHEAS/KAE/WP-CONTENT/THEMES/TOPCLUB-SP/SPORTSPRESS/EVENT-BLOCKS.PHP:136 STACK TRACE: #0 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-CONTENT/THEMES/TOPCLUB-SP/SPORTSPRESS/EVENT-BLOCKS.PHP(136): IMPLODE() #1 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-CONTENT/PLUGINS/SPORTSPRESS/INCLUDES/SP-CORE-FUNCTIONS.PHP(80): INCLUDE(‘…’) #2 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-CONTENT/PLUGINS/SPORTSPRESS/INCLUDES/WIDGETS/CLASS-SP-WIDGET-EVENT-BLOCKS.PHP(41): SP_GET_TEMPLATE() #3 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-INCLUDES/CLASS-WP-WIDGET.PHP(393): SP_WIDGET_EVENT_BLOCKS->WIDGET() #4 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-INCLUDES/WIDGETS.PHP(831): WP_WIDGET->DISPLAY_CALLBACK() #5 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-CONTENT/THEMES/TOPCLUB-SP/SIDEBAR.PHP(5): DYNAMIC_SIDEBAR() #6 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-INCLUDES/TEMPLATE.PHP(770): REQUIRE_ONCE(‘…’) #7 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-INCLUDES/TEMPLATE.PHP(716): LOAD_TEMPLATE() #8 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-INCLUDES/GENERAL-TEMPLATE.PHP(136): LOCATE_TEMPLATE() #9 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-CONTENT/THEMES/TOPCLUB-SP/PAGE.PHP(41): GET_SIDEBAR() #10 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-INCLUDES/TEMPLATE-LOADER.PHP(106): INCLUDE(‘…’) #11 /VAR/WWW/HTML/PROMITHEAS/KAE/WP-BLOG-HEADER.PHP(19): REQUIRE_ONCE(‘…’) #12 /VAR/WWW/HTML/PROMITHEAS/KAE/INDEX.PHP(17): REQUIRE(‘…’) #13 {MAIN} THROWN IN /VAR/WWW/HTML/PROMITHEAS/KAE/WP-CONTENT/THEMES/TOPCLUB-SP/SPORTSPRESS/EVENT-BLOCKS.PHP ON LINE 136
    THERE HAS BEEN A CRITICAL ERROR ON THIS WEBSITE.`

    Thread Starter elexandri

    (@elexandri)

    Never mind the last post.
    I restored a backup of the site, and the FATAL ERROR: UNCAUGHT TYPEERROR
    disappeared.

    Plugin Contributor Savvas

    (@savvasha)

    Φ?λε @elexandri δοκ?μασε να απενεργοποι?σει? ?λα τα Plugins εκτ?? απ? το SportsPress και χρησιμοπο?ησε κ?ποιο “καθαρ?” theme ?πω? το Rookie ? το TwentyTwenty. Ξαναδοκ?μασε να κ?νει? edit ?τι και πριν να δο?με αν θα σου βγ?λει το ?διο πρ?βλημα.

    Πρ?πει να εντοπιστε? η “πηγ?” του προβλ?ματο? για να μπορ?σουμε να βρο?με μια λ?ση. Μην δοκιμ?ζει? πολλ? πρ?γματα ταυτ?χρονα γιατ? δεν πρ?κειται να βγ?λουμε ?κρη. ??

    Thanks,
    Savvas

    Thread Starter elexandri

    (@elexandri)

    Hi,

    I did that. It didn’t work.
    This is the problem.

    `The first time that I press save, the url changes from
    https://promitheaskae.ergologic.gr/wp-admin/post.php?post=75&action=edit
    to
    https://promitheaskae.ergologic.gr/wp-admin/post.php.
    The second time I press save after returning to the edit screen, the ulr stays as it was and it should be, and that is why this time it works correctly.
    https://promitheaskae.ergologic.gr/wp-admin/post.php?post=75&action=edit&message=1`

    I am tracing the steps that the code goes through after pressing the Update button, both in wordpress php files and js files.

    Roch

    (@rochesterj)

    Hi there!

    Thanks for your reply.

    It looks like you are using a custom theme and quite a few plugins though.

    Can you please leave them disabled?

    Use only SportsPress + a default theme (rookie or Twenty Twenty), and let’s see how it works.

    Thanks.

    Thread Starter elexandri

    (@elexandri)

    Hi..

    The problem was with checkpoint on the hosting server.
    For some reason the first redirect after updating the team, was treated as an
    sql injection.

    Roch

    (@rochesterj)

    I’m glad it’s resolved!

    Let us know if you need anything else.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error storing a Team, an Athlete or any sportpress entity. Gets white page.’ is closed to new replies.