• Resolved jlgallego

    (@jlgallego)


    Hello,

    It seems that the plugin fails trying to format the event date taken from Facebook. I got the following error:

    Fatal error: Call to a member function format() on boolean in /opt/lampp/apps/wordpress/htdocs/wp-content/plugins/eme-sync-facebook-events/eme-sync-facebook-events.php on line 143

    It says sync process ended correctly but it is not true.

    To give some clues I’m located in Spain, I use facebook in spanish. My WordPress language is Spanish and Time Zone is Madrid (UTC+2 now).

    This is the event I’m trying to get, from Facebook API Explorer:

    {
    “description”: “Evento prueba facebook 2”,
    “is_date_only”: true,
    “name”: “Evento prueba facebook 2”,
    “owner”: {
    “category”: “Attractions/things to do”,
    “category_list”: [
    {
    “id”: “192661127431931”,
    “name”: “Wine Bar”
    },
    {
    “id”: “193705277324704”,
    “name”: “Event Planning”
    }
    ],
    “name”: “Baconia-Test”,
    “id”: “334398830066975”
    },
    “privacy”: “OPEN”,
    “start_time”: “2015-05-29”,
    “updated_time”: “2015-05-17T00:44:10+0000”,
    “id”: “1091825884167306”
    }

    Any Ideas?

    Regards,
    José.

    https://www.ads-software.com/plugins/eme-sync-facebook-events/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jlgallego

    (@jlgallego)

    Hello again,

    I just figured out the problem. This happens when the facebook event has no time specified. I would suggest adding some validation to cope with this scenario.

    For now, a workaround can be not forgetting to specify a start time for any event.

    Best regards,
    José.

    Plugin Author Franky

    (@liedekef)

    Is this then an all-day event? Because I have no right to look at that event …

    Thread Starter jlgallego

    (@jlgallego)

    Well, it wasn’t intended to be an all-day event. I just forgot to specify the start time. But you’re right because the method to publish an all-day event in Facebook is setting a date but no time. In that case the plugin will fail to import such event.

    The event is public… It’s funny you can’t see it. https://www.facebook.com/events/1091825884167306/

    Plugin Author Franky

    (@liedekef)

    Ok, I can see it now (weird …)
    Anyway, the next version will take all-day events into account.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error after sync single event’ is closed to new replies.