Git Product home page Git Product logo

search-regex's People

Contributors

dependabot[bot] avatar johngodley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

search-regex's Issues

Search Regex Error

Hello, error is showing when I try a search on Every Post Types. It does not show if the search is only on Posts.
(send error by email is rejected by the way).

Plugin: 2.0
WordPress: 5.4.1 (single)
PHP: 7.3.9
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
JavaScript: https://www.echodesplugins.li-an.fr/wp-content/plugins/search-regex/search-regex.js
REST API: https://www.echodesplugins.li-an.fr/wp-json/

Error: Unexpected end of JSON input (SyntaxError)
Action: search-regex/v1/search/?searchPhrase=alignnone&searchFlags%5B0%5D=case&source%5B0%5D=posts&sourceFlags%5B0%5D=post_guid&perPage=25&page=0&searchDirection=forward GET
Code: 200 OK
Raw: -no data-

Search Regex Error

Plugin: 2.3.2
WordPress: 5.5.1 (single)
PHP: 7.2.30-1+0~20200419.40+debian9~1.gbpb1b799 1024M 6000s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
JavaScript: https://book.mangmoba.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://book.mangmoba.com/wp-json/

Error: Unexpected token < in JSON at position 0 (SyntaxError)
Raw: <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

Search Regex Error

Plugin: 2.1
WordPress: 5.4.2 (single)
PHP: 5.6.36
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36
JavaScript: http://mlk-mebel.ru/wp-content/plugins/search-regex/search-regex.js
REST API: http://mlk-mebel.ru/wp-json/
Memory: 256M
Timeout: 30

Error: Подходящий маршрут для URL и метода запроса не найден (rest_no_route)
Action: search-regex/v1/source/post-meta/52367/ GET
Code: 404 Not Found
Raw: {"code":"rest_no_route","message":"\u041f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043b\u044f URL \u0438 \u043c\u0435\u0442\u043e\u0434\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d","data":{"status":404}}

Search Regex Error

Plugin: 2.1
WordPress: 5.5.1 (single)
PHP: 7.2.32
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
JavaScript: https://eromanga-blog.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://eromanga-blog.com/wp-json/
Memory: 256M
Timeout: 30

Error: Unexpected token < in JSON at position 0 (SyntaxError)
Raw: <html><head><title>500 Internal Server Error</title></head><body>
<h2>Request Timeout</h2>
<p>This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.
</p>
</body></html>

Search Regex Error

Plugin: 2.3.2
WordPress: 5.5.1 (single)
PHP: 7.2.30-1+0~20200419.40+debian9~1.gbpb1b799 1024M 6000s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36
JavaScript: https://cendrawasih11.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://cendrawasih11.com/wp-json/

Error:  (500)
Raw: {"code":"internal_server_error","message":"<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.<\/a><\/p>","data":{"status":500},"additional_errors":[]}

Search Regex Error


Action: https://www.seychellen.nl/wp-json/search-regex/v1/replace/ POST
Params: {"searchPhrase":"terrace","searchFlags":["case"],"source":["post-meta"],"sourceFlags":[],"replacement":"terras","perPage":50,"replacePhrase":"terras","offset":"0"}
Code: 500 Internal Server Error

Error: Failed to update meta data: post (searchregex)
Raw: {"code":"searchregex","message":"Failed to update meta data: post","data":null}

Отсутствует параметр: replacePhrase (rest_missing_callback_param)Search Regex Error

Plugin: 2.0.1
WordPress: 5.4.1 (single)
PHP: 7.3.10
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
JavaScript: https://xn--m1aabangb.xn--p1ai/wp-content/plugins/search-regex/search-regex.js
REST API: https://xn--m1aabangb.xn--p1ai/wp-json/

Error: Отсутствует параметр: replacePhrase (rest_missing_callback_param)
Raw: {"code":"rest_missing_callback_param","message":"\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440: replacePhrase","data":{"status":400,"params":["replacePhrase"]}}

Search Regex Error

Plugin: 2.0.1
WordPress: 5.4.1 (single)
PHP: 7.4.6
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
JavaScript: https://www.*****.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://www.*****.com/wp-json/

Error: Missing parameter(s): replacePhrase (rest_missing_callback_param)
Raw: {"code":"rest_missing_callback_param","message":"Missing parameter(s): replacePhrase","data":{"status":400,"params":["replacePhrase"]}}

"Remove all" feature

To help track problems please follow this template. If you can provide screenshots then that will help.

We need to be able to replace found patterns with '' (empty string).

Summary

Please add "Remove all" feature for multiple rows.

Currently, I need to select row by row, click on replace row -> remove to remove the row.

Actual Behavior

The "Replace all" is disabled if no input is supplied.

Steps to reproduce

1 Insert a pattern
2 See "Replace all" is disabled

Environment

Search Regex plugin version latest of December 17, 2021.

Search Regex Error

Plugin: 2.3.1
WordPress: 5.5.1 (single)
PHP: 7.3.21 256M 30s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
JavaScript: https://techro.co.jp/wp-content/plugins/search-regex/search-regex.js
REST API: https://techro.co.jp/wp-json/
Query: ?page=search-regex.php&searchphrase=sfnxm335.kagoyacloud.com
Buster: 2.3.1 === 2.3.1

TypeError: Cannot read property 'split' of undefined

    in Unknown
    in f
    in Ul
    in Unknown
    in f
    in Unknown
    in f
    in yc
    in tu
    in div
    in u
    in Unknown
    in f
    in StrictMode
    in Le
    in Oc

Search Regex Error

Plugin: 2.3.1
WordPress: 5.5.1 (single)
PHP: 7.4.6 512M 120s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
JavaScript: http://2c2f0259e4d1.ngrok.io/KCTeh/wp-content/plugins/search-regex/search-regex.js
REST API: http://2c2f0259e4d1.ngrok.io/KCTeh/wp-json/
Query: ?page=search-regex.php&searchphrase=192.168.0.197
Buster: 2.3.1 === 2.3.1

TypeError: Cannot read property 'split' of undefined

    in Unknown
    in f
    in Ul
    in Unknown
    in f
    in Unknown
    in f
    in yc
    in tu
    in div
    in u
    in Unknown
    in f
    in StrictMode
    in Le
    in Oc

Failed to update meta data

Plugin: 2.2.1
WordPress: 5.4.2 (single)
PHP: 7.3.17 128M 120s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
JavaScript: https://test-touhyousaki.new-poli.biz/wp-content/plugins/search-regex/search-regex.js
REST API: https://test-touhyousaki.new-poli.biz/wp-json/

Error: Failed to update meta data: post (searchregex)
Raw: {"code":"searchregex","message":"Failed to update meta data: post","data":null}

rest_no_route

Plugin: 2.2.1
WordPress: 5.5 (single)
PHP: 7.4.8 256M 30s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0
JavaScript: https://owenduffy.net/blog/wp-content/plugins/search-regex/search-regex.js
REST API: https://owenduffy.net/blog/index.php?rest_route=/

Action: https://owenduffy.net/blog/index.php?rest_route=/search-regex/v1/search/ POST
Params: {"searchPhrase":"test","searchFlags":["case"],"source":["post","page"],"sourceFlags":[],"replacement":"","perPage":25,"page":0,"searchDirection":"forward"}
Code: 404 Not Found

Error: No route was found matching the URL and request method (rest_no_route)
Raw: {"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}

Action: https://owenduffy.net/blog/index.php?rest_route=/search-regex/v1/search/ POST
Params: {"searchPhrase":"test","searchFlags":["case"],"source":["post","page"],"sourceFlags":[],"replacement":"","perPage":25,"page":0,"searchDirection":"forward"}
Code: 404 Not Found

Error: No route was found matching the URL and request method (rest_no_route)
Raw: {"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}

Search not working

Hi,

on one of my sites, where I have a previous version of your plugin installed, the plugin is working fine. But on another site I have the newer version and the search is not returning anything

Screenshot 2020-06-16 at 16 39 57

Screenshot 2020-06-16 at 16 40 42

If the way you have process your regex has changed, or otherwise, please let me know.

Apparent crash under WP 5.2.2

I get emails from WP notifying a problem, and it seems to happen when the search results are empty.

Error Details

An error of type E_ERROR was caused in line 26 of the file /home/owenduffy/public_html/blog/wp-content/plugins/search-regex/view/results.php. Error message: Uncaught Error: Call to undefined method SearchRegex::base_url() in /home/owenduffy/public_html/blog/wp-content/plugins/search-regex/view/results.php:26
Stack trace:
#0 /home/owenduffy/public_html/blog/wp-content/plugins/search-regex/search-regex.php(130): include()
#1 /home/owenduffy/public_html/blog/wp-content/plugins/search-regex/search-regex.php(116): SearchRegex->render('results', Array)
#2 /home/owenduffy/public_html/blog/wp-includes/class-wp-hook.php(286): SearchRegex->admin_screen('')
#3 /home/owenduffy/public_html/blog/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#4 /home/owenduffy/public_html/blog/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /home/owenduffy/public_html/blog/wp-admin/admin.php(253): do_action('tools_page_sear...')
#6 /home/owenduffy/public_html/blog/wp-admin/tools.php(10): require_once('/home/owenduffy...')
#7 {main}
thrown

20200908 Search Regex Error

Plugin: 2.3.1
WordPress: 5.5.1 (single)
PHP: 7.4.4 1G 180s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
JavaScript: https://dayandday-gleam.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://dayandday-gleam.com/wp-json/
Query: ?page=search-regex.php&searchphrase=333
Buster: 2.3.1 === 2.3.1

TypeError: Cannot read property 'split' of undefined

    in Unknown
    in f
    in Ul
    in Unknown
    in f
    in Unknown
    in f
    in yc
    in tu
    in div
    in u
    in Unknown
    in f
    in StrictMode
    in Le
    in Oc

Blank Screen

This is the issue reported on Wordpress as well.
As far as I traced the problem, it is related to the cases of searching and replacing big number of matching terms (in my case usually more than 200). In such cases, the error (which not shown on server side usually) is something like this:
( ! ) Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 461727 bytes) in C:\wamp\www\******\wp-content\plugins\search-regex\models\search.php on line 188

As the existing codes cannot handle this issue automatically, it needs to be done manually by limiting the number of search and replace. But for some reason which is not known to me, limit functionality is not working.
Therefore, people get error/blank page by running the plugin.

Missing replacements?

Summary

I'm trying to replace some <strong> tags wrapping specific content with <span> tags instead. Using regex I was able to capture few occurrences in the posts table in my DB. When clicking replace all, the progress bar shows like it's working, everything finally terminates successfully, and when I search for this term again, I can't find it, which hints on that all of its occurrences have been replaced.

The problem is, when I'm loading the pages (where replacements took place) again, I'm being showed with the content before replacement. I have taken down ALL cache layers, cleared them, etc.
Also, when I'm going into editing mode for my posts, here as well, I'm seeing the original content (like no replace took place). I'm using a pagebuilder (Elementor), but it shouldn't really be a problem IMHO since it uses the same posts table in the DB.

Steps to reproduce

Search string: (<em>)*(<strong>)[^<]*(sometext[^<]*)(<\/strong>)(<\/em>)*
Replace: <span class="tip_title">$3</span>
Replace Flag: Single (not really sure what is that)
Source: Posts
Search Flags: IGNORE CASE, REGULAR EXPRESSION

Environment

I'm using Chrome on Windows, a wordpress.org-based-site on shared hosting service.

Replace specified (rather than all) matches with global replacement text

Summary

As pointed in this topic, would be great to have the option to specify which occurrence to be replaced, rather than all. In my case I'm trying to accomplish a very common scenario: replace all first images inserted in posts, a common issue when a project was previously using a theme that doesn't show the featured image in single.

Actual Behavior

There's no option to change the global matching. (Not an regex expert, I don't know if it's the right term)

Steps to reproduce

Try to match any regex agains first or one specif occurrence.

Environment

Firefox 84.0.2 (64-bits) Windows 10, WordPress 5.6, Search Regex 2.4.1

Replace All not replacing all?

With this setup ...
image

I click 'Replace All' ... then 'Search' again ... and nothing has been done. Same results.

But if I Replace an individual row:
image
then it works on that row.

Search / Remove error

Plugin: 2.0.1
WordPress: 5.4.1 (single)
PHP: 7.3.16
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
JavaScript: https://subethasoftware.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://subethasoftware.com/wp-json/

Error: Missing parameter(s): replacePhrase (rest_missing_callback_param)
Raw: {"code":"rest_missing_callback_param","message":"Missing parameter(s): replacePhrase","data":{"status":400,"params":["replacePhrase"]}}

Replace phrase isn't an option when doing "Remove".

Search Regex Error

Plugin: 2.4
WordPress: 5.5.3 (single)
PHP: 7.3.14 512M 14400s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
JavaScript: https://test.financial-field.com/wp/wp-content/plugins/search-regex/search-regex.js
REST API: https://test.financial-field.com/wp-json/
Query: ?page=search-regex.php&searchphrase=style%3D%22color%3A%20%23000000%20%21important%3B%20padding-left%3A%2014px%3B%20border-left%3A%204px%20solid%20%230c5ed4%3B%20font-size%3A%2018px%20%21important%3B%20font-weight%3A%20600%3B%20line-height%3A%201.5%3B%22%20class%3D%22c-sub_heading%20u-article_item_margin%22

Error: Unexpected token < in JSON at position 0 (SyntaxError)
Raw: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

Problem starting Search Regex 2.3

Uncaught TypeError: Cannot read property 'remove' of null https://drakor.mangmoba.com/wp-content/plugins/search-regex/search-regex.js?ver=2.3-1042cf6450db9de5eb8e491f46fba548 2

Plugin: 2.3
WordPress: 5.5.1 (single)
PHP: 7.2.30-1+020200419.40+debian91.gbpb1b799 1024M 6000s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
JavaScript: https://drakor.mangmoba.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://drakor.mangmoba.com/wp-json/

Problem starting Search Regex 2.3

Uncaught TypeError: Cannot read property 'remove' of null https://game.mangmoba.com/wp-content/plugins/search-regex/search-regex.js?ver=2.3-1042cf6450db9de5eb8e491f46fba548 2

Plugin: 2.3
WordPress: 5.5.1 (single)
PHP: 7.2.30-1+020200419.40+debian91.gbpb1b799 1024M 6000s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
JavaScript: https://game.mangmoba.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://game.mangmoba.com/wp-json/

Search Regex Error

I also get the following error.

Plugin: 2.0
WordPress: 5.4.1 (single)
PHP: 7.3.14
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
JavaScript: https://blog.komeho.info/wp-content/plugins/search-regex/search-regex.js
REST API: https://blog.komeho.info/wp-json/

Error: パラメーター不足: replacePhrase (rest_missing_callback_param)
Action: search-regex/v1/replace/ POST
Params: {"searchPhrase":"http://www.amazon.co.jp","searchFlags":["case"],"source":["post"],"sourceFlags":[],"replacement":"https://www.amazon.co.jp","perPage":25,"page":50}
Code: 400 Bad Request
Raw: {"code":"rest_missing_callback_param","message":"\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u4e0d\u8db3: replacePhrase","data":{"status":400,"params":["replacePhrase"]}}

Unexpected end of JSON input

Please tell me how to fix the error

Plugin: 2.1
WordPress: 5.4.2 (single)
PHP: 7.2.29
Browser: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Sleipnir/6.4.6
JavaScript: https://xxx/wp-content/plugins/search-regex/search-regex.js
REST API: https://xxx/wp-json/
Memory: 256M
Timeout: 14400

Error: Unexpected end of JSON input (SyntaxError)
Raw: -no data-

REGEX keeps crashing server

every time i run the plugin to clean up 37k posts, with all plugins disabled, it crashes my 8-core/32GB server and produces this error:
SyntaxError: Unexpected token < in JSON at position 0

Unexpected token < in JSON at position 0 (SyntaxError)

And this error:
The connection to the origin web server was made, but the origin web server timed out before responding. The likely cause is an overloaded background task, database or application, stressing the resources on your web server. To resolve, please work with your hosting provider or web development team to free up resources for your database or overloaded application.

https://cdn.livechat-files.com/api/file/lc/att/4817491/1ae3c2c5f7677f93d0e884e76f23eb7e/2021-01-12_16-36-54.png

Search Regex Error

Plugin: 2.1
WordPress: 5.4.2 (single)
PHP: 7.2.31
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
JavaScript: https://mangameigen.net/wp-content/plugins/search-regex/search-regex.js
REST API: https://mangameigen.net/wp-json/
Memory: 512M
Timeout: 999

Error: Unexpected token < in JSON at position 0 (SyntaxError)
Raw: <html><head><title>500 Internal Server Error</title></head><body>
<h2>Request Timeout</h2>
<p>This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to i

Search Regex Error

Plugin: 2.2.1
WordPress: 5.4.2 (single)
PHP: 7.4.4 256M 30s
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36
JavaScript: https://rebirthlab.com/magazine/wp-content/plugins/search-regex/search-regex.js
REST API: https://rebirthlab.com/magazine/index.php?rest_route=/

Error: URL とリクエストメソッドに一致するルートがありません (rest_no_route)
Raw: {"code":"rest_no_route","message":"URL \u3068\u30ea\u30af\u30a8\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u306b\u4e00\u81f4\u3059\u308b\u30eb\u30fc\u30c8\u304c\u3042\u308a\u307e\u305b\u3093","data":{"status":404}}

Typo

client/wp-plugin-components/error/display/error-api.js:20:
Plrease review your data and try again.

Correct: Please

Search Regex Error: not found usermeta table in multiple site

Plugin: 2.1
WordPress: 5.4.2 (multi)
PHP: 7.4.3
Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
JavaScript: https://mtg.senooken.jp/wp-content/plugins/search-regex/search-regex.js
REST API: https://mtg.senooken.jp/wp-json/
Memory: 500M
Timeout: 300

Error: Table 'senooken_main.senooken_2_usermeta' doesn't exist (searchregex_database)
Action: search-regex/v1/search/ POST
Code: 500 Internal Server Error
Raw: {"code":"searchregex_database","message":"Table 'senooken_main.senooken_2_usermeta' doesn't exist","data":401}

Hi. I found this bug when I include user meta info in search target in my multiple sites.

Search Regex Error

Plugin: 2.4
WordPress: 5.5.3 (single)
PHP: 7.4.11 512M 120s
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36
JavaScript: https://story-staging.storyterrace.com/wp-content/plugins/search-regex/search-regex.js
REST API: http://story-staging.storyterrace.com/nl/wp-json/
Query: ?page=search-regex.php&searchphrase=%5Bphp%5D

Error: Failed to fetch

Search Regex Error

Here is the error I get each time I try to Search something. It doesn't matter if I put anything in the 'Replace' field or not. When I hit Search, all I get is this error message:

Plugin: 2.3.1
WordPress: 5.5.1 (single)
PHP: 7.3.16 768M 120s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
JavaScript: https://www.pianodreamers.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://www.pianodreamers.com/wp-json/
Query: ?page=search-regex.php&searchphrase=hello
Buster: 2.3.1 === 2.3.1

TypeError: Cannot read property 'split' of undefined

    in Unknown
    in f
    in Ul
    in Unknown
    in f
    in Unknown
    in f
    in yc
    in tu
    in div
    in u
    in Unknown
    in f
    in StrictMode
    in Le
    in Oc

Search Regex Error

Plugin: 2.3.2
WordPress: 5.5.1 (single)
PHP: 7.2.30-1+0~20200419.40+debian9~1.gbpb1b799 1024M 6000s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
JavaScript: https://book.mangmoba.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://book.mangmoba.com/wp-json/
Query: ?page=search-regex.php&searchphrase=https%3A%2F%2Fbook.mangmoba.com%2Fwp-content
Buster: 2.3.2 === 2.3.2

TypeError: Cannot read property 'http' of undefined

    in ga
    in div
    in div
    in Qa
    in div
    in Ka
    in div
    in i
    in f
    in Zi
    in ba
    in div
    in ja
    in tu
    in div
    in u
    in Unknown
    in f
    in StrictMode
    in Le
    in Oc

Very little result

Summary

I have a lot of linked thumbnails in my posts with alignnone style and I want to change them into aligncenter.
Searchregex before 2.0 gave no more result after a first run. Since 2.0 I have three results. But I know there must be much more alignnone in my content. So I tried SearchReplace script from Interconnect and it found more than 300 entries.

Searchregex

regex

SearchReplace script

search-replace

Environment

Centerbrowser (Chromium) and WP 5.4.1. All plugins desactivated.

Search Regex Error

Plugin: 2.1
WordPress: 5.3.4 (single)
PHP: 7.3.14
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
JavaScript: https://www.kk-hk.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://www.kk-hk.com/wp-json/
Memory: 512M
Timeout: 120

Error: URL とリクエストメソッドに一致するルートがありません (rest_no_route)
Action: search-regex/v1/source/post-meta/260/replace/ POST
Code: 404 Not Found
Raw: {"code":"rest_no_route","message":"URL \u3068\u30ea\u30af\u30a8\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u306b\u4e00\u81f4\u3059\u308b\u30eb\u30fc\u30c8\u304c\u3042\u308a\u307e\u305b\u3093","data":{"status":404}}

Can't load localization

This plugin is very popular in Japan!

ver2.3.2 now works. But, English is now loaded. ver2.3.0-2.3.1 loaded Japanese files.

In update history, "Fix locale pluralization throwing an error". Is this relevant?

The Japanese language does not have a plural entry field. In the .po file, the length of the array is 1.

msgid "Uploaded %(total)d preset"
msgid_plural "Uploaded %(total)d presets"
msgstr[0] "計%(total)d項目のプリセットをアップロードしました"

Browser: Current Chrome, Firefox

Search Regex Error

Plugin: 2.1
WordPress: 5.4.2 (single)
PHP: 7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36 X-Middleton/1
JavaScript: https://blogthetech.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://blogthetech.com/wp-json/
Memory: 256M
Timeout: 60

Error: Unexpected token { in JSON at position 125 (SyntaxError)
Raw: {"code":"wp_die","message":"<h1>Error establishing a database connection<\/h1>","data":{"status":500},"additional_errors":[]}{"code":"wp_die","message":"<h1>Error establishing a database connection<\/h1>","data":{"status":500},"additional_errors":[]}

Search Regex Error

Good evening!

My name is Daisuke.

I want to use your plugin, but I got an error.

I tried reloading the plugin but the results are the same.

I would like to know how to stop this error.

Plugin: 2.2.1
WordPress: 5.5 (single)
PHP: 7.2.29 256M 30s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
JavaScript: https://torenndo-basuta.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://torenndo-basuta.com/wp-json/

Error: Unexpected end of JSON input (SyntaxError)

Problems with new verion

To help track problems please follow this template. If you can provide screenshots then that will help.

Please replace this template with your own details!

I'm trying to do a regex search and replace.
I'm searching for the following:
([^<]*)
I'm replacing with:
\1
I'm consistently getting the following error message.

Plugin: 2.0
WordPress: 5.4.1 (single)
PHP: 7.3.1
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
JavaScript: https://solarstuff.dev.cc/wp-content/plugins/search-regex/search-regex.js
REST API: https://solarstuff.dev.cc/wp-json/
Buster: 2.0 === 2.0

TypeError: Cannot read property 'indexOf' of undefined

in Ea
in div
in div
in a
in f
in div
in a
in f
in StrictMode
in H
in ji

Also, the search would only crawl along at 2-3% per second (3500 post records) before returning the error.

Explain what you are trying to do. If you want to suggest a new feature then explain what you want it to do:
This has worked in the old version. I'd pretty much stopped using it because of it's age and the way wordpress was reporting it as a serious problem. Really happy that you're back. Once I can get it working I'll add to your coffers. Search Regex is one of the most useful plugins on the planet - none of the the other search and replace apps come close.

Actual Behavior

End result is I can't seem to run a regex search and replace.

Explain what actually happened. If suggesting a new feature then explain what currently happens.

Steps to reproduce

As above

Environment

Please list your browser, browser version, version of WordPress and Search Regex plugin.
Brave browser v1.8.9.5., Wordpress v5.4.1, Search Regex v2.
I'm running locally on a DesktopServer site.

Search Regex Error

Plugin: 2.3.2
WordPress: 5.4.2 (single)
PHP: 7.3.20-1+ubuntu16.04.1+deb.sury.org+1 256M 30s
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
JavaScript: https://iblackfridaydeals.net/wp-content/plugins/search-regex/search-regex.js
REST API: https://iblackfridaydeals.net/wp-json/

Error:  (500)
Raw: {"code":"searchregex","message":"Failed to update meta data: post","data":null}

Search Regex Error

Plugin: 2.2.1
WordPress: 5.4.2 (single)
PHP: 7.3.19 256M 30s
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
JavaScript: https://site.com/blog/wp-content/plugins/search-regex/search-regex.js
REST API: https://site.com/blog/index.php?rest_route=/

Error: No route was found matching the URL and request method (rest_no_route)
Raw: {"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}

Error: No route was found matching the URL and request method (rest_no_route)
Raw: {"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}

Search result works, though no edits are made to the DB

Cool plugin BTW, looks very promising, although it simply doesn't do anything.

Summary

When attempting to use this plugin, it simply doesn't make any edits to the DB.

Actual Behavior

When searching for a string to replace it finds them. When adding a replace string and then "Replace All", the blue progress bar goes, although no edits are actual made to the DB. When searching it shows the results, though when actually replacing it just says "0 phrases. 0 rows."

Steps to reproduce

Try to use the plugin.

Environment

Chrome (latest version), Latest Wordpress, Latest Search Regex

Any help on this would be appreciated, as I really like this plugin in theory, though it's just not doing anything. Perhaps related to some security parameters set on my server or DB? Thanks!

SEARCH :
image

RESULT :

image

Search Regex Error

Plugin: 2.2.1
WordPress: 5.4.2 (single)
PHP: 7.0.33 512M 14400s
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
JavaScript: https://www.richardson.com/wp-content/plugins/search-regex/search-regex.js
REST API: https://www.richardson.com/wp-json/

Error: Failed to update meta data: post (searchregex)
Raw: {"code":"searchregex","message":"Failed to update meta data: post","data":null}

regular text replacement (without regex expression) discards '\' characters in articles

Summary

I find that this plugin discards all characters '\' in the affected pages silently. All of my mathjax shortcodes are affected.

Steps to reproduce

  1. Create an article with regular texts containing '\' characters.
  2. Find and replace regular texts that do not contain any '\' characters.
  3. Although I do nothing related with '\' character, all the '' characters disappear after the plugin's batch work

Environment

Chrome; OSX; search regex 2.4 ; wordpress 5.5.3; php 7.4
I have already reproduced the steps in a new-installed wordpress 5.5.3 environment without any other plugins and themes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.