Another error when adding productimages

Questions around the TYPO3 integration and plugins
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!
red-seadog
Posts: 20
Joined: 17 Jan 2019, 17:30

Error when adding an image to a product

Post by red-seadog » 21 Feb 2019, 21:17

Hello,

I am using typo3 9.5.4 with aimeos 19.1.0.
When I try to add an image to a product the following error shows up:
File system not configured, ..../aimeos/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mwlib/src/MW/Filesystem/Factory.php:32

The images do not show up in the frontend. Any ideas what this is and how to fix it?
Thanks,
Erwin

red-seadog
Posts: 20
Joined: 17 Jan 2019, 17:30

Another error when adding productimages

Post by red-seadog » 22 Feb 2019, 09:07

Also this error shows up when trying to add a productimage:

Fout SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-product-P0Y1M0W0D-interval' for key 'unq_msatt_sid_dom_cod_ty', ....../aimeos/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mwlib/src/MW/DB/Statement/DBAL/Simple.php:91.

typo3 9.5.4 with aimeos 19.1.0

Any ideas how to fix this?
Thanx,
Erwin

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Another error when adding productimages

Post by aimeos » 22 Feb 2019, 10:33

Thanks for testing the beta release :-)
Which PHP version are you using?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

red-seadog
Posts: 20
Joined: 17 Jan 2019, 17:30

Re: Another error when adding productimages

Post by red-seadog » 22 Feb 2019, 10:42

We use PHP 7.2.15

Regards,
erwin

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Another error when adding productimages

Post by aimeos » 22 Feb 2019, 15:18

Your installation seems to screwed up. The filesystem configuration is used from here:
https://github.com/aimeos/aimeos-typo3/ ... ce.php#L19

Is that file still like in the repo? Did you overwrite the "resource.fs" configuration somewhere?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

red-seadog
Posts: 20
Joined: 17 Jan 2019, 17:30

Re: Another error when adding productimages

Post by red-seadog » 11 Apr 2019, 09:25

Hi,

thanks for replying. I checked the setup and it is exactly as you described.
No change in the 'resource.fs' configuration.
Any other ideas?
Thanks,
erwin

red-seadog
Posts: 20
Joined: 17 Jan 2019, 17:30

Re: Another error when adding productimages

Post by red-seadog » 11 Apr 2019, 15:01

After extensive debugging it appears that
1) the config settings are not correctly passed. Although the adapter has been set ('Standard'), it appears to be empty; setting this hard-coded in the resource.php file, 'solves' this problem.
2) the usage of filename '.secure' causes also problems. Within the standard typo3 .htaccess file the use of '.secure' as filename is not allowed. Only the name of '.well-known' as directory name is allowed. The usage of '.secure' makes it (unnecessary?) complicated. Just using uploads/tx_aimeos works fine.

The error-message 'filesystem not configured' is a little confusing in this context :cry:

Hope this helps,
Kind regards,
erwin

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Another error when adding productimages

Post by aimeos » 12 Apr 2019, 07:54

The filesystem problem is fixed in the upcoming 19.4 release. Here's a pre-release if you want to test:
https://aimeos.org/fileadmin/download/a ... 1-pre6.zip

The ".secure" directory is for files that must not be accessible via HTTP and are used for e.g. the digial product downloads. The TYPO3 .htaccess file protects directories starting with a dot.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

red-seadog
Posts: 20
Joined: 17 Jan 2019, 17:30

Re: Another error when adding productimages

Post by red-seadog » 13 Apr 2019, 11:00

Ok, thnx. Will download the pre-release and have a look at it.
Kind regards,
erwin

Post Reply