• Resolved WebDragon

    (@webdragon)


    [07-Sep-2022 12:13:38 UTC] PHP Fatal error:  Uncaught Error: Call to a member function is_main_query() on null in /home/customer/www/REDACTED/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php:50
    Stack trace:
    #0 /home/customer/www/REDACTED/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(820): Tribe__Context::{closure}()
    #1 /home/customer/www/REDACTED/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(386): Tribe__Context->func(Array, false)
    #2 /home/customer/www/REDACTED/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(1524): Tribe__Context->get('is_main_query', false)
    #3 /home/customer/www/REDACTED/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Query.php(35): Tribe__Context->is('is_main_query')
    #4 /home/customer/www/REDACTED/public_html/wp-includes/class-wp-hook.php(307): Tribe__Events__Query::parse_query(Object(WP_Query))
    #5 /home/customer/www/REDACTED/public_html/wp-includes/class-wp-hook.php(331): WP in /home/customer/www/REDACTED/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php on line 50

    I get to the screen that says preview in progress, 32 remaining, 0 complete. and no matter how long I wait or refresh, nothing happens. Except multiple repeats of the above message in the php error log

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi @webdragon,

    I am so sorry you have encountered this problem; I want to make sure this doesn’t happen anymore.

    First, can you make sure you are on version 6.0.0.1?

    Also, it’s important to know that there was a lot of deprecated code in this release, so third party or even our own extensions might be the culprit of the problem, so I am going to ask you two to look at the article below for testing for conflicts:

    https://evnt.is/kb-conflicts

    Also, would you mind looking for a log of what the problem might be? I want to dig more into this.

    How to turn on Debugging to see the error logs:

    Debugging in WordPress

    Also, if you are running into problems, please revert to the old version while we figure out the culprit.

    Thanks so much!

    Thread Starter WebDragon

    (@webdragon)

    we are already on 6.0.0.1

    oddly, and I don’t know why, but the job seems to have finished on its own somehow and now reports preview complete but there were some errors

    the debug log shows those errors as

    [08-Sep-2022 00:17:23 UTC] tribe-canonical-line channel=default level=error source="The 169199 is greater than the duration of the event" method="TEC\Events\Custom_Tables\V1\Models\Builder::upsert" line=307 model="TEC\Events\Custom_Tables\V1\Models\Event"
    [08-Sep-2022 00:17:23 UTC] tribe-canonical-line channel=default level=error source="The 169199 is greater than the duration of the event" method="TEC\Events\Custom_Tables\V1\Models\Builder::upsert" line=307 model="TEC\Events\Custom_Tables\V1\Models\Event"
    [08-Sep-2022 00:17:24 UTC] tribe-canonical-line channel=default level=error source="The 115200 is greater than the duration of the event" method="TEC\Events\Custom_Tables\V1\Models\Builder::upsert" line=307 model="TEC\Events\Custom_Tables\V1\Models\Event"
    [08-Sep-2022 00:17:24 UTC] tribe-canonical-line channel=default level=error source="The 115200 is greater than the duration of the event" method="TEC\Events\Custom_Tables\V1\Models\Builder::upsert" line=307 model="TEC\Events\Custom_Tables\V1\Models\Event"
    Plugin Support Abz

    (@abzlevelup)

    Hi @webdragon, sorry to hear. Other users resolved some of the issues they are having by following the troubleshooting steps in our Knowledgebase. It would be good if you could check and see if that’s also the case for you which fixes the issue. https://theeventscalendar.com/knowledgebase/k/migrating/#Troubleshooting

    If things do not still work on your end and ran into problems, it would be good if you could revert to the last working version while we figure this one out.

    Thanks and apologies for the inconvinience.

    Best,
    Abz

    Thread Starter WebDragon

    (@webdragon)

    after re-saving the two errored events, and re-running the preview, it’s still hung a day later, with only the following in the debug log, if this helps any

    [09-Sep-2022 02:18:44 UTC] tribe-canonical-line channel=default level=debug source="TEC\Events\Custom_Tables\V1\Migration\Ajax TEC\Events\Custom_Tables\V1\Migration\Ajax::start_migration 475" dry_run=true
    [09-Sep-2022 02:18:44 UTC] tribe-canonical-line channel=default level=debug source="TEC\Events\Custom_Tables\V1\Migration\State TEC\Events\Custom_Tables\V1\Migration\State::save 347" phase="{\"complete_timestamp\":1662596245,\"phase\":\"preview-in-progress\",\"preview_unsupported\":false,\"started_timestamp\":1662689924,\"migration\":{\"estimated_time_in_seconds\":0.1562893390655517578125}}"

    I can try and revert back to 6.0.0.0 if you think it wise. I don’t know what the “last working version” would be in this case because I’ve never tried doing any migration preview before.

    Thread Starter WebDragon

    (@webdragon)

    not sure if related but I noticed a conflict between your plugin (6.0.0.1) and the wp google map pro plugin (v5.2.9) from here https://www.wpmapspro.com/ that I resolved by using their settings manager to prevent that plugin’s meta box from appearing during event add/editing .

    Plugin Support Abz

    (@abzlevelup)

    Hi @webdragon,

    I can try and revert back to 6.0.0.0 if you think it wise. I don’t know what the “last working version”…

    I see thanks for confirming, appreciate you sharing the logs here as well. v6.0.0.1 should be fine. Thanks for retrying the migration here as well.

    Could you try using PHP8.0 and retry the migration? One of our users having a similar issue resolved it by downgrading/upgrading to PHP8.0. See if that makes a difference.

    not sure if related but I noticed a conflict between your plugin (6.0.0.1) and the wp google map pro plugin (v5.2.9)…

    I appreciate you sharing this, and bringing this to our attention. I’d definitely take note of this if there are other users having issues with the Gmap Pro plugin.

    Thanks for your patience here. Let me know how it goes.

    Best,
    Abz

    Thread Starter WebDragon

    (@webdragon)

    so as it turns out, the WP Google Maps Pro (now WP Maps Pro) plugin had not had is license transferred to the new ownership and was not being updated and a new license corrected the issue we were seeing there, so you can safely ignore that as a potential point of cross compatibility issue

    Plugin Support Abz

    (@abzlevelup)

    Hi @webdragon, thanks for following up here. Appreciate you confirming and sharing the findings further in this thread.

    Were you able to upgrade/downgrade to PHP 8.0, and retry running the migration?

    Best,
    Abz

    Thread Starter WebDragon

    (@webdragon)

    currently the server we are on is at Siteground and the managed php version for that server is PHP 7.4.30 = i.e. if I switch it, basically then becomes an unmanaged version until such time as I notice they’ve upped their managed version to one equivalent to my settings and switch it back manually to managed versioning again.

    I know the php support for 7.4.x ends in two months, and don’t know why siteground is holding off, but ˉ\_(ツ)_/ˉ

    Plugin Support Abz

    (@abzlevelup)

    Hi @webdragon, we’re so sorry to hear that you are experiencing issues with migrating. For what it’s worth, we are working on improving the migration process, and we will be releasing an update soon.

    For now, I’d recommend you downgrade your plugins to the previous versions — not until you could retry the migration on your current server. This issue has been reported to the development team, but we don’t currently have an ETA on when it will be fixed.

    Here’s an article to help you with downgrading the plugins: Accessing and Installing Older Plugin Versions. https://theeventscalendar.com/knowledgebase/k/accessing-older-plugin-versions/

    Apologies for the inconvenience, and I hope this temporary workaround helps.

    Best,
    Abz

    Plugin Support Abz

    (@abzlevelup)

    Hey @webdragon, this thread has been inactive for a while, so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

    Cheers,
    Abz

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Migration preview fails to start’ is closed to new replies.