error unserializing
-
Hi, I’m facing the following error
Got error ‘PHP message: PHP Fatal error: Uncaught Error: Class ‘WP_Upgrader_Skin’ not found in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/class-installer-upgrader-skins.php:3\nStack trace:\n#0 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/class-otgs-installer-autoloader.php(18): include()\n#1 [internal function]: OTGS_Installer_Autoloader->autoload()\n#2 [internal function]: spl_autoload_call()\n#3 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/better-search-replace/includes/class-bsr-db.php(436): unserialize()\n#4 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/better-search-replace/includes/class-bsr-db.php(334): BSR_DB::unserialize()\n#5 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/better-search-replace/includes/class-bsr-db.php(275): BSR_DB->recursive_unserialize_replace()\n#6 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/better-search-replace/includes/class-bsr-…’, referer: https://www.example.com/wp-admin/tools.php?page=better-search-replace&tab=bsr_search_replace
I was wondering if you could patch function
\BSR_DB::recursive_unserialize_replace
Which seems to try/catch exceptions but not fatal errors.
I for example changed the try / catch to catch(\Throwable $error) so that it will skip the faulty line that can’t be replaced instead and managed to work my issue out.
- The topic ‘error unserializing’ is closed to new replies.