Support » Plugin: Permalink Manager Lite » Uncaught Error: Cannot unset string offsets

  • Resolved watb

    (@watb)


    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

    (@mbis)

    Hi @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

    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

    (@mbis)

    Hi @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

    Perfect!
    Thanks Maciej!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.