• Resolved Anonymous User 14100483

    (@anonymized-14100483)


    I’m running Shield on about 20 sites. On one of them I get this error message in the logs every night. I have uninstalled and reinstalled Shield to no effect (but I didn’t clean out all the tables and settings). Any idea why this is happening on just one site.

    [02-Feb-2020 23:06:03 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Carbon\Carbon::startOfHour() in /home/xxxxxx/public_html/wp-content/plugins/wp-simple-firewall/src/lib/src/Modules/Events/Consolidate/ConsolidateAllEvents.php:34
    Stack trace:
    #0 /home/xxxxxx/public_html/wp-content/plugins/wp-simple-firewall/src/lib/src/Modules/Events/Consolidate/ConsolidateAllEvents.php(15): FernleafSystems\Wordpress\Plugin\Shield\Modules\Events\Consolidate\ConsolidateAllEvents->consolidateEventIntoHourly('session_notfoun...')
    #1 /home/xxxxxx/public_html/wp-content/plugins/wp-simple-firewall/src/processors/events.php(119): FernleafSystems\Wordpress\Plugin\Shield\Modules\Events\Consolidate\ConsolidateAllEvents->run()
    #2 /home/xxxxxx/public_html/wp-includes/class-wp-hook.php(286): ICWP_WPSF_Processor_Events->runDailyCron('')
    #3 /home/xxxxxx/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #4 /home/xxxxxx/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /home/xxxxxx/public_html/wp-conte in /home/xxxxxx/public_html/wp-content/plugins/wp-simple-firewall/src/lib/src/Modules/Events/Consolidate/ConsolidateAllEvents.php on line 34
    • This topic was modified 6 years, 4 months ago by Anonymous User 14100483.
    • This topic was modified 6 years, 4 months ago by Anonymous User 14100483.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Paul

    (@paultgoodchild)

    Hi,

    This is likely because there’s another plugin on the site that’s also using the same Carbon library, but it’s stuck in an older version that doesn’t have this method.

    You’ll probably find that on this particular site there’s a plugin that’s not active any other of your 20 sites. Can you identify any plugin like that?

    Thread Starter Anonymous User 14100483

    (@anonymized-14100483)

    Ah… thanks Paul.
    It will be “Simple Calendar – Google Calendar Plugin” – it uses Carbon and hasn’t been updated for 9 months. I’ll have to work out what to do with it.
    Not your problem though!
    Cheers,
    Alan

    Thread Starter Anonymous User 14100483

    (@anonymized-14100483)

    If anyone else is having a similar problem, Paul gave me a fix that worked for me. After taking a backup, copy the contents from /wp-simple-firewall/src/lib/vendor/nesbot/carbon/src to /simple-calendar/vendor/nesbot/carbon/src

    Thanks Paul!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP error message on one site’ is closed to new replies.