Update access mode method not available in SDK
@aleksandar-cloudinary y travaille déjà.
Depuis le 27/5/2022.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Bug report for Cloudinary PHP SDK
Before proceeding, please update to latest version and test if the issue persists
Describe the bug in a sentence or two.
In the documentation or the admin API, it references an API call to modify the access_mode on an asset as described here using the PHP SDK, but I am unable to find that API call (updateResourcesAccessMode) in the PHP SDK.
Issue Type (Can be multiple)
- Build - Can’t install or import the SDK
- Performance - Performance issues
- Behaviour - Functions aren’t working as expected (such as generate URL)
- Documentation - Inconsistency between the docs and behaviour
- Other (Specify)
Steps to reproduce
- Install PHP SDK (I am using v2.7.1 on PHP 8.1.5).
- Try to make a call to
updateResourcesAccessMode($access_mode, $options = []);as described in the above mentioned documentation. - That method does not exist on the
AdminApiobject.
Error screenshots or Stack Trace (if applicable)


Fatal error: Uncaught Error: Call to undefined method Cloudinary\Api\Admin\AdminApi::updateResourcesAccessMode() in <redacted>\cloudinary-flysystem\src\CloudinaryAdapter.php:446
Stack trace:
#0 <redacted>\cloudinary-flysystem\test.php(62): Brandon14\CloudinaryFlysystem\CloudinaryAdapter->setVisibility('sample.jpg', 'private')
#1 {main}
Next League\Flysystem\UnableToSetVisibility: Unable to set visibility for file sample.jpg. Call to undefined method Cloudinary\Api\Admin\AdminApi::updateResourcesAccessMode() in <redacted>\cloud
inary-flysystem\vendor\league\flysystem\src\UnableToSetVisibility.php:33
Stack trace:
#0 <redacted>\cloudinary-flysystem\src\CloudinaryAdapter.php(454): League\Flysystem\UnableToSetVisibility::atLocation('sample.jpg', 'Call to undefin...', Object(Error))
#1 <redacted>\cloudinary-flysystem\test.php(62): Brandon14\CloudinaryFlysystem\CloudinaryAdapter->setVisibility('sample.jpg', 'private')
#2 {main}
thrown in <redacted>\cloudinary-flysystem\vendor\league\flysystem\src\UnableToSetVisibility.php on line 33
Operating System
- Linux
- Windows
- macOS
- All
Environment and Frameworks (fill in the version numbers)
- PHP Cloudinary SDK version - 2.7.1
- PHP Version - 8.1.5
- Framework (Laravel, Symphony, etc) - N/A
Repository
N/A
- Langage dominant
- PHP
- Étoiles
- 402
- Forks
- 151
- Merge moyen
- 37 min
- PR mergées (30 j)
- 2
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de cloudinary/cloudinary_php
-
API returns 500 "General Error" when trying to upload an image that is larger than the `chunk_size`Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
cloudinary/cloudinary_php#412 · 2 commentaires ·
-
Noticeably reduced performance with version 2Peut-être à nouveau libre @const-cloudinary l’a pris il y a 2095 jours, et aucune pull request n’est ouverte. Ouverte
cloudinary/cloudinary_php#244 · 11 commentaires · 1 réaction · 1 personne assignée ·
Toutes les issues de cloudinary/cloudinary_php
Issues similaires
-
Old /download.php attachment links: redirect drops the subfolder, nginx.example.conf returns 404OuverteBug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 Moins d'une heure Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
0. Needs triage 35-feedback bug
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
wpgenius/stackfolio#22 ·
-
Import-loop editor checks fail on non-English sites: selectors assume English wp-admin labelsOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Automattic/static-site-importer#3024 ·
Les mainteneurs répondent en général sous 1 jour