• Resolved tjebbek

    (@tjebbek)


    Plugin Version: 1.10.1
    Gravity Forms Version: 2.5.15
    PHP Version: 7.4.26
    WordPress Version: 5.8.2
    Error message: Too few arguments to function change_separator(), 1 passed in /var/www/vhosts/schuttersnet.nl/httpdocs/wp-includes/class-wp-hook.php on line 303 and exactly 2 expected
    Error stack trace:
    #0 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-includes/class-wp-hook.php(303): change_separator()
    #1 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-includes/plugin.php(189): WP_Hook->apply_filters()
    #2 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-content/plugins/gf-entries-in-excel/src/Renderer/AbstractPHPExcelRenderer.php(448): apply_filters()
    #3 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-content/plugins/gf-entries-in-excel/src/Renderer/AbstractPHPExcelRenderer.php(87): GFExcel\Renderer\AbstractPHPExcelRenderer->setCsvProperties()
    #4 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-content/plugins/gf-entries-in-excel/src/Renderer/PHPExcelRenderer.php(42): GFExcel\Renderer\AbstractPHPExcelRenderer->renderOutput()
    #5 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-content/plugins/gf-entries-in-excel/src/GFExcelOutput.php(131): GFExcel\Renderer\PHPExcelRenderer->handle()
    #6 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-content/plugins/gf-entries-in-excel/src/GFExcel.php(351): GFExcel\GFExcelOutput->render()
    #7 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-includes/class-wp-hook.php(303): GFExcel\GFExcel->downloadFile()
    #8 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #9 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-includes/plugin.php(518): WP_Hook->do_action()
    #10 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-includes/class-wp.php(388): do_action_ref_array()
    #11 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-includes/class-wp.php(750): WP->parse_request()
    #12 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-includes/functions.php(1291): WP->main()
    #13 /var/www/vhosts/schuttersnet.nl/httpdocs/wp-blog-header.php(16): wp()
    #14 /var/www/vhosts/schuttersnet.nl/httpdocs/index.php(17): require(‘/var/www/vhosts…’)
    #15 {main}

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Doeke Norg

    (@doekenorg)

    It looked like you have a function called change_separator, which needs 2 parameters. But 2 parameters are not always required.

    Will look into it asap. Could you share that function with us?

    Thanks in advance.

    Thread Starter tjebbek

    (@tjebbek)

    <?php
    add_filter( ‘gform_export_separator’, ‘change_separator’, 10, 2 );
    function change_separator( $separator, $form_id ) {
    return ‘;’;

    Thread Starter tjebbek

    (@tjebbek)

    problem solved after delete function.

    Plugin Author Doeke Norg

    (@doekenorg)

    @tjebbek Good to hear you solved your issue. I’m not sure deleting is necessary though. Updating the code to the following should also do the trick for now. I’ll make sure the issue gets fixed in the plugin too.

    add_filter( ‘gform_export_separator’, ‘change_separator’ );
    function change_separator( $separator )
    {
        return ';';
    }

    This code makes it so the CSV values are separated by a ; instead of a ,. So one;two;three instead of one,two,three. If you do need that, this code should help for now.

    – Doeke

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Too few arguments to function change_separator(), 1 passed in /var/www/vhosts/sc’ is closed to new replies.