• Resolved maintanosgr

    (@maintanosgr)


    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.

    • This topic was modified 1 year, 3 months ago by maintanosgr.
Viewing 1 replies (of 1 total)
  • Hi there!

    Better Search Replace Support Team here, Thanks for bringing this to our attention

    We have reported this internally for review and further consideration.

Viewing 1 replies (of 1 total)
  • The topic ‘error unserializing’ is closed to new replies.