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 7 replies - 1 through 7 (of 7 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.

    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. 🙂

    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>';
    		}
    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 4 months ago by  funex.
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.