import failed: import record must be finalized before posts can be inserted

Home Forums Calendar Products Event Aggregator import failed: import record must be finalized before posts can be inserted

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #1219431
    Kulwinder
    Participant

    I deleted all the events in your plugin, and deleted the scheduled 30 minute import.
    The Events preview worked and the old events came in without error.
    Added a new event on meetup.com
    It works now. All events are imported with out error.
    I see three green check marks for the last 1 hour and 30 minutes.
    The “when” column in history is correctly showing the right import run times.

    Thanks for your help so far.

    Next, I will try to re-activate plugins to see if there are any plugin integration issues.

    #1219858
    Cliff
    Member

    Interesting. Thanks for reporting back. Sorry for the extra effort required here.

    #1221985
    Kulwinder
    Participant

    I am seeing this fatal error every 45 minutes. I am running the import every 30 minutes, so suspect 30 minutes actually becomes 45 minutes in your AG plugin:

    [Sat Jan 21 21:54:30.619324 2017] [:error] [pid 1305] [client 104.168.133.87:39906] PHP Fatal error: Uncaught Error: Call to undefined method Tribe__Events__Aggregator__Record__Activity::activity() in /var/www/sleeplateandhike/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Aggregator/Cron.php:391\nStack trace:\n#0 /var/www/sleeplateandhike/public_html/wp-includes/class-wp-hook.php(298): Tribe__Events__Aggregator__Cron->verify_fetching_from_service(”)\n#1 /var/www/sleeplateandhike/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)\n#2 /var/www/sleeplateandhike/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#3 /var/www/sleeplateandhike/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Aggregator/Cron.php(268): do_action(‘tribe_aggregato…’)\n#4 /var/www/sleeplateandhike/public_html/wp-includes/class-wp-hook.php(298): Tribe__Events__Aggregator__Cron->run()\n#5 /var/www/sleeplateandhike/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)\n#6 /var/www/sleeplateandhike/public_html/wp-includes/plugin.php(515): WP_ in /var/www/sleeplateandhike/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Aggregator/Cron.php on line 391, referer: http://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485064464.6964759826660156250000

    #1221989
    Kulwinder
    Participant

    And, I see that the only daily cron job was not deleted, even after I deleted it in the plugin GUI.

    tribe_events_ical-importer_do_scheduled_import [{“domain”:”api.meetup.com”,”key”:1457679805,”url”:”http://api.meetup.com/Sleep-Late-Take-a-Hike-at-1-pm/upcoming.ical”,”location”:””,”radius”:””,”import_category”:””,”start”:”2016-03-11″,”schedule”:”daily”,”initiated”:”03/11/2016″,”keywords”:””,”post_status”:”publish”,”recurring_overwrite”:””}] 2017-01-21 23:03:25 (54 minutes 55 seconds) 1 day Edit | Run Now | Delete

    I deleted 4 of these cron jobs.

    #1221990
    Kulwinder
    Participant

    The website was freezing on a daily basis. So I deleted these 4 old daily cron jobs that did not get deleted in the plugin GUI.

    I will see how it goes tomorrow.

    #1222126
    Cliff
    Member

    This reply is private.

    #1225074
    Nico
    Member

    Hey,

    I’m reaching out to let you know that we just released a fix for this issue (PHP notices in the calendar page). Please update the plugins to version 4.4.1 (4.4.1.1 for The Events Calendar) and let us know if this actually makes the issue right in your site.

    More details on the release → Maintenance Release: The Events Calendar and Event Tickets 4.4.1, plus premium add-ons

    Best,
    Nico

    #1225515
    Kulwinder
    Participant

    I upgraded, deleted all my apache2 logs and restarted.

    I now see this new error in /var/log/appach2/error.log coming from a for loop your cron job:

    [Fri Jan 27 17:10:13.474700 2017] [mpm_prefork:notice] [pid 31427] AH00163: Apache/2.4.7 (Ubuntu) OpenSSL/1.0.1f configured — resuming normal operations
    [Fri Jan 27 17:10:13.474803 2017] [core:notice] [pid 31427] AH00094: Command line: ‘/usr/sbin/apache2’
    [Fri Jan 27 17:30:15.844459 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP Warning: Invalid argument supplied for foreach() in /var/www/sleeplateandhike/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Aggregator/Cron.php on line 400, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844515 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP Stack trace:, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844533 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP 1. {main}() /var/www/sleeplateandhike/public_html/wp-cron.php:0, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844545 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP 2. do_action_ref_array() /var/www/sleeplateandhike/public_html/wp-cron.php:117, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844557 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP 3. WP_Hook->do_action() /var/www/sleeplateandhike/public_html/wp-includes/plugin.php:515, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844568 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP 4. WP_Hook->apply_filters() /var/www/sleeplateandhike/public_html/wp-includes/class-wp-hook.php:323, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844579 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP 5. Tribe__Events__Aggregator__Cron->run() /var/www/sleeplateandhike/public_html/wp-includes/class-wp-hook.php:298, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844589 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP 6. do_action() /var/www/sleeplateandhike/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Aggregator/Cron.php:268, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844600 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP 7. WP_Hook->do_action() /var/www/sleeplateandhike/public_html/wp-includes/plugin.php:453, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844610 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP 8. WP_Hook->apply_filters() /var/www/sleeplateandhike/public_html/wp-includes/class-wp-hook.php:323, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625
    [Fri Jan 27 17:30:15.844621 2017] [:error] [pid 31431] [client 104.168.133.87:54372] PHP 9. Tribe__Events__Aggregator__Cron->verify_fetching_from_service() /var/www/sleeplateandhike/public_html/wp-includes/class-wp-hook.php:298, referer: https://www.sleeplateandhike.com/wp-cron.php?doing_wp_cron=1485567012.8234579563140869140625

    #1226033
    Kulwinder
    Participant

    I am getting 984 of the above messages for every run of AG. All of them in the same second:

    grep -nir “16:02:00” /var/log/apache2/error.log | wc -l
    984

    #1226132
    Nico
    Member

    Thanks for following up Kulwinder,

    Sorry for the confusion here, this thread was linked to two bug reports. One about the PHP notices related to bootstrap (the patch suggested by Cliff is now merged and released), the heads-up I sent was referred to this bug only. Although I mentioned in the message, it wasn’t clear enough (I realize that now) so sorry about that.

    The Event Aggregator bug is still not resolved yet but is scheduled to be in the next weeks. Please patiently await that separate fix.

    Best,
    Nico

    #1232449
    George
    Participant

    Hello!

    I wanted to share the news that we released a Maintenance Release today that should include improved handling of these imports.

    You should be able to see this update in your wp-admin Updates page. You can learn more about the release here: https://theeventscalendar.com/maintenance-release-events-calendar-4-4-2-event-tickets-4-4-2-premium-add-ons/

    Cheers!
    George

    #1249060
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 12 posts - 16 through 27 (of 27 total)
  • The topic ‘import failed: import record must be finalized before posts can be inserted’ is closed to new replies.