theyosh
Forum Replies Created
-
Forum: Plugins
In reply to: [Social Media Feather | social media sharing] Cookies from sharethisHow do I downgrade? I don’t like ShareThis. I don’t want to be there poduct So either make it optional, or provide a downgrade version without sharethis.
- This reply was modified 9 years, 4 months ago by theyosh.
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Feed importer does not import/stuck?Benjamin,
I don’t understand. According to: http://time.ly/document/user-guide/troubleshooting/first-troubleshooting-step/ The calendar IS working! So please explain what you mean I cannot import events.
Check:
https://groningen.piratenpartij.nl/kalender/ Here you see the calendar that needs to be imported.The destination calendar:
https://piratenpartij.nl/kalender/ is also working.The feed of Groningen ( https://groningen.piratenpartij.nl/?plugin=all-in-one-event-calendar&controller=ai1ec_exporter_controller&action=export_events) does give me an iCal file. So that is also working…
Second, I cannot shutdown plugins on a live site. So that is not an option. Also if I have to wait for the cron job to work, I will have to shutdown my site for a maximum of 12 hours! Which is not possible at all!
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Feed importer does not import/stuck?ai1ec_cron runs twice a day. Next run is at 14.09.2016 04:08:36
So that looks good. And I guess that is has been running all the time. This is not the problem I guess.
Whats next? I still have the idea that it has to do with our account for the API.
Update…. wrong conclusion from my side.
The problem is that calendar items can have an exclude date option. I had an item, that had a date excluded, and somehow that gave problems.
all-in-one-event-calendar/lib/import-export/ics.php line 1100:
$exception_dates = $event->get( 'exception_dates' ); $exception_dates = $this->_filter_rule( $exception_dates ); if ( ! empty( $exception_dates ) ) { $params = array( 'VALUE' => 'DATE-TIME', 'TZID' => $tz, ); $dt_suffix = $event->get( 'start' )->format( '\THis' ); foreach ( explode( ',', $exception_dates ) as $exdate ) { // date-time string in EXDATES is formatted as 'Ymd\THis\Z', that // means - in UTC timezone, thus we use <code>format_to_gmt</code> here. $exdate = $this->_registry->get( 'date.time', $exdate ) ->format_to_gmt( 'Ymd' ); $e->setProperty( 'exdate', array( $exdate . $dt_suffix ), $params ); } }The variable $exception_dates was not empty, but had a wrong value. After removing the excluded date, it is working again!
So I think there is a bug in the part that handles the excluded dates from a repeated item.
Ok, problem is still there. Turns out, that the export module will not export more than 15 items. If you have more calendar items, it will crash!
Where is the code that limit this? The exports that are working, have less then 15 items. The one that is not working, has more then 15 items.
So when the 16th item is added to the calendar, it crashed without any notification.
The error code is:
all-in-one-event-calendar/lib/import-export/ics.php line 81foreach ( $arguments['events'] as $event ) { $c = $this->_insert_event_in_calendar( $event, $c, true, $params ); }When here the 16th item is added, it all crashes and stops working.
Where is this limit and how to fix it.
@dunedincoss: I quess this is also your problem. As I see you have a lot of calendar items.
Thanks, that was pretty obvious … Maybe I should think first before asking 🙂
But it did not help me. I will add some extra information which makes the case even more strange.
I have the same calender code on multiple websites with the multi site setup. All the calender can be exported except one. So now I get the feeling, that there is a strange DB issues somewhere.
Here are three calendars, which are all running on the same WP and plugin version:
https://piratenpartij.nl/kalender/
https://amsterdam.piratenpartij.nl/kalender/
https://groningen.piratenpartij.nl/kalender/For all calendars, the import from external source is working. And the only the first calendar does not export the data. And that is the only problem left.
The first url has problem with the export options. The other two below are working fine.
So could this be caused by the database? Maybe a WordPress option setting?
I do not get any errors. It just looks like it can’t find any data.