No uploaded images displayed

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!
sieg01
Posts: 13
Joined: 01 Jan 1970, 00:00

No uploaded images displayed

Post by sieg01 » 06 Nov 2023, 14:10

Hi @ all.

I am rephrasing the problem since the first description was wrong.

When selecting a product picture in the BE and press the upload button, then everything looks fine.
Info : Item saved successfully.
The upload is fine and the file is with in e.g.: uploads/tx_aimeos/1.d/preview/3/4/

But my Aimeos install doesn't show the pictures. Neither in the BE nor in the FE.

In the BE, the field just shows the image name.
When touching the image name with the mouse, it says: "keine Datei hochgeladen".

In the FE I realized that the picture path is instead of this
localhost/MY_LOCAL_MACHINE/uploads/tx_aimeos/1.d/preview/3/4/3475f3aviaid_remote.webp?v=20231106105604
this:
localhost/uploads/tx_aimeos/1.d/preview/3/4/3475f3aviaid_remote.webp?v=20231106105604

Which settings do I need to add/change, so Aimeos knows, that it is within /MY_LOCAL_MACHINE/

Thanks.

FYI: The TYPO3 install itself works just fine.

PHP 8.2.7 on Debian stable
TYPO3 12.4.7
Aimeos 23.10.1
I installed pages: 2023.04.t3d

Nachschlag:
Another problem, probably related to the same setting.

Aimeos BE - Settings - Basic

- Upload shop logo
- Upload shop item

Upload looks fine;
"Info: Item saved successfully."
Picture and Icon are stored.

But then "no picture in the BE fields" nor in the front end.
And when touching the field in the BE with the mouse, it says: "keine Datei ausgewählt".

But the files were saved here: /var/www/html/t1/uploads/tx_aimeos/1.d/

sieg01
Posts: 13
Joined: 01 Jan 1970, 00:00

Re: No uploaded images displayed

Post by sieg01 » 10 Nov 2023, 06:21

New, clean install:

Debian Stable
PHP 8.2.7
TYPO3 12.4.7
This time aimeos_dist 23.7.1

Same issue as described above.
Aimeos saves the images within /var/www/html/aimeos_testing/uploads/tx_aimeos/1.d/

But these images are neither displayed in the Backend nor in the Frontend.

Instead of this path:
localhost/aimeos_testing/uploads/tx_aimeos/1.d/preview/3/4/3475f3aviaid_remote.webp?v=20231106105604
the install wants to grap the images here:
localhost/uploads/tx_aimeos/1.d/preview/3/4/3475f3aviaid_remote.webp?v=20231106105604

Site Config file was created and entry point is /aimeos_testing/
Config.yaml looks good to me.

What else am I missing?
What did I forget during install/config process?

Thanks.

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

Re: No uploaded images displayed

Post by aimeos » 10 Nov 2023, 07:46

TYPO3 installations in sub-folders are not supported well and the TYPO3 method doesn't seem to return the sub-folder here:
https://github.com/aimeos/aimeos-typo3/ ... rce.php#L3

As a workaround, you could overwrite the resource/fs* settings from that file in your own Aimeos extension:
https://github.com/aimeos/aimeos-typo3/ ... hp#L40-L51
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sieg01
Posts: 13
Joined: 01 Jan 1970, 00:00

Re: No uploaded images displayed

Post by sieg01 » 10 Nov 2023, 09:06

Did you receive already any praises today? If not - then here the first one:

"You are my hero!"
Thanks!

This:
aimeos wrote: 10 Nov 2023, 07:46 As a workaround, you could overwrite the resource/fs* settings from that file in your own Aimeos extension:
https://github.com/aimeos/aimeos-typo3/ ... hp#L40-L51
did the trick.

Now it looks like:

Code: Select all

	'fs' => [
		'adapter' => 'Standard',
		'baseurl' => '/t3/uploads/tx_aimeos',
		'basedir' => $publicPath . '/uploads/tx_aimeos',
		'tempdir' => $publicPath . '/typo3temp',
	],
	'fs-media' => [
		'adapter' => 'Standard',
		'baseurl' => '/t3/uploads/tx_aimeos',
		'basedir' => $publicPath . '/uploads/tx_aimeos',
		'tempdir' => $publicPath . '/typo3temp',
	],
	'fs-mimeicon' => [
		'adapter' => 'Standard',
		'baseurl' => $assetPath . '/t3/Images/Mimeicons',
		'basedir' => $publicPath . $assetPath . '/Images/Mimeicons',
		'tempdir' => $publicPath . '/typo3temp',
and the install works fine.
Pictures/Images are stored where they belong. FE and BE display them.

Am I really the first one with such an setup issue?

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

Re: No uploaded images displayed

Post by aimeos » 14 Nov 2023, 07:53

sieg01 wrote: 10 Nov 2023, 09:06 Am I really the first one with such an setup issue?
Like said, TYPO3 isn't meant to be installed in a sub-folder, so nobody does because it may lead to other problems too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply