After install, emptying cache and export in XLSX:

The website encountered an unexpected error. Please try again later.
Error: Class 'PhpOffice\PhpSpreadsheet\Spreadsheet' not found in Drupal\webform_xlsx_export\Plugin\WebformExporter\XlsxExporter->createExport() (line 42 of modules/contrib/webform_xlsx_export/src/Plugin/WebformExporter/XlsxExporter.php).
Drupal\webform_xlsx_export\Plugin\WebformExporter\XlsxExporter->createExport() (Line: 694)
Drupal\webform\WebformSubmissionExporter->writeHeader() (Line: 680)
Drupal\webform\WebformSubmissionExporter->generate() (Line: 130)
Drupal\webform\Controller\WebformResultsExportController->index(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

No documentation, no requirements... what do i Miss?

I put phpspreadsheet library in libraries folder with no more luck...
Any help to do this module working would be greatly appreciated!

Comments

Macruz created an issue. See original summary.

tranzistor’s picture

Open console , go into yout root folder and run command:

composer require 'drupal/webform_xlsx_export'

prudloff’s picture

The module requires : https://github.com/PHPOffice/PhpSpreadsheet
When installing the module with Composer, it will fetch this dependency automatically.

I am not sure what the standard practice is for installing dependencies like this without Composer.
I will add a README explaining the requirements and maybe display a nicer error when PhpSpreadsheet is not available.

Macruz’s picture

Thanks for answers, but my employer forbidden composer: i can't use it. (Yes, this exists and i loose lots of time for everything)

I will continue to search manual installation procedure :(

  • prudloff committed 7f6b2a8 on 8.x-1.x
    Issue #3109445: Incomplete requierements ?
    
jeroent’s picture

Status: Active » Fixed
Macruz’s picture

Fixed?
Great! What's the solution ?

Still need it...

prudloff’s picture

I think you could use this: https://www.drupal.org/project/ludwig

Macruz’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.