Good day, v.3.4 PHP 8.1 - Started to receive below error while trying to export DOCX templates, which were working perfectly fine before. Can you please check urgently and advise? Thank you.
Fatal error: Uncaught Error: Undefined constant PhpOffice\PhpWord\Style\Table::WIDTH_PERCENT in /home/smartf16/public_html/plugins/ext/classes/templates/export_templates_blocks.php:818 Stack trace: #0 /home/smartf16/public_html/plugins/ext/classes/templates/export_templates_blocks.php(909): export_templates_blocks->prepare_table_settings(Object(settings)) #1 /home/smartf16/public_html/plugins/ext/classes/templates/export_templates_blocks.php(560): export_templates_blocks->prepare_template_table_blocks('203', '33', Array, Object(settings)) #2 /home/smartf16/public_html/plugins/ext/classes/templates/export_templates_blocks.php(473): export_templates_blocks->prepare_template_output_items(Object(mysqli_result), '203', '33', Object(settings)) #3 /home/smartf16/public_html/plugins/ext/classes/templates/export_templates_blocks.php(72): export_templates_blocks->prepare_template_sub_entity_blocks('203', '33', Object(settings)) #4 /home/smartf16/public_html/plugins/ext/classes/templates/export_templates_blocks.php(48): export_templates_blocks->prepare_template_blocks() #5 /home/smartf16/public_html/plugins/ext/classes/templates/export_templates_file.php(89): export_templates_blocks->prepare_template_file(27, 1645) #6 /home/smartf16/public_html/plugins/ext/classes/templates/export_templates_file.php(31): export_templates_file->save_docx(Array) #7 /home/smartf16/public_html/modules/items/actions/export_template.php(260): export_templates_file->save('26', 'docx') #8 /home/smartf16/public_html/index.php(22): require('/home/smartf16/...') #9 {main} thrown in /home/smartf16/public_html/plugins/ext/classes/templates/export_templates_blocks.php on line 818
Urgent - Template export error after upgrading to 3.4
- support
- Site Admin
- Posts: 6222
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Urgent - Template export error after upgrading to 3.4
make sure file plugins/ext/classes/templates/export_templates_blocks.php was rewritten during update.