• Rasso Hilber

    (@nonverbla)


    Hi there, congrats to this great Plugin!

    Today I changed my theme’s composer folder structure, and started getting this error in my frontend if safe-svg was active:

    
    Fatal error: Class 'enshrined\svgSanitize\data\AllowedTags' not found in /wp-content/plugins/safe-svg/includes/safe-svg-tags.php on line 4
    

    It seems that this happens if there is a lib/vendor dir at the root of the website. changing line 15 in safe-svg.php like this fixes the issue:

    
    require __DIR__ . '/lib/vendor/autoload.php';
    

    Would be great if you could address this issue in the next plugin update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Daryll Doyle

    (@enshrined)

    Hey @nonverbla,

    Thanks for reporting this issue. I see what you mean ??

    Whilst adding __DIR__ fixes your use case, it does also break any time it’s used with symlinks. I will look into it and see what I can work out!

    Thanks again for the help.

    Cheers,
    Daryll

    Thread Starter Rasso Hilber

    (@nonverbla)

    Great Daryll! I actually forgot about this post until I had the same problem today again ??

    I don’t really understand the ins and outs of this, but looking very much forward to your solution! Until then, I will continue to manually change the line to
    `
    require dirname(__FILE__) . ‘/lib/vendor/autoload.php’;
    `
    after each plugin update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error’ is closed to new replies.