• Hey,

    I’m trying to export a course from a local WordPress/LearnDash installation, but I’m getting a 500 error message. I’m using Chrome.

    The browser error message says:

    “The website at http://[localName]/wp-admin/admin-post.php?action=export_course&course_id=39663&_wpnonce=070d727683 may be temporarily unavailable or may have been permanently moved to a new web address.”

    The browser console of Chrome says:

    GET http://[localName]/wp-admin/admin-post.php?action=export_course&course_id=39663&_wpnonce=070d727683 net::ERR_INVALID_RESPONSE 500 (Internal Server Error)

    The php error log shows this:

    [20-May-2026 15:11:46 UTC] PHP Fatal error: Uncaught Error: Class “ZipArchive” not found in C:\Services\Apache24\htdocs[localName]\wp-content\plugins\easysecure-import-export-courses-learndash\vendor\openspout\openspout\src\Spout\Writer\Common\Creator\InternalEntityFactory.php:50
    Stack trace: 0 C:\Services\Apache24\htdocs[localName]\wp-content\plugins\easysecure-import-export-courses-learndash\vendor\openspout\openspout\src\Spout\Writer\Common\Helper\ZipHelper.php(38): OpenSpout\Writer\Common\Creator\InternalEntityFactory->createZipArchive() 1 C:\Services\Apache24\htdocs[localName]\wp-content\plugins\easysecure-import-export-courses-learndash\vendor\openspout\openspout\src\Spout\Writer\XLSX\Helper\FileSystemHelper.php(375): OpenSpout\Writer\Common\Helper\ZipHelper->createZip() 2 C:\Services\Apache24\htdocs[localName]\wp-content\plugins\easysecure-import-export-courses-learndash\vendor\openspout\openspout\src\Spout\Writer\XLSX\Manager\WorkbookManager.php(75): OpenSpout\Writer\XLSX\Helper\FileSystemHelper->zipRootFolderAndCopyToStream() 3 C:\Services\Apache24\htdocs[localName]\wp-content\plugins\easysecure-import-export-courses-learndash\vendor\openspout\openspout\src\Spout\Writer\Common\Manager\WorkbookManagerAbstract.php(291): OpenSpout\Writer\XLSX\Manager\WorkbookManager->writeAllFilesToDiskAndZipThem() 4 C:\Services\Apache24\htdocs[localName]\wp-content\plugins\easysecure-import-export-courses-learndash\vendor\openspout\openspout\src\Spout\Writer\WriterMultiSheetsAbstract.php(164): OpenSpout\Writer\Common\Manager\WorkbookManagerAbstract->close() 5 C:\Services\Apache24\htdocs[localName]\wp-content\plugins\easysecure-import-export-courses-learndash\vendor\openspout\openspout\src\Spout\Writer\WriterAbstract.php(241): OpenSpout\Writer\WriterMultiSheetsAbstract->closeWriter() 6 C:\Services\Apache24\htdocs[localName]\wp-content\plugins\easysecure-import-export-courses-learndash\export\export.php(218): OpenSpout\Writer\WriterAbstract->close() 7 C:\Services\Apache24\htdocs[localName]\wp-includes\class-wp-hook.php(341): handle_single_export_course() 8 C:\Services\Apache24\htdocs[localName]\wp-includes\class-wp-hook.php(365): WP_Hook->apply_filters() 9 C:\Services\Apache24\htdocs[localName]\wp-includes\plugin.php(522): WP_Hook->do_action() 10 C:\Services\Apache24\htdocs[localName]\wp-admin\admin-post.php(82): do_action() 11 {main}
    thrown in C:\Services\Apache24\htdocs[localName]\wp-content\plugins\easysecure-import-export-courses-learndash\vendor\openspout\openspout\src\Spout\Writer\Common\Creator\InternalEntityFactory.php on line 50

    I am using WordPress 6.9.4 with PHP 8.3.27, LearnDash Version 4.10.1

You must be logged in to reply to this topic.