https://www.drupal.org/project/cloudinary/issues/3013451
This issue introduced the context property.
I have this error message because of using PHP 8.2:
Deprecated function: Creation of dynamic property Drupal\cloudinary_stream_wrapper\StreamWrapper\CloudinaryStreamWrapper::$context is deprecated in Drupal\Core\Image\Image->__construct() (line 54 of core/lib/Drupal/Core/Image/Image.php).
I can't find any place where "context" is actually used in the Wrapper.
If one can show me where is it used indeed, I'll be glad to add the property.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3394440-fix-dynamic-property.patch | 656 bytes | aurora.luzzardi |
| #2 | 3394440-Useless-context-in-the-streamer.patch | 880 bytes | sashainparis |
Issue fork cloudinary-3394440
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sashainparisComment #3
sashainparisThis first patch provided is not working: removing the context key here is not enough. Might be present in the resource itself?
Not sure if this makes sense be is not enough - or if it's just a wrong direction.
Comment #5
adaddinsaneThe issue is avoided by adding a "$context" property in the CloudinaryStreamWrapper so that it's not dynamic.
Comment #6
adaddinsaneProblem continues to exist for Drupal 10.
Comment #7
aurora.luzzardiI have a patch to add the $context on it, I attached here.
Comment #8
aurora.luzzardi