I have looked into this issue further as it is affecting several of the sites I manage. To investigate I set up a new site in local with the default theme and only added two plugins — ‘branda’, and ‘safe svg’ which I use to be able to upload svg images to the media library.
Then I activated only the admin bar module of branda and set an svg image as the admin bar logo. On clicking ‘save changes’, the error message appeared.
When the admin bar logo was already set to an SVG, and the ‘Safe SVG’ plugin was deactivated, the error message remained.
Edit:
On further investigation I have found that the issue appears to be related to this change:
https://plugins.trac.www.ads-software.com/changeset/2873488/branda-white-labeling/trunk/inc/modules/admin/bar.php
In Branda v3.4.9.3, when I edit line 628 of modules/admin/bar.php from
if ( empty( $src ) || false === wp_getimagesize( $src ) ) {
to
if ( empty( $src ) ) {
To reverse that change, the error message disappears and the svg logo displays in the admin bar.
It is not a practical solution to edit this file on my sites as the change will be wiped out on each site whenever the plugin is updated. I have been able to work around the issue by using a .png image instead of the SVG image. In that case, even with Safe SVG active there is no error message.
If a fix is possible it would be great to be able to use SVG images for the admin bar logo, as was possible with Branda up to version 3.4.8.1.
-
This reply was modified 1 year, 8 months ago by cubecolour.