Title: Uncaught TypeError: Cannot access offset of type string on string
Last modified: January 12, 2022

---

# Uncaught TypeError: Cannot access offset of type string on string

 *  Resolved [jameshallow1](https://wordpress.org/support/users/jameshallow1/)
 * (@jameshallow1)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-cannot-access-offset-of-type-string-on-string/)
 * Hello,
 * I have been getting sometimes the following error in wordpress log:
 *     ```
       /var/www/vhosts/localhost/httpdocs/wp-content/plugins/url-shortify/lite/includes/Common/Actions.php. error message: Uncaught TypeError: Cannot access offset of type string on string in /var/www/vhosts/localhost/httpdocs/wp-content/plugins/url-shortify/lite/includes/Common/Actions.php:481
       Stack trace:
       #0 /var/www/vhosts/localhost/httpdocs/wp-includes/class-wp-hook.php(303): Kaizen_Coders\Url_Shortify\Common\Actions->save_short_link()
       #1 /var/www/vhosts/localhost/httpdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
       #2 /var/www/vhosts/localhost/httpdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
       #3 /var/www/vhosts/localhost/httpdocs/wp-includes/post.php(4468): do_action()
       #4 /var/www/vhosts/localhost/httpdocs/wp-includes/post.php(4570): wp_insert_post()
       #5 /var/www/vhosts/localhost/httpdocs/wp-admin/includes/post.php(423): wp_update_post()
       #6 /var/www/vhosts/localhost/httpdocs/wp-admin/post.php(227): edit_post()
       #7 {main}
         thrown
       ```
   
 * this error i got on the latest update of url-shortify.
    Previous versions sometimes
   gave the same error but different line (i guess some code has been added in the
   last version pushing the line number from 475 to 481)
 *     ```
       /var/www/vhosts/localhost/httpdocs/wp-content/plugins/url-shortify/lite/includes/Common/Actions.php. error message: Uncaught TypeError: Cannot access offset of type string on string in /var/www/vhosts/localhost/httpdocs/wp-content/plugins/url-shortify/lite/includes/Common/Actions.php:475
       Stack trace:
       #0 /var/www/vhosts/localhost/httpdocs/wp-includes/class-wp-hook.php(303): Kaizen_Coders\Url_Shortify\Common\Actions->save_short_link()
       #1 /var/www/vhosts/localhost/httpdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
       #2 /var/www/vhosts/localhost/httpdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
       #3 /var/www/vhosts/localhost/httpdocs/wp-includes/post.php(4468): do_action()
       #4 /var/www/vhosts/localhost/httpdocs/wp-includes/post.php(4570): wp_insert_post()
       #5 /var/www/vhosts/localhost/httpdocs/wp-admin/includes/post.php(423): wp_update_post()
       #6 /var/www/vhosts/localhost/httpdocs/wp-admin/post.php(227): edit_post()
       #7 {main}
         thrown
       ```
   
 * Any idea?
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Mike L](https://wordpress.org/support/users/mikeatkaizencoders/)
 * (@mikeatkaizencoders)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-cannot-access-offset-of-type-string-on-string/#post-15247244)
 * Hi,
 * Sorry for the inconvenience you had.
 * We have just released a new version of URL Shortify (1.5.8) which should fix 
   this issue.
 * Please upgrade and confirm the issue is fixed.
 *  Thread Starter [jameshallow1](https://wordpress.org/support/users/jameshallow1/)
 * (@jameshallow1)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-cannot-access-offset-of-type-string-on-string/#post-15252032)
 * Thank you for the quick update!
    Will let you know if it happens again.

Viewing 2 replies - 1 through 2 (of 2 total)

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

 * ![](https://ps.w.org/url-shortify/assets/icon-256x256.png?rev=3550500)
 * [URL Shortify - Simple and Easy URL Shortener](https://wordpress.org/plugins/url-shortify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/url-shortify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/url-shortify/)
 * [Active Topics](https://wordpress.org/support/plugin/url-shortify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/url-shortify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/url-shortify/reviews/)

## Tags

 * [cannot access](https://wordpress.org/support/topic-tag/cannot-access/)

 * 2 replies
 * 2 participants
 * Last reply from: [jameshallow1](https://wordpress.org/support/users/jameshallow1/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-cannot-access-offset-of-type-string-on-string/#post-15252032)
 * Status: resolved