Stephen
Forum Replies Created
-
Hi Freddie!
Many thanks for your quick response and the fix – I updated to the new version and can confirm that it resolves the warning 🙂
Keep up the great work!
Cheers,
Stephen
I just came across this problem and the changes are quite small – as detailed here: https://contactform7.com/2016/12/03/contact-form-7-46/. Only a few class and function names need to be changed.
Here’s my updated version if it helps: https://pastebin.com/N9MxaF2e
Forum: Plugins
In reply to: [SVG Support] 500 Server Error in AdminThanks @benbodhi, I can confirm it’s working for me too 🙂 Great job!
Forum: Plugins
In reply to: [SVG Support] 500 Server Error in AdminWow, quick reply! Thanks @benbodhi 🙂
Good luck and please let me know if you need any further details from this end.
Cheers,
Stephen
Forum: Plugins
In reply to: [SVG Support] 500 Server Error in Admin@benbodhi – I came across this error when working on a site locally that didn’t have all the uploads synchronised (normally I just redirect/proxy any missing uploads to the production server via a rewrite rule).
Although I understand the need for the file to be present, I think at the very least, a missing file should be handled more gracefully. In the snippet you provided above, it doesn’t seem to handle a file that is simply missing. To do this, it should check if the file exists inside the
bodhi_svgs_get_dimensionsfunction, where it tries to load the file as XML.I haven’t had time to look for a proper solution but a start would be something like this in the first line of the
bodhi_svgs_get_dimensionsfunction:if (! is_file($svg) ) return (object) array( 'width' => 0 , 'height' => 0 );Then at least it won’t try to load a non-existent file, leading to the fatal error when trying to access properties that are not set… If the file really doesn’t exist, it’s impossible to know the dimensions so that’s why I set width and height to zero. What do you think?
Get well soon 🙂