• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Issue Problem with SVG Support plugin on WP Toolkit

grafiman

New Pleskian
Server operating system version
Ubuntu
Plesk version and microupdate number
Last
Hi. From plesk panel on wp toolkit when I click "check updates" or " Login" button I get this error (on every account with SVG Support plugin installed).

Plesk: last version
Wordpress: last version
SVG Support plugin: last version (SVG Support)

Note: When I disable plugin everything is ok

Code:
Error getting administrator credentials: PHP Warning:  Trying to access array offset on value of type null in /var/www/vhosts/mydomain.gr/httpdocs/wp-content/plugins/svg-support/functions/mime-types.php on line 22


Warning: Trying to access array offset on value of type null in /var/www/vhosts/mydomain.gr/httpdocs/wp-content/plugins/svg-support/functions/mime-types.php on line 22

PHP Fatal error:  Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in /var/www/vhosts/mydomain.gr/httpdocs/wp-content/plugins/svg-support/functions/mime-types.php:28

Stack trace:

#0 /var/www/vhosts/mydomain.gr/httpdocs/wp-content/plugins/svg-support/functions/mime-types.php(28): array_intersect()

#1 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-hook.php(310): bodhi_svgs_upload_mimes()

#2 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()

#3 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/functions.php(3546): apply_filters()

#4 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/block-editor.php(216): get_allowed_mime_types()

#5 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-theme-json-resolver.php(297): get_default_block_editor_settings()

#6 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-theme-json-resolver.php(561): WP_Theme_JSON_Resolver::get_theme_data()

#7 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/script-loader.php(3205): WP_Theme_JSON_Resolver::get_merged_data()

#8 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/script-loader.php(3401): {closure}()

#9 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-hook.php(308): {closure}()

#10 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

#11 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()

#12 /var/www/vhosts/mydomain.gr/httpdocs/wp-settings.php(639): do_action()

#13 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1291): require('...')

#14 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1212): WP_CLI\Runner->load_wordpress()

#15 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()

#16 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(77): WP_CLI\Bootstrap\LaunchRunner->process()

#17 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()

#18 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/vendor/wp-cli/wp-cli/php/boot-fs.php(17): require_once('...')

#19 /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wpt-wp-cli.php(31): require_once('...')

#20 {main}

  thrown in /var/www/vhosts/mydomain.gr/httpdocs/wp-content/plugins/svg-support/functions/mime-types.php on line 28

Fatal error: Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in /var/www/vhosts/mydomain.gr/httpdocs/wp-content/plugins/svg-support/functions/mime-types.php:28

Stack trace:

#0 /var/www/vhosts/mydomain.gr/httpdocs/wp-content/plugins/svg-support/functions/mime-types.php(28): array_intersect()

#1 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-hook.php(310): bodhi_svgs_upload_mimes()

#2 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()

#3 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/functions.php(3546): apply_filters()

#4 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/block-editor.php(216): get_allowed_mime_types()

#5 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-theme-json-resolver.php(297): get_default_block_editor_settings()

#6 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-theme-json-resolver.php(561): WP_Theme_JSON_Resolver::get_theme_data()

#7 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/script-loader.php(3205): WP_Theme_JSON_Resolver::get_merged_data()

#8 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/script-loader.php(3401): {closure}()

#9 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-hook.php(308): {closure}()

#10 /var/www/vhosts/mydomain.gr/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
 
Looks like a bug in the plugin:

Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in /var/www/vhosts/mydomain.gr/httpdocs/wp-content/plugins/svg-support/functions/mime-types.php:28

Maybe you could contact the vendor of that plugin on this.
 
Remove the SVG Support support plugin which is less than Version 2.5.4. Now you will able to login and reinstall the plugin Version 2.5.4.
 
Back
Top