Description:
Not sure exactly what is causing this but Cwicly, combined with the Page scroll to id plugin has the following fatal error when viewing the site:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function malihuPageScroll2id::wp_menu_links_custom_atts(), 2 passed in /home/customer/www/xyz.com/public_html/wp-includes/class-wp-hook.php on line 310 and exactly 3 expected in /home/customer/www/[xxx](http://xyz.com)/public_html/wp-content/plugins/page-scroll-to-id/malihu-pagescroll2id.php:624 Stack trace: #0 /home/customer/www/[xxx](http://xyz.com)/public_html/wp-includes/class-wp-hook.php(310): malihuPageScroll2id->wp_menu_links_custom_atts(Array, Array) #1 /home/customer/www/xyz.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #2 /home/customer/www/xyz.com/public_html/wp-content/plugins/cwicly/core/includes/blocks/nav-menu/maker.php(54): apply_filters('nav_menu_link_a...', Array, Array) #3 /home/customer/www/xyz.com/public_html/wp-content/plugins/cwicly/core/includes/blocks/nav-menu/maker.php(248): Cwicly\NavMenu::nav_attrs(Array) #4 /home/customer/www/xyz.com/public_html/wp in /home/customer/www/xyz.com/public_html/wp-content/plugins/page-scroll-to-id/malihu-pagescroll2id.php on line 624
Step-by-step reproduction instructions:
- Install Cwicly
- Install Page scroll to id
- View website
We haven’t had time to test this on a clean install yet, but deactivating either the Cwicly plugin or the Page scroll to id plugin causes the error to vanish and the site can be displayed.
Environment info
- WordPress version: 6.3
- Cwicly Plugin version: 1.2.9.9.2