• Hi,

    On my quest to find a way to deal with unwanted URL parameters, I was steered towards ‘redirection’/ I installed and activated the plugin, but on entering the ‘Settings’ I get a severe site error. The email I received shows the following error:

    An error of type E_ERROR was caused in line 62 of the file /home/bbnj/domains/merlinsilk.com/public_html/wp-content/plugins/redirection/models/importer/quick-redirects.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /home/bbnj/domains/merlinsilk.com/public_html/wp-content/plugins/redirection/models/importer/quick-redirects.php:62 
    Stack trace:
    #0 /home/bbnj/domains/merlinsilk.com/public_html/wp-content/plugins/redirection/models/importer/base.php(33): Red_QuickRedirect_Importer->get_data()
    #1 /home/bbnj/domains/merlinsilk.com/public_html/wp-content/plugins/redirection/redirection-admin.php(518): Red_Plugin_Importer::get_plugins()
    #2 /home/bbnj/domains/merlinsilk.com/public_html/wp-content/plugins/redirection/redirection-admin.php(359): Redirection_Admin->get_preload_data()
    #3 /home/bbnj/domains/merlinsilk.com/public_html/wp-includes/class-wp-hook.php(341): Redirection_Admin->redirection_head()
    #4 /home/bbnj/domains/merlinsilk.com/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
    #5 /home/bbnj/domains/merlinsilk.com/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()
    #6 /home/bbnj/domains/merlinsilk.com/public_html/wp-admin/admin.php(242): do_action()
    #7 /home/bbnj/domains/merlinsilk.com/public_html/wp-admin/tools.php(40): require_once('...')
    #8 {main} thrown

    This would hint on an attempt to import data. I did have another redirect plugin installed in the past but don’t remember which one that was.

    I really look forward to get this resolved as I eagerly want to handle URL parameter in the form of ?y=123456789 which a hack of my site was able to offer to Google.

    Cheers,
    Merlin

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Godley

    (@johnny5)

    It’s caused by Quick Redirects data, which seems to have left data behind. I will look into why this might happen, possibly something has changed format. For now if you delete quickppr_redirects from your wp_options table then it will remove the data causing the error.

    Thread Starter Merlin Silk

    (@merlinsilk)

    Perfect, John!

    Got it all to work, now the hackers example.com?y=5678 becomes example.com/5678 and that is a 404 just as I like it.

    Cheers,
    Merlin

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

You must be logged in to reply to this topic.