entity_word possible php 8.1 issue

Created on 24 July 2022, over 2 years ago
Updated 27 June 2023, almost 2 years ago

Problem/Motivation

Deprecated function: Return type of PhpOffice\PhpWord\Shared\XMLWriter::writeAttribute($name, $value) should either be compatible with XMLWriter::writeAttribute(string $name, string $value): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 571 of vendor/composer/ClassLoader.php).

include('/var/www/html/core/includes/bootstrap.inc') (Line: 571)
Composer\Autoload\includeFile('/var/www/html/vendor/composer/../phpoffice/phpword/src/PhpWord/Shared/XMLWriter.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('PhpOffice\PhpWord\Shared\XMLWriter') (Line: 90)
PhpOffice\PhpWord\Writer\Word2007\Part\AbstractPart->getXmlWriter() (Line: 66)
PhpOffice\PhpWord\Writer\Word2007\Part\ContentTypes->write() (Line: 138)
PhpOffice\PhpWord\Writer\Word2007->save('/tmp/PhpWordg4GA6D') (Line: 133)
Drupal\entity_word\Controller\EntityWordController->nodeWord('433')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
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: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Use D9.4.3 on php 8.1.2
print a std article

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

3.1

Component

Code

Created by

🇦🇹Austria maxilein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024