• Resolved lymeswold

    (@lymeswold)


    Hello, please see the error below.

    Not sure if this is relevant: I had specified a calendar as ‘use grouped calendar’ but not yet defined grouped calendars for it to use.

    Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘The separation symbol could not be found The separation symbol could not be found’ in /var/sites/d/dbc.obfuscated.co.uk/public_html/wp-content/plugins/google-calendar-events/vendor/nesbot/carbon/src/Carbon/Carbon.php:425 Stack trace: #0 /var/sites/d/dbc.obfuscated.co.uk/public_html/wp-content/plugins/google-calendar-events/includes/abstracts/calendar.php(656): Carbon\Carbon::createFromFormat(‘Y-m-d’, ‘04012017’, ‘UTC’) #1 /var/sites/d/dbc.obfuscated.co.uk/public_html/wp-content/plugins/google-calendar-events/includes/abstracts/calendar.php(253): SimpleCalendar\Abstracts\Calendar->set_start() #2 /var/sites/d/dbc.obfuscated.co.uk/public_html/wp-content/plugins/google-calendar-events/includes/calendars/default-calendar.php(117): SimpleCalendar\Abstracts\Calendar->__construct(Object(WP_Post)) #3 /var/sites/d/dbc.obfuscated.co.uk/public_html/wp-content/plugins/google-calendar-events/includes/objects.php(286): SimpleCalendar\Calendars\Default_Cal in /var/sites/d/dbc.obfuscated.co.uk/public_html/wp-content/plugins/google-calendar-events/vendor/nesbot/carbon/src/Carbon/Carbon.php on line 425

    ### WordPress Installation ###

    Site Name: Dunster Beach Chalets
    Home URL: https://dbc.obfuscated.co.uk
    Site URL: https://dbc.obfuscated.co.uk
    Version: 4.7.3
    Locale: en
    Timezone: UTC
    Multisite: No
    Permalinks: /%category%/%postname%/
    WP Memory Limit: 40 MB
    WP Debug Mode: No
    Script Debug: No

    ### Active Theme ###

    Theme: Twenty Seventeen – 1.1
    Child Theme: No
    Parent Theme: –

    ### Active Plugins ###

    Accordion Shortcodes: 2.3.2
    Google Analytics for WordPress by MonsterInsights: 6.0.16
    UpdraftPlus – Backup/Restore: 1.12.35
    Simple Calendar: 3.1.9
    Dashboard Notepad: 1.42

    ### Server Environment ###

    Web Server: Apache
    PHP Version: 5.6.22
    MySQL Version: 5.7.16
    Server Timezone: UTC
    Display Errors: Yes
    Memory Limit: 256M
    Upload Max Filesize: 100M
    Post Max Size: 100M
    Max Execution Time: 60
    Max Input Vars: 1000
    fsockopen: Yes
    cURL: 7.41.0
    OpenSSL/1.0.2a
    SOAP: Yes
    SUHOSIN: No
    WP Remote POST: Yes
    WP Remote GET: Yes

    ### Client Information ###

    IP Address: —————–
    Browser: Chrome 56.0.2924.87 (Windows)

    I can’t get out of this error by deleting the offending calendar, so am about to uninstall and reinstall the entire plugin.

    Thanks

    Chris N

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter lymeswold

    (@lymeswold)

    I’ve deleted and reinstalled the plugin, and removed all entries from the database ‘posts’ table with type ‘calendar’. But it’s still crashing.

    What else do I need to clean out of the database to fully initialise the plugin?

    Thread Starter lymeswold

    (@lymeswold)

    Ah, now I’ve found how to init the plugin – Calendars | Settings | Advanced. That cleared everything.

    However I would also point out that when displayed a composite calendar with no associated ‘child’ calendars I got the warning message…

    Warning: uasort() expects parameter 1 to be array, boolean given in /var/sites/d/dbc.(redacted).co.uk/public_html/wp-content/plugins/google-calendar-events/includes/feeds/grouped-calendars.php on line 164

    Maybe it would be better to give a more explicit warning?

    Anyway, great plugin, thanks.

    Plugin Contributor Nick Young

    (@nickyoung87)

    Hello,

    First off, I apologize for the delay.

    Yeah it looks like we could use a few better error messages in this case. Thanks for pointing it out. Are you running smoothly now?

    Thread Starter lymeswold

    (@lymeswold)

    Yes, running smoothly thanks.

    Love this plugin. Would appreciate more detailed documentation on how the calendar cache works, what happens when the quota is exceeded, ideally logging of daily request counts to Google, notification of impending quota exceed; maybe a test utility to force requests to simulate this (pro version?).

    Plugin Contributor Nick Young

    (@nickyoung87)

    The caching works through using WordPress’s caching system. Basically it creates a database entry that stores all of the calendar data. If the cache time (set in settings) is expired then it just refreshes it when the next person that view the calendar opens it.

    There should not be many Google requests based on the cache stuff above because it only takes 1 user to redo the cache (say every 2 hours). The only time it would be a problem is if you have a low cache limit and if you have a LOT of traffic.

    You should be able to see your request counts in your Google Dev console where you created the API Keys.

    Hope that helps with some stuff ??

    Also posted a reply here: https://www.ads-software.com/support/topic/strange-sporadic-error/#post-9235566

    Hi Nick/All,

    I was running into this same error as well with grouped calendars. From my testing, it seems like it has something to do with a non-cached access of a calendar. The code on line 114 in grouped-calendars.php returns a Boolean “false”.

    $events = get_transient( '_simple-calendar_feed_id_' . strval( $this->post_id ) . '_' . $this->type );

    This causes line 164 to error since $events is not an Array.

    To fix this, I’ve added the below line right below line 114.

    if(!$events) $events = array();

    Please let me know if you see any issues with this approach.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error in Carbon.php:425’ is closed to new replies.