10up / safe-svg

Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
https://wordpress.org/plugins/safe-svg/
GNU General Public License v2.0
263 stars 31 forks source link

Incompability with e-payeye-payments #202

Open Darkiii666 opened 3 months ago

Darkiii666 commented 3 months ago

Describe the bug

While configuring plugin e-payeye-payments with JSON file, safe-svg throws error Uncaught Error: Call to undefined function SafeSvg\add_settings_section()

Steps to Reproduce

  1. Install both plugins
  2. Go to e-payeye-payments configuration
  3. Upload file with config config-example.json
  4. Then safe svg throws error

To revert plugin to upload config mode just remove all values from option table with key payeye

Screenshots, screen recording, code snippet

No response

Environment information

Any

WordPress information

`

wp-core

version: 6.5.3 site_language: pl_PL user_language: pl_PL timezone: +00:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 2 dotorg_communication: true

wp-paths-sizes

wordpress_path: /var/www/html wordpress_size: 231,30 MB (242532695 bytes) uploads_path: /var/www/html/wp-content/uploads uploads_size: 11,65 MB (12214298 bytes) themes_path: /var/www/html/wp-content/themes themes_size: 18,65 MB (19560128 bytes) plugins_path: /var/www/html/wp-content/plugins plugins_size: 249,51 MB (261628046 bytes) database_size: 26,33 MB (27607040 bytes) total_size: 537,44 MB (563542207 bytes)

wp-active-theme

name: Botiga (botiga) version: 2.2.2 (latest version: 2.2.4) author: aThemes author_website: https://athemes.com parent_theme: none theme_features: core-block-patterns, editor-style, widgets-block-editor, post-thumbnails, automatic-feed-links, title-tag, menus, post-formats, html5, custom-background, customize-selective-refresh-widgets, custom-logo, align-wide, editor-color-palette, editor-font-sizes, responsive-embeds, block-templates, custom-header, woocommerce, wc-product-gallery-zoom, wc-product-gallery-slider, wc-product-gallery-lightbox, widgets theme_path: /var/www/html/wp-content/themes/botiga auto_update: Wyłączono

wp-themes-inactive (3)

Twenty Twenty-Four: version: 1.1, author: zespół WordPressa, Automatyczna aktualizacja jest wyłączona Twenty Twenty-Three: version: 1.4, author: zespół WordPressa, Automatyczna aktualizacja jest wyłączona Twenty Twenty-Two: version: 1.7, author: zespół WordPressa, Automatyczna aktualizacja jest wyłączona

wp-mu-plugins (1)

pexlechris_adminer_avoid_conflicts_with_other_plugins.php: author: (undefined), version: (undefined)

wp-plugins-active (11)

aThemes Blocks: version: 1.0.10, author: aThemes, Automatyczna aktualizacja jest wyłączona aThemes Starter Sites: version: 1.0.53, author: aThemes, Automatyczna aktualizacja jest wyłączona Database Management tool - Adminer: version: 2.2.2, author: Pexle Chris, Automatyczna aktualizacja jest wyłączona e-payeye on click html injector: version: 1.0.0, author: PayEye, Automatyczna aktualizacja jest wyłączona e-payeye payments: version: 1.0.2, author: PayEye, Automatyczna aktualizacja jest wyłączona Flexible Invoices for WooCommerce and WordPress: version: 5.7.4, author: WP Desk, Automatyczna aktualizacja jest wyłączona Loco Translate: version: 2.6.9, author: Tim Whitlock, Automatyczna aktualizacja jest wyłączona Post Meta Data Manager: version: 1.2.3, author: WpExpertPlugins, Automatyczna aktualizacja jest wyłączona Safe SVG: version: 2.2.4, author: 10up, Automatyczna aktualizacja jest wyłączona UpdraftPlus - Backup/Restore: version: 1.24.3, author: UpdraftPlus.Com, DavidAnderson, Automatyczna aktualizacja jest wyłączona WooCommerce: version: 8.9.2, author: Automattic, Automatyczna aktualizacja jest wyłączona

wp-plugins-inactive (7)

Download Plugin: version: 2.1.0, author: Metagauss, Automatyczna aktualizacja jest wyłączona e-payeye fee plugin: version: 1.0.0, author: PayEye, Automatyczna aktualizacja jest wyłączona e-payeye payments: version: 1.0.2, author: PayEye, Automatyczna aktualizacja jest wyłączona Furgonetka.pl: version: 1.4.3, author: Furgonetka.pl, Automatyczna aktualizacja jest wyłączona Merchant: version: 1.9.11, author: aThemes, Automatyczna aktualizacja jest wyłączona PayU Payment Gateway: version: 2.1.0, author: PayU SA, Automatyczna aktualizacja jest wyłączona WP Data Access: version: 5.5.4, author: Passionate Programmers B.V., Automatyczna aktualizacja jest wyłączona

wp-media

image_editor: WP_Image_Editor_Imagick imagick_module_version: 1691 imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org imagick_version: 3.7.0 file_uploads: 1 post_max_size: 1G upload_max_filesize: 3G max_effective_size: 1 GB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 122 MB imagick::RESOURCETYPE_DISK: 1073741824 imagick::RESOURCETYPE_FILE: 786432 imagick::RESOURCETYPE_MAP: 512 MB imagick::RESOURCETYPE_MEMORY: 256 MB imagick::RESOURCETYPE_THREAD: 1 imagick::RESOURCETYPE_TIME: 9.2233720368548E+18 imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV gd_version: bundled (2.1.0 compatible) gd_formats: GIF, JPEG, PNG, WebP, BMP ghostscript_version: 10.00.0

wp-server

server_architecture: Linux 6.5.0-35-generic x86_64 httpd_software: Apache/2.4.57 (Debian) php_version: 8.2.16 64bit php_sapi: apache2handler max_input_variables: 1000 time_limit: 60 memory_limit: 1G max_input_time: -1 upload_max_filesize: 3G php_post_max_size: 1G curl_version: 7.88.1 OpenSSL/3.0.11 suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: false current: 2024-06-05T11:21:38+00:00 utc-time: Wednesday, 05-Jun-24 11:21:38 UTC server-time: 2024-06-05T11:21:36+00:00

wp-database

extension: mysqli server_version: 5.7.44 client_version: mysqlnd 8.2.16 max_allowed_packet: 4194304 max_connections: 151

wp-constants

WP_HOME: https://well-massive-osprey.ngrok-free.app WP_SITEURL: https://well-massive-osprey.ngrok-free.app WP_CONTENT_DIR: /var/www/html/wp-content WP_PLUGIN_DIR: /var/www/html/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 1G WP_DEBUG: true WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Niezdefiniowane WP_DEVELOPMENT_MODE: undefined DB_CHARSET: utf8 DB_COLLATE: undefined

wp-filesystem

wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable

`

Code of Conduct