• Resolved lilpenny1316

    (@lilpenny1316)


    Some of my form entries are now unable to be downloaded after we upgraded our server. Below is the log of the issue. Thank you.

    GravityExport Lite: Something is broken

    Plugin Version: 1.11.3
    Gravity Forms Version: 2.6.3
    PHP Version: 8.0.25
    WordPress Version: 6.1.1
    Error message: Uncaught TypeError: html_entity_decode(): Argument #1 ($string) must be of type string, array given in /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Field/AbstractField.php:154
    Stack trace:
    #0 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Field/AbstractField.php(154): html_entity_decode(Array)
    #1 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Field/AbstractField.php(128): GFExcel\Field\AbstractField->getGFieldValue(Array, ‘gpml_ids_85’)
    #2 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Field/MetaField.php(42): GFExcel\Field\AbstractField->getFieldValue(Array)
    #3 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Transformer/Combiner.php(95): GFExcel\Field\MetaField->getCells(Array)
    #4 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Transformer/Combiner.php(37): GFExcel\Transformer\Combiner->getFieldRows(Object(GFExcel\Field\MetaField), Array)
    #5 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/GFExcelOutput.php(243): GFExcel\Transformer\Combiner->parseEntry(Array, Array)
    #6 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/GFExcelOutput.php(125): GFExcel\GFExcelOutput->setRows()
    #7 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/GFExcel.php(351): GFExcel\GFExcelOutput->render()
    #8 /home/jfmd2016/public_html/wp-includes/class-wp-hook.php(308): GFExcel\GFExcel->downloadFile(Object(WP))
    #9 /home/jfmd2016/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #10 /home/jfmd2016/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #11 /home/jfmd2016/public_html/wp-includes/class-wp.php(399): do_action_ref_array(‘parse_request’, Array)
    #12 /home/jfmd2016/public_html/wp-includes/class-wp.php(780): WP->parse_request(”)
    #13 /home/jfmd2016/public_html/wp-includes/functions.php(1332): WP->main(”)
    #14 /home/jfmd2016/public_html/wp-blog-header.php(16): wp()
    #15 /home/jfmd2016/public_html/index.php(17): require(‘/home/jfmd2016/…’)
    #16 {main}
    thrown
    Error stack trace:
    #0 [internal function]: GFExcel\Renderer\AbstractPHPExcelRenderer->fatalHandler()
    #1 {main}`

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

    (@doekenorg)

    Hi @lilpenny1316,

    Sorry to hear that. I think I can see why this happens. Will try and create a patch ASAP. Thanks for upgrading to PHP 8. You’re already making an impact 😉

    Will let you know as soon as you can update the plugin.

    Plugin Author Doeke Norg

    (@doekenorg)

    @lilpenny1316 I just released version 1.11.4 that should contain a fix for this. Could you let me know if updating the plugin solves your problem?

    Thanks,

    Doeke

    Thread Starter lilpenny1316

    (@lilpenny1316)

    Thank you for the help, I think we’re moving in the right direction, but a different error has been generated.

    Include the following details in your message:
    
    Plugin Version: 1.11.4
    Gravity Forms Version: 2.6.3
    PHP Version: 8.0.25
    WordPress Version: 6.1.1
    Error message: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Values/StringValue.php:43
    Stack trace:
    #0 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Values/StringValue.php(43): preg_match('%^(https?|ftps?...', Array)
    #1 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Values/StringValue.php(30): GFExcel\Values\StringValue->isUrl(Array)
    #2 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Values/StringValue.php(21): GFExcel\Values\StringValue->setUrlAsLink()
    #3 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Values/BaseValue.php(171): GFExcel\Values\StringValue->__construct(Array, Object(GF_Field))
    #4 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Field/AbstractField.php(76): GFExcel\Values\BaseValue::getValueObject(Object(GFExcel\Field\MetaField), Array, Object(GF_Field), false)
    #5 [internal function]: GFExcel\Field\AbstractField->GFExcel\Field\{closure}(Array)
    #6 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Field/AbstractField.php(75): array_map(Object(Closure), Array)
    #7 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Field/MetaField.php(49): GFExcel\Field\AbstractField->wrap(Array)
    #8 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Transformer/Combiner.php(95): GFExcel\Field\MetaField->getCells(Array)
    #9 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/Transformer/Combiner.php(37): GFExcel\Transformer\Combiner->getFieldRows(Object(GFExcel\Field\MetaField), Array)
    #10 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/GFExcelOutput.php(243): GFExcel\Transformer\Combiner->parseEntry(Array, Array)
    #11 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/GFExcelOutput.php(125): GFExcel\GFExcelOutput->setRows()
    #12 /home/jfmd2016/public_html/wp-content/plugins/gf-entries-in-excel/src/GFExcel.php(351): GFExcel\GFExcelOutput->render()
    #13 /home/jfmd2016/public_html/wp-includes/class-wp-hook.php(308): GFExcel\GFExcel->downloadFile(Object(WP))
    #14 /home/jfmd2016/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #15 /home/jfmd2016/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #16 /home/jfmd2016/public_html/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array)
    #17 /home/jfmd2016/public_html/wp-includes/class-wp.php(780): WP->parse_request('')
    #18 /home/jfmd2016/public_html/wp-includes/functions.php(1332): WP->main('')
    #19 /home/jfmd2016/public_html/wp-blog-header.php(16): wp()
    #20 /home/jfmd2016/public_html/index.php(17): require('/home/jfmd2016/...')
    #21 {main}
    thrown
    Error stack trace:
    #0 [internal function]: GFExcel\Renderer\AbstractPHPExcelRenderer->fatalHandler()
    #1 {main}
    Plugin Author Doeke Norg

    (@doekenorg)

    @lilpenny1316 hmm. Glad to see it at least fixed that, but releasing a patch for every bug until it works seems like a slow debugging processes 😅

    Could you send me an export of a form (or forms) that doesn’t work for you (so the json export, not the entries) ? Would help a lot. I’ve been running php8 for months now and haven’t come across these issues. So I’m not having the correct test data.

    You can send it to doeke[at]gravitykit.com

    Thanks.

    Thread Starter lilpenny1316

    (@lilpenny1316)

    @doekenorg email sent. Please let me know if you did not receive it.

    Plugin Author Doeke Norg

    (@doekenorg)

    Hi @lilpenny1316,

    There seems to be an issue with GravityPerks Media Library. A temporary fix for you would be to add the following code in a Code snippet using https://wordpress.org/plugins/code-snippets/.

    add_filter( 'gfexcel_meta_value', function ( $value, $entry, $field ) {
    	if ( strpos( $field->id, 'gpml_ids_' ) !== false && is_array( $value ) ) {
    		$value = implode( ", ", $value );
    	}
    
    	return $value;
    }, 10, 3 );

    We’ll try to fix this in a nicer way in an upcoming release. Hope this helps you out.

    Doeke

    • This reply was modified 1 year, 4 months ago by Doeke Norg. Reason: code snippet link
    Thread Starter lilpenny1316

    (@lilpenny1316)

    Excellent. This worked! Thank you very much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘GravityExport Link Broken for Some Forms’ is closed to new replies.