Bug #100045
closedImpExp ParseError CLI
0%
Description
Importing XML-data via CLI won't work in non-composer-environment with error:
PHP Parse error: syntax error, unexpected '(' in /var/www/virtual/domain.de/htdocs/typo3_src-11.5.24/vendor/composer/autoload_real.php on line 43
foreach ($filesToLoad as $fileIdentifier => $file) {
($requireFile)($fileIdentifier, $file);
}
I'm using TYPO3 11.5.24 on Debian stretch and php 8.0.17
btw, Why can't I import XML via backend? There is only a menu-entry "import from *.t3d" and using any xml-file ends in parsing error...
Updated by Georg Ringer over 1 year ago
are you sure you are using PHP CLI version of 8? please check with php -v
, as it looks like https://github.com/composer/composer/issues/10714
Updated by Georg Ringer over 1 year ago
- Status changed from New to Needs Feedback
Updated by Jens Körte over 1 year ago
Yes, you are right. damn. php-CLI-version is still 5.6.40
I've tried:
/usr/bin/php8.0 typo3/sysext/core/bin/typo3 impexp:import --enable-log fileadmin/Indonesien.xml 168
and now I got another error:
[ERROR] Importing fileadmin/Indonesien.xml to page 168 failed.
but this must be a problem within my xml-file.
Updated by Andreas Kienast over 1 year ago
- Status changed from Needs Feedback to Closed
Closed as the issue was a misconfiguration.