Product CSV Import - Placeholder wrong interpreted
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Product CSV Import - Placeholder wrong interpreted
For my product import I use the following config for imported files.
In earlier versions of aimeos it works like expected.
Now I get this directory name for the placeholders.
In earlier versions of aimeos it works like expected.
Now I get this directory name for the placeholders.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Product CSV Import - Placeholder wrong interpreted
I debugged it with an example path and output the different parts.
I don't know exactly what is happening and going wrong here.
Maybe you can say more about it.
I don't know exactly what is happening and going wrong here.
Maybe you can say more about it.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Product CSV Import - Placeholder wrong interpreted
I got it.
Your documentation is wrong https://aimeos.org/docs/2022.x/cronjobs ... t/#backups
For the placeholders you reference to the strftime() function of PHP but you use DateTime::format here https://www.php.net/manual/en/datetime.format.php
Your documentation is wrong https://aimeos.org/docs/2022.x/cronjobs ... t/#backups
For the placeholders you reference to the strftime() function of PHP but you use DateTime::format here https://www.php.net/manual/en/datetime.format.php
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
Re: Product CSV Import - Placeholder wrong interpreted
Thanks for pointing that out!
As strftime() is deprecated since PHP 8.1, date_format() is used instead and we've added a compatibility layer so some strftime() placeholders like "%Y", "%m", "%d" and "%H" are understood but up to now not "%M" and "%S". The later two are now translated to "%i" and "%s" automatically:
https://github.com/aimeos/aimeos-base/b ... #L220-L230
Also, the documentation has been updated so the date_create() placeholders should be now used instead:
https://aimeos.org/docs/latest/cronjobs ... t/#backups
As strftime() is deprecated since PHP 8.1, date_format() is used instead and we've added a compatibility layer so some strftime() placeholders like "%Y", "%m", "%d" and "%H" are understood but up to now not "%M" and "%S". The later two are now translated to "%i" and "%s" automatically:
https://github.com/aimeos/aimeos-base/b ... #L220-L230
Also, the documentation has been updated so the date_create() placeholders should be now used instead:
https://aimeos.org/docs/latest/cronjobs ... t/#backups
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star