You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2019. It is now read-only.
We have a multi-site setup with many sites.
Each site will be run by its own Content Manager.
All sites share the same assets so that we don't have many duplicated assets when content is published on more then one site.
But we wanted each Content Manager to only see his assets in the control panel.
All worked fine untill we started to implement transforms via templates.
Then we noticed that everything which is uploaded by Super Admin cannot be transformed, instead we get this error: Call to a member function getVolume() on null
If we visit the front end as Super Admin, images get transformed normally.
When we removed the field "Uploaded By" from the volume we were testing on, images were transformed normally for everyone.
If Super Admin uploads the image, when Content Manager or Guest visits the site, images will not transform.
If Content Manager uploads the image, images will normally transform for everyone who visits the site.
PHP version | 7.2.10
Database driver & version | MySQL 5.6.38
Image driver & version | Imagick 3.4.3RC4 (ImageMagick 6.9.4-10)
Craft edition & version | Craft Pro 3.0.29
Thanks!
The text was updated successfully, but these errors were encountered:
Also, just to report, image transforms didn't work for us after import aswell.
As soon as we deinstalled Asset Ownership addon, transforms worked.
So for now, will go on without the addon.
Just modify one line of code will fix this issue:
asset-ownership/src/AssetOwnership.php line 77 change to if( Craft::$app->request->isCpRequest && !Craft::$app->user->getIsAdmin() && !Craft::$app->user->checkPermission('viewPeerAssets') )
We have a multi-site setup with many sites.
Each site will be run by its own Content Manager.
All sites share the same assets so that we don't have many duplicated assets when content is published on more then one site.
But we wanted each Content Manager to only see his assets in the control panel.
All worked fine untill we started to implement transforms via templates.
Then we noticed that everything which is uploaded by Super Admin cannot be transformed, instead we get this error:
Call to a member function getVolume() on null
If we visit the front end as Super Admin, images get transformed normally.
When we removed the field "Uploaded By" from the volume we were testing on, images were transformed normally for everyone.
PHP version | 7.2.10
Database driver & version | MySQL 5.6.38
Image driver & version | Imagick 3.4.3RC4 (ImageMagick 6.9.4-10)
Craft edition & version | Craft Pro 3.0.29
Thanks!
The text was updated successfully, but these errors were encountered: