CSV export contains html code on WordPress

How to fix a CSV export containing HTML code in WordPress.

Overview

The issue occurs when the export function outputs the full WordPress admin page HTML before the actual CSV data.
Add the parameter "output=component" to the export link URL to prevent the admin page HTML from being included in the CSV file.

nm nmedai 21 Jan, 2026

The CSV export of the data log starts with a lot of HTML code. After that the actual data appear. Same problem with a different theme.

Max_admin Max_admin 21 Jan, 2026

Hi nmedai

this means there is a PHP error or warning, can you copy the errors and paste them here or send them by email using the Contact page if they have any sensitive info ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nm nmedai 21 Jan, 2026

There are no warnings or errors, the csv just contains a lot of html code, it begins like this:

<!DOCTYPE html><html class="wp-toolbar"lang="nl-NL"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

etcetc (the whole backend page in html)

and ends with:

<div id="wpbody" role="main"><div id="wpbody-content"><div id="screen-meta" class="metabox-prefs"><div id="contextual-help-wrap" class="hidden no-sidebar" tabindex="-1" aria-label="Hulp tab"><div id="contextual-help-back"></div><div id="contextual-help-columns"><div class="contextual-help-tabs"><ul></ul></div><div class="contextual-help-tabs-wrap"></div></div></div></div>

"Vraag"

test123  -> the actual csv data (just one test entry in this case).

Max_admin Max_admin 21 Jan, 2026
Answer

Hi nmedai

On WordPress there may be a small bug in the export function, please try this quick fix, right click the Export button shown below, choose "copy link address" then paste the link in a new browser window but add this to the end of the address:

&output=component

this should fix the problem, the next update will have this fix applied.

CSV export contains html code on WordPress image 1

CSV export contains html code on WordPress image 2

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nm nmedai 22 Jan, 2026
1 Likes

That does the trick. Thanks for this quick fix!

Max_admin Max_admin 23 Jan, 2026

No problem.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply