• Resolved dumboxp

    (@dumboxp)


    I migrated from shortcode to the new “Classifieds Manage”-block and wanted to add additional attributes to the list by adding one e.g. the Price from the “Display Information > List Data”-dropdown.

    As soon as one/any of these fields is added an error 500 occurs and the block shows the following error message:

    "Error loading block: The response is not a valid JSON response."

    Furthermore, the page could not be rendered in edit or view mode and shows an error message “There has been a critical error on this website. Please check your site admin email inbox for instructions.” triggering a debugging email with the following exception details:

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 37 der Datei /home/.sites/174/site2508248/web/wp-content/plugins/wpadverts/blocks/manage/templates/manage-list-item.php verursacht. Fehlermeldung: Uncaught TypeError: Cannot access offset of type string on string in /home/.sites/174/site2508248/web/wp-content/plugins/wpadverts/blocks/manage/templates/manage-list-item.php:37
    Stack trace:
    #0 /home/.sites/174/site2508248/web/wp-content/plugins/wpadverts/blocks/manage/templates/manage-list.php(155): include()
    #1 /home/.sites/174/site2508248/web/wp-content/plugins/wpadverts/blocks/manage/class-manage-engine.php(171): include('/home/.sites/17...')
    #2 /home/.sites/174/site2508248/web/wp-content/plugins/wpadverts/blocks/manage/class-manage-engine.php(82): Adverts_Block_Manage_Engine->action_list(Array)
    #3 /home/.sites/174/site2508248/web/wp-content/plugins/wpadverts/blocks/manage/index.php(95): Adverts_Block_Manage_Engine->main(Array)
    #4 /home/.sites/174/site2508248/web/wp-includes/class-wp-block.php(258): Adverts_Block_Manage->render(Array, '', Object(WP_Block))
    #5 /home/.sites/174/site2508248/web/wp-includes/blocks.php(1484): WP_Block->render()
    #6 /home/.sites/174/site2508248/web/wp-includes/blocks.php(1522): render_block(Array)
    #7 /home/.sites/174/site2508248/web/wp-includes/class-wp-hook.php(324): do_blocks('

    Switching into the maintenance mode of WordPress by clicking the link in the email allows to edit and remove the corrupt block and publish the repaired page.

    I hope this bug could be fixed soon. All the best!

    • This topic was modified 9 months, 2 weeks ago by dumboxp.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    thanks for the report and sorry for the problem.

    I can confirm that i was able to reproduce this error and a fix will be available in the next release, in the meantime it would be best to not change List Data for the Manage block.

    Thread Starter dumboxp

    (@dumboxp)

    Thanks for the quick response and looking forward for the next update ??

    Thread Starter dumboxp

    (@dumboxp)

    The issue has been solved with the latest version 2.1.2. Marking this issue as resolved. Thanks for the quick fix!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when adding List data field to Classifieds Manage block’ is closed to new replies.