FreshBooks import stuck on 0%
Upon attempting an import from FreshBooks, the import may stall. Your error logs will report something like this…
FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'XmlDomConstruct' not found in ... while reading response header from upstream, client: 2001:470:8c62:beef:8eae:4cff:feff:160c, server: localhost, request: "POST /wp-admin/admin-ajax.php HTTP/1.0", upstream: ...
This is the result of the bundled FreshBooks API library using PHP short tags. To fix this error, you can etiher:
1) Adjust the XmlDocumentConstruct library
2) Turn on short_opentags within your PHP configuration.