Title: Uncaught Error: Cannot unset string offsets
Last modified: May 19, 2020

---

# Uncaught Error: Cannot unset string offsets

 *  Resolved [watb](https://wordpress.org/support/users/watb/)
 * (@watb)
 * [6 years ago](https://wordpress.org/support/topic/uncaught-error-cannot-unset-string-offsets-4/)
 * Hi Maciej,
 * When I try to update a permalink, I have this message below:
 *     ```
       <br />
       <b>Fatal error</b>:  Uncaught Error: Cannot unset string offsets in /usr/local/var/www/blog/www/wp-content/plugins/permalink-manager/includes/core/permalink-manager-helper-functions.php:611
       Stack trace:
       #0 /usr/local/var/www/blog/www/wp-content/plugins/permalink-manager/includes/core/permalink-manager-actions.php(626): Permalink_Manager_Helper_Functions::is_uri_duplicated('aaaaa', '1937')
       #1 /usr/local/var/www/blog/www/wp-includes/class-wp-hook.php(287): Permalink_Manager_Actions->ajax_detect_duplicates('aaaaa')
       #2 /usr/local/var/www/blog/www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
       #3 /usr/local/var/www/blog/www/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
       #4 /usr/local/var/www/blog/www/wp-admin/admin-ajax.php(175): do_action('wp_ajax_detect_...')
       #5 {main}
         thrown in <b>/usr/local/var/www/blog/www/wp-content/plugins/permalink-manager/includes/core/permalink-manager-helper-functions.php</b> on line <b>611</b><br />
       <p>There has been a critical error on your website.</p><p><a href="https://wordpress.org/support/article/debugging-in-wordpress/">Learn more about debugging in WordPress
       ```
   
 * Any idea?
 * Thanks for your help

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

 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [6 years ago](https://wordpress.org/support/topic/uncaught-error-cannot-unset-string-offsets-4/#post-12860662)
 * Hi [@watb](https://wordpress.org/support/users/watb/),
 * I adjusted the code in 2.2.8.6 version to prevent this from happening.
 * Could you try to:
    - remove the old instance of plugin
    - install it from a fresh copy
 * All your settings & custom permalinks will be intact.
 * Best regards,
    Maciej
 *  Thread Starter [watb](https://wordpress.org/support/users/watb/)
 * (@watb)
 * [6 years ago](https://wordpress.org/support/topic/uncaught-error-cannot-unset-string-offsets-4/#post-12862440)
 * Hi Maciej,
 * Thanks for your reply.
 * Unfortunately, that doesn’t fix my issue.
    In the wp_options table, “permalink-
   manager-uris” is always empty and when I try to regenerate the custom permalinks(
   in WP Tools), I have this message below:
 *     ```
       <br />
       <b>Warning</b>:  array_filter() expects parameter 1 to be array, string given in <b>/usr/local/var/www/blog/www/wp-content/plugins/permalink-manager/includes/core/permalink-manager-uri-functions-post.php</b> on line <b>531</b><br />
       ```
   
 * Thanks again for for help!
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [6 years ago](https://wordpress.org/support/topic/uncaught-error-cannot-unset-string-offsets-4/#post-12862606)
 * Hi [@watb](https://wordpress.org/support/users/watb/),
 * Could you try to remove the “permalink-manager-uris” in the database? Then, it
   should be created again as an array.
 * Best regards,
    Maciej
 *  Thread Starter [watb](https://wordpress.org/support/users/watb/)
 * (@watb)
 * [6 years ago](https://wordpress.org/support/topic/uncaught-error-cannot-unset-string-offsets-4/#post-12862620)
 * Perfect!
    Thanks Maciej!

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

The topic ‘Uncaught Error: Cannot unset string offsets’ is closed to new replies.

 * ![](https://ps.w.org/permalink-manager/assets/icon.svg?rev=2625166)
 * [Permalink Manager Lite](https://wordpress.org/plugins/permalink-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/permalink-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/permalink-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/permalink-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/permalink-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/permalink-manager/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [watb](https://wordpress.org/support/users/watb/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/uncaught-error-cannot-unset-string-offsets-4/#post-12862620)
 * Status: resolved