• Resolved lbaitis

    (@lbaitis)


    I’m experiencing a frustrating issue with this plugin. I have a wordpress site that I test locally on my MacBook Pro before making changes to the live site. I first installed Simple Calendar – Google Calendar locally and had no issues. After I installed the plugin to the live site I created the same calendar as I had locally, but I had a major error thrown. I’ve narrowed it down to being caused by a different date format under Calendar Settings -> Events -> Calendar Start. I am setting a specific start date. I cannot manually enter the start date, I must select the date from the pop up calendar which then enters the date into the input box.

    The format from my local instance displays as 2016-02-01 (the working site). The format on the site that is breaking displays as 02/01/2016. I cannot figure out how to change the way the date is formatted so that I do not receive an error message when I try to save the calendar. All wordpress and calendar settings are identical between the 2 instances.

    Could this be caused by my running PHP 5.5 on the live site? The local instance on my MacBook Pro is using PHP 5.6. Any help is appreciated!

    Here is the error message:

    Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘The separation symbol could not be found The separation symbol could not be found’ in /home/abcd/public_html/dev/wp-content/plugins/google-calendar-events/vendor/nesbot/carbon/src/Carbon/Carbon.php:425 Stack trace: #0 /home/abcd/public_html/dev/wp-content/plugins/google-calendar-events/includes/abstracts/calendar.php(651): Carbon\Carbon::createFromFormat(‘Y-m-d’, ‘03012016’, ‘UTC’) #1 /home/abcd/public_html/dev/wp-content/plugins/google-calendar-events/includes/abstracts/calendar.php(253): SimpleCalendar\Abstracts\Calendar->set_start() #2 /home/abcd/public_html/dev/wp-content/plugins/google-calendar-events/includes/calendars/default-calendar.php(117): SimpleCalendar\Abstracts\Calendar->__construct(Object(WP_Post)) #3 /home/abcd/public_html/dev/wp-content/plugins/google-calendar-events/includes/objects.php(279): SimpleCalendar\Calendars\Default_Calendar->__construct(Object(WP_Post)) #4 /home/abcd/public_ in /home/abcd/public_html/dev/wp-content/plugins/google-calendar-events/vendor/nesbot/carbon/src/Carbon/Carbon.php on line 425

    https://wordpress.org/plugins/google-calendar-events/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lbaitis

    (@lbaitis)

    I made a change to my WordPress Timezone and it seems to have resolved the problem. Under WordPress Settings -> General I changed the time format from UTC+0 to Los Angeles. The Google Calendar is set to use Pacific Time. After I made this change the calendar widget under Calendar Settings -> Events -> Calendar Start now displays the Start Date format like 03/01/2016.

    I’ve had a similar issue:
    Installed on development site, all worked fine. That server was running PHP 5.3.24.
    Installed on live site, running PHP 5.4.45.
    Now I get this error on all pages:

    Fatal error: Class ‘Carbon\Carbon’ not found in /home/vfwpost64/public_html/wp-content/plugins/google-calendar-events/includes/functions/shared.php on line 230

    I think it has to do with Carbon – which only works with PHP 5.3+.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Event Specific Start Date Format Breaking Plugin’ is closed to new replies.