Project

General

Profile

Actions

Bug #100045

closed

ImpExp ParseError CLI

Added by Jens Körte over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
-
Start date:
2023-02-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

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...

Actions #1

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

Actions #2

Updated by Georg Ringer over 1 year ago

  • Status changed from New to Needs Feedback
Actions #3

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.

Actions #4

Updated by Andreas Kienast over 1 year ago

  • Status changed from Needs Feedback to Closed

Closed as the issue was a misconfiguration.

Actions

Also available in: Atom PDF