• Resolved Knut Sparhell

    (@knutsp)


    From wp-admin/tools.php?page=form-block-submissions

    Page says: Invalid JSOIn on line 1. Inspecting XHR reveals fatal error html output.

    Log says: PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /*/wp-content/plugins/form-block/inc/api/class-submission.php:29

    WP 6.8.3, PHP 8.4

    Adding (array) in line 28 seems to fixe the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Knut Sparhell

    (@knutsp)

    My suggested fix is probably not correct. $item should stay an object. The error is that it uses $item['id'] on line 29, when it should be $item->id.

    Plugin Author Matthias Kittsteiner

    (@kittmedia)

    Hi @knutsp,

    you’re right, thank you for the heads up! I’ll add it as a fix in the next version.

    Best regards,
    Matthias

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

You must be logged in to reply to this topic.