• After installing, and adding the block to a page, I then got a PHP fatal error both on that front-end page and on the page editor in the dashboard too. So the only way out of that was to de-activate. PHP 8.2.8, current plugin release as of today.

    PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in wp-content/plugins/donation-block-for-stripe-by-givewp/src/DonationBlock.php:82
    Stack trace:
    #0 wp-includes/class-wp-block.php(258): GiveDonationBlock\DonationBlock->renderBlock()
    #1 wp-includes/blocks.php(1072): WP_Block->render()
    #2 wp-includes/blocks.php(1110): render_block()
    #3 wp-includes/class-wp-hook.php(308): do_blocks()
    #4 wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #5 wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1860): apply_filters()
    #6 wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response()
    #7 wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Posts_Controller->get_item()
    #8 wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request()
    #9 wp-includes/rest-api.php(535): WP_REST_Server->dispatch()
    #10 wp-includes/rest-api.php(2889): rest_do_request()
    #11 [internal function]: rest_preload_api_request()
    #12 wp-includes/block-editor.php(634): array_reduce()
    #13 wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
    #14 wp-admin/post.php(187): require('...')
    #15 {main}
      thrown in wp-content/plugins/donation-block-for-stripe-by-givewp/src/DonationBlock.php on line 82
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @davidanderson.

    Glad you reached out.

    Can you share your system info with me so I can check if this issue is replicable elsewhere using PHP 8.2?

    Navigate to Donations –> Tools –> System Info (tab) and click the button to “Get System Report” and copy/paste that in your reply here.

    That will give me some more context to be able to help.

    Thread Starter David Anderson / Team Updraft

    (@davidanderson)

    Sorry, since I couldn’t use the plugin I removed it and installed something else.

    Plugin Support Matheus Martins

    (@matheusfd)

    I understand, @davidanderson. If you decide to use GiveWP again, we will be happy to help.

    Have a great day! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal errors’ is closed to new replies.