Title: PHP 8.0 TypeError: Cannot access offset of type string on string
Last modified: May 1, 2021

---

# PHP 8.0 TypeError: Cannot access offset of type string on string

 *  [shapeyourbits](https://wordpress.org/support/users/shapeyourbits/)
 * (@shapeyourbits)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-0-typeerror-cannot-access-offset-of-type-string-on-string/)
 * An error of type E_ERROR was caused in line 33 of the file /wp-content/plugins/
   wp-nested-pages/app/Entities/Listing/ListingRepository.php. Error message: Uncaught
   TypeError: Cannot access offset of type string on string in /wp-content/plugins/
   wp-nested-pages/app/Entities/Listing/ListingRepository.php:33
    Stack trace: #
   0 /wp-content/plugins/wp-nested-pages/app/Entities/Listing/Listing.php(302): 
   NestedPages\Entities\Listing\ListingRepository->visiblePages(‘page’) #1 /wp-content/
   plugins/wp-nested-pages/app/Entities/Listing/Listing.php(377): NestedPages\Entities\
   Listing\Listing->listOpening(Array, 0) #2 /wp-content/plugins/wp-nested-pages/
   app/Entities/Listing/Listing.php(354): NestedPages\Entities\Listing\Listing->
   listPostLevel() #3 /wp-content/plugins/wp-nested-pages/app/Views/listing.php(
   96): NestedPages\Entities\Listing\Listing->getPosts() #4 /wp-content/plugins/
   wp-nested-pages/app/Entities/Listing/Listing.php(273): include(‘…’) #5 /wp-includes/
   class-wp-hook.php(292): NestedPages\Entities\Listing\Listing->listPosts(”) #6/
   wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(”, Array) #7 /wp-includes/
   plugin.php(484): WP_Hook->do_action(Array) #8 /wp-admin/admin.php(259): do_action(‘
   pages_page_nest…’)

The topic ‘PHP 8.0 TypeError: Cannot access offset of type string on string’ is 
closed to new replies.

 * ![](https://ps.w.org/wp-nested-pages/assets/icon-128x128.png?rev=1690043)
 * [Nested Pages](https://wordpress.org/plugins/wp-nested-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-nested-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-nested-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-nested-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-nested-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-nested-pages/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [shapeyourbits](https://wordpress.org/support/users/shapeyourbits/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/php-8-0-typeerror-cannot-access-offset-of-type-string-on-string/)
 * Status: not resolved