Pim-community-dev: After upgrade to 3.2.14 Rabbit Transit images in grid is not showing

Created on 22 Oct 2019  路  13Comments  路  Source: akeneo/pim-community-dev

After upgrade we just get the default Akeneo thumbnail in product grid and inside the product page, if we hit download the image gets downloaded successfully and it's correct.

Here is the system info:

[Edition]
CE

[Version]
3.2.14

[Environment]
prod

[Install time]
2019-08-16T08:58:37+0000

[Server version]
nginx/1.14.0

[Number of channels]
2

[Number of locales]
1

[Number of products]
4762

[Number of product models]
0

[Number of variant products]
0

[Number of families]
2

[Number of users]
10

[Number of categories]
285

[Number of category trees]
3

[Max number of categories in one category]
33

[Max number of category levels]
4

[Number of product values]
145880

[Average number of product values by product]
31

[Average number of potential product values by family]
56

[Max number of potential product values by family]
57

[Number of attributes]
49

[Number of scopable attributes]
1

[Number of localizable attributes]
0

[Number of localizable and scopable attributes]
7

[Number of attributes useable as grid filter]
36

[Average percentage of scopable attributes per family (%)]
3

[Average percentage of localizable attributes per family (%)]
0

[Average percentage of localizable and scopable attributes per family (%)]
15

[Average number of attributes per family]
48

[OS version]
Linux pim-dev 4.15.0-1052-aws #54-Ubuntu SMP Tue Oct 1 15:43:26 UTC 2019 x86_64

[PHP version]
7.2.23-1+ubuntu18.04.1+deb.sury.org+1

[MySQL version]
5.7.27-0ubuntu0.18.04.1

[PHP extensions]
Core
date
libxml
openssl
pcre
zlib
filter
hash
Reflection
SPL
sodium
session
standard
cgi-fcgi
mysqlnd
PDO
xml
apcu
bcmath
calendar
ctype
curl
dom
mbstring
fileinfo
ftp
gd
gettext
iconv
imagick
intl
json
exif
mysqli
pdo_mysql
apc
posix
readline
shmop
SimpleXML
soap
sockets
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xmlreader
xmlwriter
xsl
zip
Phar
Zend OPcache

[Registered bundles]
Akeneo\ChannelBundleAkeneoChannelBundle
Akeneo\Pim\EnrichmentBundleAkeneoPimEnrichmentBundle
Akeneo\Pim\StructureBundleAkeneoPimStructureBundle
Akeneo\PlatformBundleAnalyticsBundle\PimAnalyticsBundle
Akeneo\PlatformBundle\CatalogVolumeMonitoringBundle\PimCatalogVolumeMonitoringBundle
Akeneo\PlatformBundle\DashboardBundle\PimDashboardBundle
Akeneo\PlatformBundle\ImportExportBundle\PimImportExportBundle
Akeneo\PlatformBundle\InstallerBundle\PimInstallerBundle
Akeneo\PlatformBundle\NotificationBundle\PimNotificationBundle
Akeneo\PlatformBundle\UIBundle\PimUIBundle
Akeneo\ToolBundleApiBundle\PimApiBundle
Akeneo\ToolBundleBatchBundleAkeneoBatchBundle
Akeneo\ToolBundleBatchQueueBundleAkeneoBatchQueueBundle
Akeneo\ToolBundleBufferBundleAkeneoBufferBundle
Akeneo\ToolBundle\ClassificationBundleAkeneoClassificationBundle
Akeneo\ToolBundle\ConnectorBundle\PimConnectorBundle
Akeneo\ToolBundle\ElasticsearchBundleAkeneoElasticsearchBundle
Akeneo\ToolBundle\FileStorageBundleAkeneoFileStorageBundle
Akeneo\ToolBundle\MeasureBundleAkeneoMeasureBundle
Akeneo\ToolBundle\StorageUtilsBundleAkeneoStorageUtilsBundle
Akeneo\ToolBundle\VersioningBundleAkeneoVersioningBundle
Akeneo\UserManagementBundle\PimUserBundle
DoctrineBundle\DoctrineBundle\DoctrineBundle
DoctrineBundle\DoctrineCacheBundle\DoctrineCacheBundle
DoctrineBundle\FixturesBundle\DoctrineFixturesBundle
DoctrineBundle\MigrationsBundle\DoctrineMigrationsBundle
FOS\JsRoutingBundle\FOSJsRoutingBundle
FOS\OAuthServerBundle\FOSOAuthServerBundle
FOS\RestBundle\FOSRestBundle
Liip\ImagineBundle\LiipImagineBundle
Oneup\FlysystemBundle\OneupFlysystemBundle
OroBundle\ConfigBundle\OroConfigBundle
OroBundle\DataGridBundle\OroDataGridBundle
OroBundle\FilterBundle\OroFilterBundle
OroBundle\PimDataGridBundle\PimDataGridBundle
OroBundle\PimFilterBundle\PimFilterBundle
OroBundle\SecurityBundle\OroSecurityBundle
OroBundle\TranslationBundle\OroTranslationBundle
SensioBundle\FrameworkExtraBundle\SensioFrameworkExtraBundle
SymfonyBundle\FrameworkBundle\FrameworkBundle
SymfonyBundle\MonologBundle\MonologBundle
SymfonyBundle\SecurityBundle\SecurityBundle
SymfonyBundle\SwiftmailerBundle\SwiftmailerBundle
SymfonyBundle\TwigBundle\TwigBundle

Most helpful comment

Yep :)

I found the issue here : https://github.com/akeneo/pim-community-dev/blob/3.2/src/Akeneo/Pim/Enrichment/Bundle/Controller/Ui/FileController.php#L100

A bad return. Dunno if it's due to a bad pullup or a bad test, but i will fix it.

Stay tuned.

All 13 comments

Hello,
I know it's a common question but did you refresh you cache?
The easiest is to run these commands in console:

rm -rf app/cache/*

Also, you can try to reload/restart fpm because sometimes APC cache is not refreshed.
And finally, you can also refresh your front assets, by using the bin/pim-front.sh script.

Hi.

Yes it鈥檚 cleared, I have even rebooted the server 馃槄

I will try to run that script.

I have the same issue here on our latest Akeneo install. Will try clear the cache and reload the front assets.

The front end URL for an image attribute in the new pim is:
/media/show/1%252F5%252Fd%252F7%252F15d7b881b2467a4205f8518880f08da66f22dd7f_2794.jpg/thumbnail_small
whereas the download link is:
/media/download/1%252F5%252Fd%252F7%252F15d7b881b2467a4205f8518880f08da66f22dd7f_2794.jpg

When accessing the media/show/* version of the url I get a 500 error, whereas the download link downloads the expected image.

The error logs are empty.

Running the suggested
rm -rf var/cache/*
bin/console --env=prod pim:installer:assets --symlink --clean
yarn run less
yarn run webpack
Didn't result in the images coming back.

I get the same result @srjwebster. Haven't found a solution yet

On a working version when visiting that address you're forwarded to the location of the file on the server (in a series of directories with single character varchar names), on the 3.13 release this address can be visited manually, but the redirect doesn't work.

@jmleroux do you have any other tips?

Yep :)

I found the issue here : https://github.com/akeneo/pim-community-dev/blob/3.2/src/Akeneo/Pim/Enrichment/Bundle/Controller/Ui/FileController.php#L100

A bad return. Dunno if it's due to a bad pullup or a bad test, but i will fix it.

Stay tuned.

Fixed in #10948

CI is running

Awesome support!

Good stuff guys, beat me too it. I was close, hard to follow on server without IDE completion. Just patched mine directly on server, will upgrade version later.

Found the file in /src/Akeneo/Pim/Enrichment/Bundle/Controller/Ui/FileController.php

Found the file in /src/Akeneo/Pim/Enrichment/Bundle/Controller/Ui/FileController.php

You were very close. I have the luck to have all versions up at all time, so that's why i was the first. But it is a short win! :stuck_out_tongue_winking_eye:

Green CI.
I will deploy it on a test server before tagging. You can also test the branch on your side if you want.

@jmleroux Works, closing this now. Thank you again.

Was this page helpful?
0 / 5 - 0 ratings