Update access mode method not available in SDK
@aleksandar-cloudinary đang làm issue này rồi.
Từ ngày 27/5/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 402
- Fork
- 151
- Merge trung bình
- 37 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudinary/cloudinary_php
-
API returns 500 "General Error" when trying to upload an image that is larger than the `chunk_size`Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
cloudinary/cloudinary_php#412 · 2 bình luận ·
-
Noticeably reduced performance with version 2Có thể làm lại được @const-cloudinary đã nhận 2095 ngày trước và không có pull request nào đang mở. Đang mở
cloudinary/cloudinary_php#244 · 11 bình luận · 1 reaction · 1 người được giao ·
Tất cả issue của cloudinary/cloudinary_php
Issue tương tự
-
Old /download.php attachment links: redirect drops the subfolder, nginx.example.conf returns 404Đang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage 35-feedback bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
wpgenius/stackfolio#22 ·
-
Import-loop editor checks fail on non-English sites: selectors assume English wp-admin labelsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Automattic/static-site-importer#3024 ·
Maintainer thường phản hồi trong vòng 1 ngày