• When I upgraded to My Calendar today, version 3.3.24.1, it crashed the website I upgraded it on with the error: Too few arguments to function mc_search_results_title(), 1 passed in /home/USERNAME/public_html/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected. I had to deactivate the My Calendar plugin to get the website back to displaying again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter djkimmel

    (@djkimmel)

    Adding that the website I was trying to update My Calendar on has the homepage set to display the latest posts. WordPress 6.0.3, PHP 7.4

    Plugin Author Joe Dolson

    (@joedolson)

    What were you upgrading from? This is something that’s been in My Calendar for a long time, but if other plugins are using the core WordPress filter ‘the_title’ without passing all arguments, it can throw errors.

    Thread Starter djkimmel

    (@djkimmel)

    I see the code has been there a while. I don’t recall which version I updated from in My Calendar but it wasn’t very old. At the same time I updated a number of other plugins. I did not note a list of plugins and versions I was updating at the same time. I have backups but can’t really step back without risking messing up WooCommerce data. Guess I’ll have to figure out if there is another plugin interfering. Fun.

    Plugin Author Joe Dolson

    (@joedolson)

    Ah, yes; if it was a bunch of plugins that can make it harder. Always fun.

    If you install a plug-in like Query Monitor by John Blackbourne, that will generally show you the call stack that led to the error – that can be very useful for identifying what other plug-in is involved in the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Too few arguments to function mc_search_results_title()’ is closed to new replies.