Support » Plugin: Simple Calendar - Google Calendar Plugin » Another site crashing Fatal Error

  • I, too, would like to report another site-crashing, deal-breaking Fatal Error.

    WordPress 5.1.1 and 5.2 (just released).

    I’ve tried rolling back to 3.1.20, even 3.1.19 using WP Rollback, even renaming the plugin folder as suggested in another thread.

    v3.1.20 doesn’t appear to have any affect.

    Debug messages as follows:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /var/www/vhosts/hastingsflyfishers.org.au/staging.hastingsflyfishers.org.au/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in /var/www/vhosts/hastingsflyfishers.org.au/staging.hastingsflyfishers.org.au/wp-content/themes/canary/inc/filters.php:109 Stack trace: #0 /var/www/vhosts/hastingsflyfishers.org.au/staging.hastingsflyfishers.org.au/wp-includes/class-wp-hook.php(286): {closure}('Calendar') #1 /var/www/vhosts/hastingsflyfishers.org.au/staging.hastingsflyfishers.org.au/wp-includes/plugin.php(208): WP_Hook->apply_filters('Calendar', Array) #2 /var/www/vhosts/hastingsflyfishers.org.au/staging.hastingsflyfishers.org.au/wp-content/plugins/google-calendar-events/includes/widgets/calendar.php(79): apply_filters('widget_title', 'Calendar') #3 /var/www/vhosts/hastingsflyfishers.org.au/staging.hastingsflyfishers.org.au/wp-content/plugins/elementor/includes/widgets/wordpress.php(262): SimpleCalendar\Widgets\Calendar- in /var/www/vhosts/hastingsflyfishers.org.au/staging.hastingsflyfishers.org.au/wp-content/themes/canary/inc/filters.php on line 109
    
    The site is experiencing technical difficulties.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author SimpleCalendar

    (@simplecalendar)

    Hey @funex

    Can you share the function involved in wp-content/themes/canary/inc/filters.php on line 109? It looks like that may have something to do with the error. Could you also let us know what version of PHP your server is running?

    I may be having this error as well… entire site is crashed. Sucuri monitors and protects my website but they have yet to come up with the issue.
    Here is error message that repeats on 4 pages:

    http://gardenoaks.org/
    http://gardenoaks.org/404testpage4525d2fdc
    http://gardenoaks.org/404javascript.js
    http://gardenoaks.org/404javascript.js

    <b>Warning</b>: require(/home1/gardenoaks/public_html/wp-content/plugins/google-calendar-events/vendor/composer/../react/promise/src/functions_include.php): failed to open stream: No such file or directory in <b>/home1/gardenoaks/public_html/wp-content/plugins/google-calendar-events/vendor/composer/autoload_real.php</b> on line <b>66</b><br />

    The other odd thing is that the site is https

    Any chance of a quick fix… like go in with ftp and delete some files? I don’t care if our calendar is out of commission for a few days… what is not tolerable is to have this killing the entire site.

    More info… WordPress has sent a message about the 5.2 update and a second message about automatic detection and notification of a fatal error. The back door to get into admin at first yielded the same type of error messages but within a few minutes loaded properly and I was able to deactivate the Simple Calendar plugin and my site is back on line. Giant sigh of relief.

    Hope the issue with the plugin resolves… love the tool!

    Plugin Author SimpleCalendar

    (@simplecalendar)

    Hey @pamjasperx

    Sounds like that issue may be related to the 3.2.21 version of the plugin. If you upgrade to 3.2.22 you shouldn’t see any fatal errors on the site. If you run into any issues let me know what kind of error you see in the logs.

    Thread Starter funex

    (@funex)

    WordPress 5.1.1
    PHP 7.3.5

    Hmm, it seems you were right. I thought it might have been the theme at first, too.
    But, after updating to v3.2.22, updating to WordPress 5.2, and going through every other update one by one, I narrowed it down the the theme. 🙂

    Thread Starter funex

    (@funex)

    For the record:
    wp-content/themes/canary/inc/filters.php on line 109 is the closing bracket of:

    // categories ---->
    		$categories_list = get_the_category_list( ', ' );
    		if ( $categories_list && canary_categorized_blog() ) {
    			echo '<li class="cat-links">
    				<i class="fa fa-folder-open"></i>
    				<span class="screen-reader-text">'. esc_html__( 'Categories:', 'canary' ).'</span>
    				'.ent2ncr($categories_list).'
    			</li>';
    		}
    Thread Starter funex

    (@funex)

    Correction, it seems that this particular filter doesn’t play well with Simple Calendar:

    // add the filter for search widget title ....
    add_filter( 'widget_title', function( $instance_title,$instance,$this_id_base ) { 
        if($this_id_base=='search'){
        	$instance_title = ! empty( $instance['title'] ) ? $instance['title'] :__('Search','canary');
        }  
        return $instance_title; 
    } ); 

    Remove it and the site appears to work as normal.

    I like this plugin for its simplicity and it does exactly what I want it to. I also have a customised child theme based off the current theme. :-S

    • This reply was modified 1 year, 9 months ago by funex.

    I am experiencing a similar issue. Only my Google Calender is down. This occurred shortly after the PHP was upgraded to version 7. But, because I learned of the calendar issues about a week later, I cannot definitely link it to the update. Also, the system requirements for the Simple Calendar states the site should have Php 7 or above.

    The error message I am getting is:
    “The site is experiencing technical difficulties.”
    No additional messages to provide any direction toward a fix. Here are some specifics regarding my site:

    ### WordPress Installation ###
    Version: 5.2.3
    WP Memory Limit: 40 MB

    ### Active Theme ###
    Theme: Pinnacle – 1.7.3

    ### Active Plugins ###

    Kadence Toolkit: 4.9.4
    Yoast SEO: 11.7
    Kadence Blocks – Gutenberg Page Builder Toolkit: 1.6.4
    Advanced Custom Fields: 5.8.2
    Health Check & Troubleshooting: 1.4.0
    Black Studio TinyMCE Widget: 2.6.9
    Simple Calendar: 3.1.22
    Shortcodes Ultimate: 5.4.1
    Contact Form 7: 5.1.4
    Coming Soon Page & Maintenance Mode by SeedProd: 5.0.26
    TinyMCE Advanced: 5.2.1
    Easy Popup Announcement: 1.0.3
    Simple Custom CSS: 4.0.2

    ### Server Environment ###
    Web Server: Apache
    PHP Version: 7.0.33
    MySQL Version: 5.5.62-cll
    Memory Limit: 256M
    OpenSSL/1.0.2t

    The calendar has worked for over a year without a problem.

    • This reply was modified 1 year, 5 months ago by webber59.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Another site crashing Fatal Error’ is closed to new replies.