Hallo Contao Community und ein Frohes Neues!
Ich habe ein Modul was mir ein pdf aus einem HTML Template generiert. Benutzt wird ein phar File inkludiert.
PHP-Code:
require_once 'typesetsh.lib.phar';
Das Phar liegt im selben Ordner wie das Modul, welches es benutzt.
Das habe ich auf Contao 4.4.57 geschrieben und es funktioniert auch.
Jetzt haben wir ein Update auf Contao 4.9.20 gemacht und seid dem bekomme ich folgenden Fehler:
PHP-Code:
request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: require(): Failed opening required 'phar:///html/contao/vendor/localbranding-de/pdfbob-bundle/src/Module/typesetsh.lib.phar/vendor/autoload.php' (include_path='.:/usr/lib/mw/php/7.2.34/lib/php')" at /html/contao/vendor/localbranding-de/pdfbob-bundle/src/Module/typesetsh.lib.phar line 4 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Compile Error: require(): Failed opening required 'phar:///html/contao/vendor/localbranding-de/pdfbob-bundle/src/Module/typesetsh.lib.phar/vendor/autoload.php' (include_path='.:/usr/lib/mw/php/7.2.34/lib/php') at /html/contao/vendor/localbranding-de/pdfbob-bundle/src/Module/typesetsh.lib.phar:4)"} []
Anscheinend funktioniert ein require im Phar File selbst nicht mehr.
Die autoload.php im Phar File existiert zumindest, aber ansonsten weiß ich im Moment nicht woher der Fehler kommt.
Lesezeichen