Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Began getting this fatal error when trying to import a translated xlf file to a job.
Fatal error: Call to a member function registerXPathNamespace() on a non-object in /sites/all/modules/contrib/tmgmt/translators/file/tmgmt_file.format.xliff.inc on line 275
Not many details figured out just yet. Will add more as I continue to debug. Starting this issue off to see if anyone else is getting this error and might have some insight. Couldn't find anything related to it in any of the other issues.
Comments
Comment #2
paboden CreditAttribution: paboden commentedComment #3
paboden CreditAttribution: paboden commentedComment #4
nmalinoski CreditAttribution: nmalinoski commentedThis occurred for me when importing XLIFF with badly-encoded HTML entities, such as
&„
and&“
, in the translated text. Correcting these entities (As in removing the second, rogue ampersand) avoided the PHP error and the warnings.What's odd is that I've imported XLIFF with non-XML entities before (I remember now getting a blank white screen before; display_errors must have been turned off on that server.”
, for example); but, while I've gotten similar import warnings (below), I did not receive the PHP error until today with this specific condition.Here's a sample of the warnings I received after hitting the back button from the PHP error: