-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 error when saving page #941
Comments
Additional info from local debugging: this is the unserialized meta data from one of the images causing the error: This is the raw unserialized meta data from the database: Array
) This is the var_dump of the meta the plugin is using at the point of exception - you can see the width and height is missing: array(4) { |
This was directly related to SVG support in Wordpress. The SVG plug we were using (SVG Support - most popular!) was not setting the widths for SVGs where WP's attachment functions were not. We installed a different plugin (Safe SVG) and the problem is solved. I think there is still a bug here where if this does happen, it would be useful to set a default or to throw an error more helpful to customers to find a solution rather than spending time debugging core WP attachment handling and Cloudinary's plugin code. |
Hi @nomadic-energy-dev, Is it only a specific SVG that was throwing the error? Would you have the SVG in question so I can have a look? Could you also share if |
Thanks - enabling svg support resolved this. Could we improve error handling to catch and report a more useful error in this case? |
@nomadic-energy-dev awesome news! Glad it fixed the issue. I'll share this with our development team in case there is anything they can do. |
Saving some pages with the Cloudinary plugin installed causes the following error: Undefined array key "full" {"userId":1,"exception":"[object] (ErrorException(code: 0): Undefined array key "full" at /home/devadmin/sites/test/public/public/content/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-media.php:874
It appears that an image has been cropped, but there's no "full" meta data for the width, so the plugin throws an exception and exits.
Additional context
cloudinary-report-1708942593.json
The text was updated successfully, but these errors were encountered: