Home › Forums › Calendar Products › Event Aggregator › import failed: import record must be finalized before posts can be inserted
- This topic has 27 replies, 6 voices, and was last updated 9 years, 2 months ago by
Kulwinder.
-
AuthorPosts
-
January 16, 2017 at 9:26 pm #1219431
Kulwinder
ParticipantI 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.
January 17, 2017 at 2:02 pm #1219858Cliff
MemberInteresting. Thanks for reporting back. Sorry for the extra effort required here.
January 21, 2017 at 10:06 pm #1221985Kulwinder
ParticipantI 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
January 21, 2017 at 10:37 pm #1221989Kulwinder
ParticipantAnd, 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.
January 21, 2017 at 10:40 pm #1221990Kulwinder
ParticipantThe 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.
January 22, 2017 at 6:44 pm #1222126Cliff
MemberThis reply is private.
January 27, 2017 at 5:56 am #1225074Nico
MemberHey,
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,
NicoJanuary 27, 2017 at 5:58 pm #1225515Kulwinder
ParticipantI 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.8234579563140869140625January 29, 2017 at 10:09 pm #1226033Kulwinder
ParticipantI 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
984January 30, 2017 at 7:40 am #1226132Nico
MemberThanks 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,
NicoFebruary 9, 2017 at 3:26 pm #1232449George
ParticipantHello!
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!
GeorgeMarch 3, 2017 at 8:35 am #1249060Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘import failed: import record must be finalized before posts can be inserted’ is closed to new replies.
