Class "Enshrined\Svgsanitize\Sanitizer" not found

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
DNK
Posts: 29
Joined: 27 Feb 2025, 10:50

Class "Enshrined\Svgsanitize\Sanitizer" not found

Post by DNK » 24 Jul 2025, 05:17

I got the error Class "Enshrined\Svgsanitize\Sanitizer" not found when trying to upload an SVG image to a product
Image
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS

User avatar
aimeos
Administrator
Posts: 8640
Joined: 01 Jan 1970, 00:00

Re: Class "Enshrined\Svgsanitize\Sanitizer" not found

Post by aimeos » 24 Jul 2025, 10:42

Can you post the output of "composer show" please?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
DNK
Posts: 29
Joined: 27 Feb 2025, 10:50

Re: Class "Enshrined\Svgsanitize\Sanitizer" not found

Post by DNK » 25 Jul 2025, 06:19

How to do this?
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS

User avatar
aimeos
Administrator
Posts: 8640
Joined: 01 Jan 1970, 00:00

Re: Class "Enshrined\Svgsanitize\Sanitizer" not found

Post by aimeos » 25 Jul 2025, 06:48

Run "composer show" at the command line in your application directory?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
DNK
Posts: 29
Joined: 27 Feb 2025, 10:50

Re: Class "Enshrined\Svgsanitize\Sanitizer" not found

Post by DNK » 28 Jul 2025, 07:26

composer show
aimeos/ai-admin-graphql dev-master Aimeos Admin GraphQL API extension
aimeos/ai-admin-jqadm dev-master Aimeos VueJS+Bootstrap admin backend
aimeos/ai-admin-jsonadm dev-master Aimeos JSON admin API for backend
aimeos/ai-client-html dev-master Aimeos standard HTML frontend
aimeos/ai-client-jsonapi dev-master Aimeos frontend JSON REST API
aimeos/ai-cms-grapesjs dev-master Aimeos GrapesJS CMS extension
aimeos/ai-controller-frontend dev-master Aimeos business controller logic for frontend
aimeos/ai-controller-jobs dev-master Aimeos job controllers for long running tasks
aimeos/ai-laravel dev-master Laravel adapter for Aimeos e-commerce integration
aimeos/ai-payments dev-master Payment extension for Aimeos e-commerce solutions
aimeos/aimeos-base dev-master Aimeos base layer for abstracting from host environments
aimeos/aimeos-core dev-master Full-featured e-commerce components for high performance online shops
aimeos/aimeos-laravel dev-master Cloud native, API first Laravel eCommerce package with integrated AI for ultra-fast online shops, marketplaces and complex B2B projects
aimeos/macro dev-master Customize classes using closures
aimeos/map dev-master Easy and elegant handling of PHP arrays as array-like collection objects similar to jQuery and Laravel Collections
aimeos/upscheme dev-master Database schema upgrades made easy
aimeoscom/ai-customergroups dev-master Aimeos extension restricting objects to customers or groups
binshops/laravel-blog dev-master Simple blog package (with admin panel) for Laravel (6.x and 7.x). Includes all views, controllers, routes and can add a blog to any existing Laravel ...
brick/math 0.12.3 Arbitrary-precision arithmetic library
calcinai/oauth2-xero 1.3.0 Xero OAuth 2.0 Client Provider for The PHP League OAuth2-Client
calcinai/xero-php 2.7.0 A client implementation of the Xero API, with a cleaner OAuth interface and ORM-like abstraction.
carbonphp/carbon-doctrine-types 3.2.0 Types to use Carbon in Doctrine
clue/stream-filter 1.7.0 A simple and modern approach to stream filtering in PHP
cocur/slugify 4.6.0 Converts a string into a slug.
composer/pcre 3.3.2 PCRE wrapping library that offers type-safe preg_* replacements.
composer/semver 3.4.3 Semver library that offers utilities, version constraint parsing and validation.
cviebrock/eloquent-sluggable 11.0.1 Easy creation of slugs for your Eloquent models in Laravel
deployer/deployer 7.5.12 Deployment Tool
dflydev/dot-access-data 3.0.3 Given a deep data structure, access data by dot notation.
doctrine/dbal 4.2.3 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations 1.1.5 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/inflector 2.0.10 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.
doctrine/lexer 3.0.1 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
dragonmantank/cron-expression 3.4.0 CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
egulias/email-validator 4.0.4 A library for validating emails against several RFCs
enshrined/svg-sanitize 0.21.0 An SVG sanitizer for PHP
ezyang/htmlpurifier 4.18.0 Standards compliant HTML filter written in PHP
firebase/php-jwt 6.11.1 A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.
fruitcake/php-cors 1.3.0 Cross-origin resource sharing library for the Symfony HttpFoundation
google/apiclient 2.18.3 Client library for Google APIs
google/apiclient-services 0.397.0 Client library for Google APIs
google/auth 1.47.0 Google Auth Library for PHP
graham-campbell/result-type 1.1.3 An Implementation Of The Result Type
guzzlehttp/guzzle 7.9.3 Guzzle is a PHP HTTP client library
guzzlehttp/promises 2.2.0 Guzzle promises library
guzzlehttp/psr7 2.7.1 PSR-7 message implementation that also provides common utility methods
guzzlehttp/uri-template 1.0.4 A polyfill class for uri_template of PHP
intervention/gif 4.2.2 Native PHP GIF Encoder/Decoder
intervention/image 3.11.3 PHP image manipulation
laminas/laminas-diactoros 3.6.0 PSR HTTP Message implementations
laravel-notification-channels/telegram 6.0.0 Telegram Notifications Channel for Laravel
laravel/breeze 2.3.6 Minimal Laravel authentication scaffolding with Blade and Tailwind.
laravel/framework 11.45.0 The Laravel Framework.
laravel/helpers 1.7.2 Provides backwards compatibility for helpers in the latest Laravel release.
laravel/prompts 0.3.5 Add beautiful and user-friendly forms to your command-line applications.
laravel/sanctum 4.1.1 Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
laravel/serializable-closure 2.0.4 Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.
laravel/socialite 5.21.0 Laravel wrapper around OAuth 1 & OAuth 2 libraries.
laravel/tinker 2.10.1 Powerful REPL for the Laravel framework.
league/commonmark 2.7.0 Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)
league/config 1.2.0 Define configuration arrays with strict schemas and access values with dot notation
league/flysystem 3.29.1 File storage abstraction for PHP
league/flysystem-local 3.29.0 Local filesystem adapter for Flysystem.
league/mime-type-detection 1.16.0 Mime-type detection for Flysystem
league/oauth1-client 1.11.0 OAuth 1.0 Client Library
league/oauth2-client 2.8.1 OAuth 2.0 Client Library
league/omnipay 3.2.1 Omnipay payment processing library
league/uri 7.5.1 URI manipulation library
league/uri-interfaces 7.5.0 Common interfaces and classes for URI representation and interaction
maatwebsite/excel 3.1.64 Supercharged Excel exports and imports in Laravel
maennchen/zipstream-php 3.1.2 ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.
markbaker/complex 3.0.2 PHP Class for working with complex numbers
markbaker/matrix 3.0.1 PHP Class for working with matrices
moneyphp/money 3.3.3 PHP implementation of Fowler's Money pattern
monolog/monolog 3.9.0 Sends your logs to files, sockets, inboxes, databases and various web services
nesbot/carbon 3.9.1 An API extension for DateTime that supports 281 different languages.
nette/schema 1.3.2 📐 Nette Schema: validating data structures against a given Schema.
nette/utils 4.0.6 🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong pas...
nikic/php-parser 5.4.0 A PHP parser written in PHP
nunomaduro/termwind 2.3.1 Its like Tailwind CSS, but for the console.
nyholm/psr7 1.8.2 A fast PHP7 implementation of PSR-7
omnipay/common 3.4.0 Common components for Omnipay payment processing library
omnipay/stripe 3.2.0 Stripe driver for the Omnipay payment processing library
paragonie/constant_time_encoding 3.0.0 Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)
paragonie/random_compat 9.99.100 PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
php-http/discovery 1.20.0 Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations
php-http/guzzle7-adapter 1.1.0 Guzzle 7 HTTP Adapter
php-http/httplug 2.4.1 HTTPlug, the HTTP client abstraction for PHP
php-http/message 1.16.2 HTTP Message related tools
php-http/message-factory 1.1.0 Factory interfaces for PSR-7 HTTP Message
php-http/promise 1.3.1 Promise used for asynchronous HTTP requests
phpoffice/phpspreadsheet 1.29.10 PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
phpoption/phpoption 1.9.3 Option Type for PHP
phpseclib/phpseclib 3.0.43 PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.
psr/cache 3.0.0 Common interface for caching libraries
psr/clock 1.0.0 Common interface for reading the clock.
psr/container 2.0.2 Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher 1.0.0 Standard interfaces for event handling.
psr/http-client 1.0.3 Common interface for HTTP clients
psr/http-factory 1.1.0 PSR-17: Common interfaces for PSR-7 HTTP message factories
psr/http-message 2.0 Common interface for HTTP messages
psr/log 3.0.2 Common interface for logging libraries
psr/simple-cache 3.0.0 Common interfaces for simple caching
psy/psysh 0.12.8 An interactive shell for modern PHP.
ralouphie/getallheaders 3.0.3 A polyfill for getallheaders.
ramsey/collection 2.1.1 A PHP library for representing and manipulating collections.
ramsey/uuid 4.7.6 A PHP library for generating and working with universally unique identifiers (UUIDs).
stripe/stripe-php 13.18.0 Stripe PHP Library
symfony/clock 7.2.0 Decouples applications from the system clock
symfony/console 7.2.6 Eases the creation of beautiful and testable command line interfaces
symfony/css-selector 7.2.0 Converts CSS selectors to XPath expressions
symfony/deprecation-contracts 3.6.0 A generic function and convention to trigger deprecation notices
symfony/error-handler 7.2.5 Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher 7.2.0 Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts 3.6.0 Generic abstractions related to dispatching event
symfony/finder 7.2.2 Finds files and directories via an intuitive fluent interface
symfony/http-client 7.2.4 Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/http-client-contracts 3.6.0 Generic abstractions related to HTTP clients
symfony/http-foundation 7.2.6 Defines an object-oriented layer for the HTTP specification
symfony/http-kernel 7.2.6 Provides a structured process for converting a Request into a Response
symfony/mailer 7.2.6 Helps sending emails
symfony/mailgun-mailer 7.2.0 Symfony Mailgun Mailer Bridge
symfony/mime 7.2.6 Allows manipulating MIME messages
symfony/polyfill-ctype 1.32.0 Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme 1.32.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn 1.32.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer 1.32.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring 1.32.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php80 1.32.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php83 1.32.0 Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions
symfony/polyfill-uuid 1.32.0 Symfony polyfill for uuid functions
symfony/process 7.2.5 Executes commands in sub-processes
symfony/psr-http-message-bridge 7.2.0 PSR HTTP message bridge
symfony/routing 7.2.3 Maps an HTTP request to a set of configuration variables
symfony/service-contracts 3.6.0 Generic abstractions related to writing services
symfony/string 7.2.6 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/translation 7.2.6 Provides tools to internationalize your application
symfony/translation-contracts 3.6.0 Generic abstractions related to translation
symfony/uid 7.2.0 Provides an object-oriented API to generate and represent UIDs
symfony/var-dumper 7.2.6 Provides mechanisms for walking through any arbitrary PHP variable
tecnickcom/tcpdf 6.10.0 TCPDF is a PHP class for generating PDF documents and barcodes.
tijsverkoyen/css-to-inline-styles 2.3.0 CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're s...
vlucas/phpdotenv 5.6.2 Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
voku/portable-ascii 2.0.3 Portable ASCII library - performance optimized (ascii) string functions for php.
webmozart/assert 1.11.0 Assertions to validate method input/output with nice error messages.
webonyx/graphql-php 15.20.0 A PHP port of GraphQL reference implementation
xeroapi/xero-php-oauth2 9.1.0 Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS

User avatar
aimeos
Administrator
Posts: 8640
Joined: 01 Jan 1970, 00:00

Re: Class "Enshrined\Svgsanitize\Sanitizer" not found

Post by aimeos » 28 Jul 2025, 12:56

The "enshrined/svg-sanitize" package is available. Is there also a class ./vendor/enshrined/svg-sanitize/src/Sanitizer.php in your installation?

Why did you install Aimeos dev-master? You should use ~2024.10 or ~2025.07 as version constraint and run "composer update".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply