Title: TypeError: Illegal offset type
Last modified: March 28, 2023

---

# TypeError: Illegal offset type

 *  Resolved [LogicRays Technologies](https://wordpress.org/support/users/logicrays/)
 * (@logicrays)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/typeerror-illegal-offset-type/)
 * TypeError: Illegal offset type in wordpress-seo/src/presenters/slack/enhanced-
   data-presenter.php:50
   if ( $this->presentation->model->object_sub_type === ‘post’&&
   $author_id ) {
 * $data[ \__( ‘Written by’, ‘wordpress-seo’ ) ] = \get_the_author_meta( ‘display_name’,
   $author_id );
 * }
 * if ( ! empty( $estimated_reading_time ) ) {
 * $data[ \__( ‘Est. reading time’, ‘wordpress-seo’ ) ] = \sprintf( \_n( ‘%s minute’,‘%
   s minutes’, $estimated_reading_time, ‘default’ ), $estimated_reading_time );
 * }
   Please help
    -  This topic was modified 3 years, 2 months ago by [LogicRays Technologies](https://wordpress.org/support/users/logicrays/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/typeerror-illegal-offset-type/#post-16602200)
 * Hello [@logicrays](https://wordpress.org/support/users/logicrays/)
 * Thanks for using the Yoast SEO plugin. Can you share more information regarding
   the error? How can it be reproduced? Where did you experience it?

Viewing 1 replies (of 1 total)

The topic ‘TypeError: Illegal offset type’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/typeerror-illegal-offset-type/#post-16602200)
 * Status: resolved