j3! php8.1 EB 4.5.0 export users to excel issue

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 9 months ago #159021 by OTWD
Hi just upgraded:
j3.10.11
php8.1
EB 4.5.0

When i go to Registrants > Export Registrants (XSLX format in config) get the following error:
An error has occurred.
0 Class "ZipArchive" not found

CSV export works fine can anyone else replicate this?
Thanks

Success consists of going from failure to failure without loss of enthusiasm.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
1 year 9 months ago #159024 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic j3! php8.1 EB 4.5.0 export users to excel issue
Hello

Please contact your hosting provider, ask them to enable Zip library for your hosting account www.php.net/manual/en/book.zip.php

After that, the error will be gone

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 9 months ago #159052 by OTWD
Hi Tuan,
Hosts have enable the php zip library for all versions of php - still getting the same error. I turned on debug and here is the errors

An error has occurred.
0 Class "ZipArchive" not found
/home/xxx/xxx/administrator/components/com_eventbooking/libraries/vendor/box/spout/src/Spout/Writer/Common/Creator/InternalEntityFactory.php:50
Call stack
# Function Location
1 () JROOT/administrator/components/com_eventbooking/libraries/vendor/box/spout/src/Spout/Writer/Common/Creator/InternalEntityFactory.php:50
2 Box\Spout\Writer\Common\Creator\InternalEntityFactory->createZipArchive() JROOT/administrator/components/com_eventbooking/libraries/vendor/box/spout/src/Spout/Writer/Common/Helper/ZipHelper.php:38
3 Box\Spout\Writer\Common\Helper\ZipHelper->createZip() JROOT/administrator/components/com_eventbooking/libraries/vendor/box/spout/src/Spout/Writer/XLSX/Helper/FileSystemHelper.php:375
4 Box\Spout\Writer\XLSX\Helper\FileSystemHelper->zipRootFolderAndCopyToStream() JROOT/administrator/components/com_eventbooking/libraries/vendor/box/spout/src/Spout/Writer/XLSX/Manager/WorkbookManager.php:75
5 Box\Spout\Writer\XLSX\Manager\WorkbookManager->writeAllFilesToDiskAndZipThem() JROOT/administrator/components/com_eventbooking/libraries/vendor/box/spout/src/Spout/Writer/Common/Manager/WorkbookManagerAbstract.php:291
6 Box\Spout\Writer\Common\Manager\WorkbookManagerAbstract->close() JROOT/administrator/components/com_eventbooking/libraries/vendor/box/spout/src/Spout/Writer/WriterMultiSheetsAbstract.php:166
7 Box\Spout\Writer\WriterMultiSheetsAbstract->closeWriter() JROOT/administrator/components/com_eventbooking/libraries/vendor/box/spout/src/Spout/Writer/WriterAbstract.php:241
8 Box\Spout\Writer\WriterAbstract->close() JROOT/components/com_eventbooking/helper/data.php:1638
9 EventbookingHelperData::excelExport() JROOT/components/com_eventbooking/helper/helper.php:761
10 EventbookingHelper::callOverridableHelperMethod() JROOT/administrator/components/com_eventbooking/controller/registrant.php:148
11 EventbookingControllerRegistrant->export() JROOT/administrator/components/com_eventbooking/libraries/rad/controller/controller.php:285
12 RADController->execute() JROOT/administrator/components/com_eventbooking/eventbooking.php:45
13 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
14 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
15 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
16 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
17 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
18 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51

Success consists of going from failure to failure without loss of enthusiasm.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
1 year 9 months ago #159053 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic j3! php8.1 EB 4.5.0 export users to excel issue
Please ask them to see why the library is enabled but the class ZipArchive (part of the library) is still not available ?

This is something from your host and it's out of our control, sorry

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc