Support » Plugin: Accordion FAQ » Users who can’t install themes can’t edit accordions (garbled HTML/JSON output)

  • Resolved kenjigarland

    (@kenjigarland)


    Hi there – a client of mine is using your plugin on their site, and discovered that if they clicked one of the Edit links on the screen that lists accordions (/wp-admin/edit.php?post_type=responsive_accordion), they were confronted with a bunch of raw HTML code instead of a proper edit page.

    I traced this problem to incorrect usage of the wp_send_json_error() function in responsive-accordion-and-collapse/lib/admin/more-free-themes.php, line 147 (it’s also called incorrectly on line 161). That function should only be used in the context of an AJAX or REST request handler – it changes the Content-Type header for the page and stops all further output after it’s called, so if it’s called in the middle of HTML output, the whole page becomes unreadable to the browser.

    When you can, please update that file so it no longer calls wp_send_json_error(). Thanks!

    • This topic was modified 8 months, 2 weeks ago by kenjigarland. Reason: clarification
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Users who can’t install themes can’t edit accordions (garbled HTML/JSON output)’ is closed to new replies.