Skip to content

[BUG] Namespace for DOMXPath missing in MetsDocument #1321

@BFallert

Description

@BFallert

Description

When I want to save a document in Typo3 BE, I get several error messages. The error message occurs both when I want to save the data record without or with changes.

Each of the two lines is repeated x times:

12 times:
PHP Warning
Core: Error handler (BE): PHP Warning: DOMXPath::evaluate(): Undefined namespace prefix in /var/www/typo3/packages/bfallert/presentation/Classes/Common/MetsDocument.php line 797

6 time:
PHP Warning
Core: Error handler (BE): PHP Warning: DOMXPath::evaluate(): Undefined namespace prefix in /var/www/typo3/packages/bfallert/presentation/Classes/Common/MetsDocument.php line 850

Reproduction

Steps to reproduce the behaviour:

  1. Open Typo3-BE
  2. Select your "Data-Folder"
  3. Select / Click on "List"
  4. Scroll down to "Documents"
  5. Select a document
  6. Click on "edit record"
  7. Click on "Save"
  8. See the error

Expected Behavior

No error message

Screenshots and Examples

image

Environment

  • OS version: Debian GNU/Linux 11 (bullseye)
  • RDBMS version: MySQL 5.5.5-10.5.23-MariaDB-0+deb11u1
  • Apache Solr version: 8.11.2
  • TYPO3 version: 10.4.38
  • PHP version: 7.4.33

Additional Context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ☇ bugA non-security related bug.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions