Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string
-
Hello, I’ve been recently getting this error on any
edit.phppage in which Nested Pages is used.I’m running
WP 6.1.1withPHP 8.1.13, andNested Pages 3.2.3, though I’ve been using this PHP version for months and only bumped into the error lately, so I think either a new WP or Nested Pages update introduced this?Either way, it seems the lines mentioned in the error contain some code that is not compatible with PHP 8.
Error:
Fatal error: Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in /var/www/html/wp-content/plugins/wp-nested-pages/app/Entities/Listing/ListingRepository.php:39
Stack trace: 0 /var/www/html/wp-content/plugins/wp-nested-pages/app/Entities/Listing/ListingRepository.php(39): unserialize(Array) 1 /var/www/html/wp-content/plugins/wp-nested-pages/app/Entities/Listing/Listing.php(317): NestedPages\Entities\Listing\ListingRepository->visiblePages('rankings') 2 /var/www/html/wp-content/plugins/wp-nested-pages/app/Entities/Listing/Listing.php(392): NestedPages\Entities\Listing\Listing->listOpening(Array, 0) 3 /var/www/html/wp-content/plugins/wp-nested-pages/app/Entities/Listing/Listing.php(369): NestedPages\Entities\Listing\Listing->listPostLevel() 4 /var/www/html/wp-content/plugins/wp-nested-pages/app/Views/listing.php(98): NestedPages\Entities\Listing\Listing->getPosts() 5 /var/www/html/wp-content/plugins/wp-nested-pages/app/Entities/Listing/Listing.php(280): include('/var/www/html/w…') 6 /var/www/html/wp-includes/class-wp-hook.php(308): NestedPages\Entities\Listing\Listing->listPosts('') 7 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) 8 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 9 /var/www/html/wp-admin/admin.php(259): do_action('rankings_page_n…') 10 /var/www/html/wp-admin/edit.php(10): require_once('/var/www/html/w…') 11 {main} thrown in /var/www/html/wp-content/plugins/wp-nested-pages/app/Entities/Listing/ListingRepository.php on line 39Thanks for your time!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string’ is closed to new replies.