Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Matt Wenner

ACP 7.0.15 – Export to CSV triggers TypeError (500 error)

Hello Admin Columns Pro Support Team,

I’m encountering a critical error when attempting to use the Export to CSV functionality in Admin Columns Pro.

When triggering an export, the request fails with a 500 Internal Server Error. Below is the full error response for your reference:

{
“code”: “internal_server_error”,
“message”: “There has been a critical error on this website…”,
“data”: {
“status”: 500,
“error”: {
“type”: 1,
“message”: “Uncaught TypeError: ACP\\Export\\Formatter\\ExportFilter::format(): Argument #1 ($value) must be of type AC\\Type\\Value, string given, called in /wp-content/plugins/admin-columns-pro/classes/Export/Exporter/Renderer.php on line 65 and defined in /wp-content/plugins/admin-columns-pro/classes/Export/Formatter/ExportFilter.php:25
Stack trace:
#0 /wp-content/plugins/admin-columns-pro/classes/Export/Exporter/Renderer.php(65): ACP\\Export\\Formatter\\ExportFilter->format()
#1 /wp-content/plugins/admin-columns-pro/classes/Export/Exporter/TableDataFactory.php(82): ACP\\Export\\Exporter\\Renderer->format()
#2 /wp-content/plugins/admin-columns-pro/classes/Export/Exporter/TableDataFactory.php(48): ACP\\Export\\Exporter\\TableDataFactory->add_cells()
#3 /wp-content/plugins/admin-columns-pro/classes/Export/Strategy/Post.php(74): ACP\\Export\\Exporter\\TableDataFactory->create()
#4 /wp-includes/class-wp-hook.php(341): ACP\\Export\\Strategy\\Post->send_response()
#5 /wp-includes/plugin.php(256): WP_Hook->apply_filters()
#6 /wp-includes/class-wp-query.php(3629): apply_filters_ref_array()
#7 /wp-includes/class-wp-query.php(3958): WP_Query->get_posts()
#8 /wp-includes/class-wp.php(704): WP_Query->query()
#9 /wp-includes/class-wp.php(824): WP->query_posts()
#10 /wp-includes/functions.php(1343): WP->main()
#11 /wp-admin/includes/post.php(1319): wp()
#12 /wp-admin/includes/class-wp-posts-list-table.php(165): wp_edit_posts_query()
#13 /wp-admin/edit.php(235): WP_Posts_List_Table->prepare_items()
#14 {main}
thrown”,
“file”: “/wp-content/plugins/admin-columns-pro/classes/Export/Formatter/ExportFilter.php”,
“line”: 25
}
}
}

Notes:

* The issue occurs specifically when exporting from the posts table.
* It appears that a string is being passed where an AC\Type\Value instance is expected.
* This may be related to a custom column or field returning an unexpected value type during export.

Could you please advise on:

1. Whether this is a known issue
2. If a specific column type or configuration might be causing this
3. Any recommended debugging steps or fixes

Happy to provide additional details if needed.

Thanks in advance for your help.

1 week ago
Stefan van den Dungen Gronovius
Developer

Thanks for the detailed report.

Based on the error, I suspect that one specific column is causing the export to fail, possibly because it returns an unexpected value during export.

Could you please help us narrow this down by checking the following?
– Try exporting the posts table with only one column enabled at a time, to see which specific column triggers the error.
– Let us know whether you have any custom code related to Admin Columns, such as custom columns, custom export values, filters, or integrations.

Once we know which column is causing the issue and whether custom code is involved, we can investigate further.

6 days, 18 hours ago
Matt Wenner

Thanks for the suggestions—this helped us narrow things down.

We’re consistently seeing the issue when exporting the SEO title column, which comes from the Yoast SEO plugin.

To answer your other questions:

  • We don’t have any custom code related to Admin Columns Pro (no custom columns, export values, filters, or integrations).
  • We’re currently running:
    • WordPress 6.9.4
    • Admin Columns Pro 7.0.15
    • Yoast SEO 27.2
  • As a temporary workaround, we implemented a fix directly in the plugin to prevent the export from failing. Specifically, we added the following logic in:

    wp-content/plugins/admin-columns-pro/classes/Export/Exporter/Renderer.php

    
    public function format(Value $value): Value
    {
        $original_value = $value;
    
        $value = (new Aggregate($this->formatters))->format($value);
    
        if ($value instanceof ValueCollection) {
            $value = (new Implode())->format($value);
        }
    
        if (! $value instanceof Value) {
            $value = $original_value->with_value((string) $value);
        }
    
        // ... everything else stays the same
    }
    

    This seems to prevent the error, but we’d prefer a proper fix within the plugin if possible.

    Let us know if you need anything else from our side.

    4 days, 1 hour ago
    Stefan van den Dungen Gronovius
    Developer

    Thanks for the input, I was able to reproduce the issue for the Yoast title column. The issue is fixed for the upcoming release.

    1 day, 20 hours ago