• Resolved Nate Angell

    (@ixmati)


    Thank you for this plugin! I’m seeing the warnings below with WP 6.1.1, PHP 8.0.26 (Supports 64bit values), MySQL 8.0.31 on Apache/2.4.54 (Debian)/Linux 5.15.49-linuxkit x86_64.

    Warnings go away on reordering the parameters in the function on line 72 of bellows-accordion-menu/includes/bellows.api.php, from:

    function bellows_section( $config_id = ‘main’ , $menu_args = array(), $section_args ){

    To be:

    function bellows_section( $section_args , $config_id = ‘main’ , $menu_args = array() ){

    Warnings:

    Deprecated: Required parameter $section_args follows optional parameter $config_id in /var/www/html/wp-content/plugins/bellows-accordion-menu/includes/bellows.api.php on line 72

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/bellows-accordion-menu/includes/bellows.api.php:72) in /var/www/html/wp-admin/includes/misc.php on line 1416

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/bellows-accordion-menu/includes/bellows.api.php:72) in /var/www/html/wp-includes/functions.php on line 6865

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/bellows-accordion-menu/includes/bellows.api.php:72) in /var/www/html/wp-admin/admin-header.php on line 9

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Fix: Required parameter follows optional parameter’ is closed to new replies.