• Resolved fightsmarttrav

    (@fightsmarttrav)


    Hey guys,

    I’m getting this PHP warning any time I load a page, so I wanted to bring it to your attention.

    Warningpreg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 10+

    1. wp-content/plugins/redirection/models/regex.php:24

    Plugin: redirection

    I plugged it into chatGPT, which offered some suggestions, but it didn’t give me a clear enough answer where I felt confident in changing any of the lines in your code to eliminate the warning.

    Anyhow, if this is something that needs to be fixed, I just wanted to bring it to your attention. It’s happening on pages where there are no redirections.

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

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

    (@johnny5)

    Have you created any regular expression redirects? Are they all valid? The plugin doesn’t check the validity of your expressions and you will need to make sure they don’t cause any errors.

    Thread Starter fightsmarttrav

    (@fightsmarttrav)

    Thanks for the reply, John, and for making such an awesome plugin.

    Ooof… I have no idea. I have 1,195 redirections on the site. Do you have any idea how I might be able to track the one that is causing the error down?

    Plugin Author John Godley

    (@johnny5)

    There’s no easy way to do that. You can filter by regular expressions, then look for one that has a ‘repeatable item’

    Thread Starter fightsmarttrav

    (@fightsmarttrav)

    Please forgive my ignorance… I just poked around looking for some kind of filtering option and I couldn’t find one.

    Can you tell me how to do this? Thanks in advance for your time.

    Plugin Author John Godley

    (@johnny5)

    At the top of the list of redirects is a dropdown that says Filters. Click that and pick the regular expression option.

    Thread Starter fightsmarttrav

    (@fightsmarttrav)

    WOW. No idea how I missed that… lol.

    There was only one result, and now it’s gone. My site is (unbelievably) completely without errors. Thanks John!!!

    Thread Starter fightsmarttrav

    (@fightsmarttrav)

    Replying again just to mark as solved!

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