johngodley / search-regex

Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
https://searchregex.com
GNU General Public License v3.0
32 stars 9 forks source link

Error when trying to replace in Redirection plugin (Search Regex Error) #140

Closed small-fork closed 2 months ago

small-fork commented 2 years ago

Hello,

I have found that if I try to replace anything found within the Redirection plugin, I get the error below and cannot actually do a replace.

I am not on the most recent version of Search Regex or Redirection atm (when I tested the new Search Regex it didn't have Redirection integrated as of yet).

But it seems that while I can search into Redirection with Search Regex, I cannot actually do a "replace" into Redirection, whether using the bulk replace or doing a single row. I’d love to be able to do it as I have lot of redirections I'm needing to edit in a uniform manner.

Here is the error:

Plugin: 2.4.1
WordPress: 5.9.3 (single)
PHP: 7.4.30 1024M 800s
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.167 Safari/537.36
JavaScript: https://wordpress-448298-2706768.cloudwaysapps.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://wordpress-448298-2706768.cloudwaysapps.com/wp-json/
Query: ?page=search-regex.php&searchphrase=%2Fethics%2F&source%5B%5D=redirection

Error: <p>There has been a critical error on this website.</p><p><a href="https://wordpress.org/support/article/faq-troubleshooting/">Learn more about troubleshooting WordPress.</a></p> (internal_server_error)
Raw: {"code":"internal_server_error","message":"<p>There has been a critical error on this website.<\/p><p><a href=\"https:\/\/wordpress.org\/support\/article\/faq-troubleshooting\/\">Learn more about troubleshooting WordPress.<\/a><\/p>","data":{"status":500},"additional_errors":[]}
johngodley commented 2 years ago

You will need to wait until Redirection is supported in the latest version.