SUGGESTION: Add a checkbox option to EXCLUDE uploads directory.
The wp-contents/uploads directory contains all the site media. When searching for text across the site, there’s often absolutely no need to search the uploads directory. Searching this dir can take substantial amounts of time that and is clearly a waste.
For some sites, like mine, the uploads dir contains millions of image and other product files. Searching this folder/dir proably is probably 90% of the search time, maybe close to 100%.
It should be a simple thing to implement. (If I had the time, I’d try myself.)
]]>Hello,
I have the following challenge.
I use the “String Locator” and I always have an entry in the database when I remove it.
The reason I use this plugin is that I have had a new administrator in my WordPress for a few days now, called “WPCore”.
Does anyone know how I can delete the entry completely so that it no longer appears and whether there are any other options?
]]>Was working on a customer website, attempting to reduce their autoload data in wp_options
, when I discovered many MBs of data coming from String Locator’s transient data _transient_string-locator-search-files-<number>
. I was able to resolve the issue by purging all of the transients. I suggest adding an expire to the transient data so that it doesn’t autoload.
We have 3 Admin accounts on our site with edit capability for EVERYTHING including edit themes. We have version 6.6.1 or WordPress.
NONE of the admin accounts can execute a string replacement – gives an error that we Do NOT have “edit themes” capability.
A “string replace” plugin that doesn’t replace strings is not very useful.
Sid
Support
This appears to assume all installs have the default plugin folder name. Some people change this for security. I get all kinds of errors unless I confine the search to specific theme folders.
PHP Error log:
DATE: 12-Jun-2024 22:21:44
MESSAGE TYPE: Fatal error
PROBLEM DESCRIPTION: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/home/user/public_html/site/wp-content/plugins/my-function-additions): Failed to open directory: No such file or directory
SCRIPT NAME: class-directory-iterator.php
LINE: 151
SCRIPT LOCATION: home/user/public_html/site/wp-content/pluginfoldercustomname/string-locator/includes
Hi.
I can′t use String Locator because of this:
“String Locator is limited to search mode only.
Because this site is set to not allow direct editing of files, the functionality of the String Locator extension is limited and you may not be allowed to directly edit files containing your string here.
To edit files you need the edit_themes
permission.”
I saw another question where you said that I should go to SG Security or something similar in admin, but I don′t find that on my page.
]]>If you rename your plugin folder through your wp config, and tell it to search just the plugin folder, this can’t find it… it really should read the plguin folder name from the config, not just assume it’s always going to be the default name.
Seriously useful plugin otherwise, thanks.
I’m trying to find a script somewhere on the website, when i search for an id from the script i get the results etl_options
.option_value
. What does that mean?
Hi,
No matter what string I search for, no result is returned and [object Object] is displayed.
I have done a plugin conflict test without success, even disabling all other plugins results in this error.
Search previously worked on this site so I’m unsure why this is suddenly happening.
Can you help?
]]>Every time I try to search, I get “SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data”. It worked fine the last time I tried, a few weeks ago. I rely have been relying on this plugin, a fix would be appreciated.
]]>Hey,
plugin is leaving a lot of data in the wp_options table after the searches. I found database queries droped from 0.8s to 0.2s after deleting string locator. Even when it is deactivated it still has its effect. After installing plugin back it started again. So I have to manualy delete it from database often.
Would it be possible to add a solution to this please?
options names are like:
_transient_string-locator-search-files-159
All my plugins and wordpress is at the latest version. But I always get this error message when I try to make a search with string locator plugin:
“Warning
The file-number, 17500, that was sent could not be found.“
What is this error about? It can not search the string. I always get this error.
]]>Warning
The maximum time your server allows a script to run (1) is too low for the plugin to run as intended, at startup 2 seconds have passed
I reached out to my hosting and they said to reach out to you with the error.
“the PHP max_execution_time is currently set to 120”
how to fix?
Clean install
]]>I have the String Locator plugin installed, v2.6.3, WP 6.3 WooCommerce 6.0.4. The problem is that file editing is not enabled. Site is on SiteGround.
I get the following message:
String Locator is limited to search mode only.
Because this site is configured to not allow direct file editing, the String Locator plugin has limited functionality and may noy allow you to directly edit files with your string in them.
To edit files, you need to have the edit_themes
capability.
Anyone have any ideas where to look or how to fix and enable file editing?
]]>Getting the following message:
String Locator is limited to search mode only.
Because this site is configured to not allow direct file editing, the String Locator plugin has limited functionality and may noy allow you to directly edit files with your string in them.
To edit files, you need to have the edit_themes
capability.
For a while, I had complete edit access of my files from the plugin. I had to rebuild the site from scratch, and now, that functionality is gone. How do I get it back?
How does one enable this functionality? Is it a host site setting? Something within WordPress? I can’t find any documentation on this on the plugin page or in Google searches. So how do I re-enable it?
]]>Hello,
Can you fix this PHP warning, or explain why it is happening:PHP Warning: preg_replace(): Unknown modifier 'n'
I was trying to find “easymeals/v1” string in a theme, and string locator failed locating it. i manually found it and it looks exactly like this:
public function __construct() {
// Init variables
$this->set_namespace( 'easymeals/v1' );
Simple question, do you have an update for support of WP 6.1.1?
]]>Folks, WP reported a Fatal plugin error with String Locater. I have no idea what this means. My site looks fine but what do I know. Is there anything I should do about this??
Just contacted my Host and they said-
It looks like a failure from your backups plugin, “ai1wm-backups”, this isn’t critical as it’s not part of the frontend of the site but you’d need to check with your devs that set it up. That said, we keep local backups of the server, we take backups daily going back two weeks at a time. The backend is still accessible, so I’d guess this was a failure when the backups plugin tried to run taking a new backup.
]]>Hello.
As stated in the Topic, String Locator does not show up under “Tools”.
I have a multisite setup, and had Sucuri Security installed.
I have tried:
I find it strange because I used String Locator on another (single installation) WP site about 2 weeks ago without any issue.
Can someone help me?
Here is my debug info:
`
### wp-core ###
version: 6.1.1
site_language: da_DK
user_language: da_DK
timezone: Europe/Copenhagen
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: true
multisite: true
user_registration: false
blog_public: 0
default_comment_status: open
environment_type: production
site_count: 14
network_count: 1
user_count: 18
dotorg_communication: true
### wp-dropins (2) ###
advanced-cache.php: true
maintenance.php: true
### wp-active-theme ###
name: Astra (astra)
version: 4.0.2
author: Brainstorm Force
author_website: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
parent_theme: none
theme_features: core-block-patterns, astra_hooks, widgets-block-editor, align-wide, automatic-feed-links, title-tag, post-thumbnails, starter-content, html5, post-formats, custom-logo, customize-selective-refresh-widgets, editor-style, woocommerce, rank-math-breadcrumbs, amp, widgets, menus
theme_path: /var/www/vhosts/sandbox.ucl.dk/httpdocs/wp-content/themes/astra
auto_update: Aktiveret
### wp-themes-inactive (4) ###
UCL - E-learn: version: 0.1, author: UCL - DIG, Autoopdateringer er deaktiveret
Twenty Twenty-One: version: 1.7, author: af WordPress-holdet, Autoopdateringer er aktiverede
Twenty Twenty-Three: version: 1.0, author: af WordPress-holdet, Autoopdateringer er deaktiveret
Twenty Twenty-Two: version: 1.3, author: af WordPress-holdet, Autoopdateringer er aktiverede
### wp-plugins-active (26) ###
Astra Pro: version: 4.0.1, author: Brainstorm Force, Autoopdateringer er aktiverede
Content Control: version: 1.1.10, author: Code Atlantic, Autoopdateringer er aktiverede
Duplicator Pro: version: 4.5.9.1, author: Snap Creek, Autoopdateringer er aktiverede
Elementor: version: 3.10.1, author: Elementor.com, Autoopdateringer er aktiverede
Elementor Header & Footer Builder: version: 1.6.13, author: Brainstorm Force, Nikhil Chavan, Autoopdateringer er aktiverede
Elementor Pro: version: 3.10.2, author: Elementor.com, Autoopdateringer er aktiverede
Element Pack Lite - Addons for Elementor: version: 4.7.0, author: BdThemes, Autoopdateringer er aktiverede
Gravity Forms: version: 2.6.9, author: Gravity Forms, Autoopdateringer er deaktiveret
Gravity Forms Advanced Post Creation Add-On: version: 1.3, author: Gravity Forms, Autoopdateringer er aktiverede
Gravity Forms User Registration Add-On: version: 5.0, author: Gravity Forms, Autoopdateringer er aktiverede
LearnDash LMS: version: 4.3.1.3, author: LearnDash, Autoopdateringer er aktiverede
LearnDash LMS - Course Grid: version: 2.0.7, author: LearnDash, Autoopdateringer er aktiverede
LearnDash LMS - Elementor: version: 1.0.3, author: LearnDash, Autoopdateringer er aktiverede
LearnDash LMS - GravityForms Integration: version: 2.1.3, author: LearnDash, Autoopdateringer er aktiverede
LearnDash LMS - ProPanel: version: 2.1.4.1, author: LearnDash, Autoopdateringer er aktiverede
NS Cloner - Site Copier: version: 4.2.2.1, author: Never Settle, Autoopdateringer er aktiverede
OneLogin SAML SSO: version: 3.4.0, author: OneLogin, Inc., Autoopdateringer er aktiverede
Premium Starter Templates: version: 3.1.23, author: Brainstorm Force, Autoopdateringer er aktiverede
String Locator: version: 2.6.1, author: InstaWP, Autoopdateringer er deaktiveret
Tin Canny Reporting for LearnDash: version: 4.1.4, author: Uncanny Owl, Autoopdateringer er aktiverede
Ultimate Addons for Elementor: version: 1.36.14, author: Brainstorm Force, Autoopdateringer er aktiverede
User Menus: version: 1.3.1, author: Code Atlantic, Autoopdateringer er aktiverede
WPCode Lite: version: 2.0.6, author: WPCode, Autoopdateringer er aktiverede
WP File Manager: version: 7.1.7, author: mndpsingh287, Autoopdateringer er aktiverede
WP Mail SMTP: version: 3.7.0, author: WPForms, Autoopdateringer er aktiverede
WP Super Cache: version: 1.9.2, author: Automattic, Autoopdateringer er aktiverede
### wp-plugins-inactive (14) ###
Akismet Anti-Spam: version: 5.0.2, author: Automattic, Autoopdateringer er aktiverede
CartFlows: version: 1.11.8, author: CartFlows Inc, Autoopdateringer er aktiverede
Custom Fonts: version: 1.3.7, author: Brainstorm Force, Autoopdateringer er aktiverede
Google Analytics for WordPress by MonsterInsights: version: 8.12.1, author: MonsterInsights, Autoopdateringer er aktiverede
Import / Export Customizer Settings: version: 1.0.7, author: Brainstorm Force, Autoopdateringer er aktiverede
LearnDash Licensing & Management: version: 1.1.3, author: LearnDash, Autoopdateringer er aktiverede
Matomo Analytics - Ethical Stats. Powerful Insights.: version: 4.13.0, author: Matomo, Autoopdateringer er aktiverede
Really Simple SSL: version: 6.1.1, author: Really Simple Plugins, Autoopdateringer er aktiverede
Smart Slider 3: version: 3.5.1.12, author: Nextend, Autoopdateringer er aktiverede
Sucuri Security - Auditing, Malware Scanner and Hardening: version: 1.8.36, author: Sucuri Inc., Autoopdateringer er aktiverede
WooCommerce: version: 7.3.0, author: Automattic, Autoopdateringer er aktiverede
WordPress Importer: version: 0.8, author: wordpressdotorg, Autoopdateringer er aktiverede
WPForms Lite: version: 1.7.9.1, author: WPForms, Autoopdateringer er aktiverede
Yoast SEO: version: 20.0, author: Team Yoast, Autoopdateringer er aktiverede
### wp-media ###
image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1692
imagemagick_version: ImageMagick 6.9.12-54 Q16 x86_64 17322 https://legacy.imagemagick.org
imagick_version: 3.7.0
file_uploads: File uploads is turned off
post_max_size: 450M
upload_max_filesize: 350M
max_effective_size: 350 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 15 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 6144
imagick::RESOURCETYPE_MAP: 15 GB
imagick::RESOURCETYPE_MEMORY: 8 GB
imagick::RESOURCETYPE_THREAD: 1
imagemagick_file_formats: 3FR, 3G2, 3GP, A, AAI, AI, APNG, ART, ARW, AVI, AVS, B, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: not available
### wp-server ###
server_architecture: Linux 4.18.0-425.10.1.el8_7.x86_64 x86_64
httpd_software: Apache
php_version: 8.0.27 64bit
php_sapi: fpm-fcgi
max_input_variables: 2500
time_limit: 600
memory_limit: 500M
admin_memory_limit: 512M
max_input_time: 60
upload_max_filesize: 350M
php_post_max_size: 450M
curl_version: 7.61.1 OpenSSL/1.1.1k
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true
### wp-database ###
extension: mysqli
server_version: 10.3.35-MariaDB
client_version: mysqlnd 8.0.27
max_allowed_packet: 16777216
max_connections: 500
### wp-constants ###
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/vhosts/sandbox.ucl.dk/httpdocs/wp-content
WP_PLUGIN_DIR: /var/www/vhosts/sandbox.ucl.dk/httpdocs/wp-content/plugins
WP_MEMORY_LIMIT: 256M
WP_MAX_MEMORY_LIMIT: 512M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: true
CONCATENATE_SCRIPTS: false
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Udefineret
DB_CHARSET: utf8mb4
DB_COLLATE: undefined
### wp-filesystem ###
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
### wp_mail_smtp ###
version: 3.7.0
license_key_type: lite
debug: Email Source: Sucuri Security - Auditing, Malware Scanner and Hardening
Mailer: Other SMTP
You must provide at least one recipient email address.
lite_install_date: jan 16, 2023 @ 11:37am
`
]]>
Hi,
I am trying to change some string in the wp_review plugin on the page above.
I successfully found the string and replaced it with the “edit” option, but once saved, the frontend remain the same. I purged the cache.
Am I doing something wrong?
]]>As others have mentioned in unresolved support tickets going back several months, the search function does not work on sites where the theme file editor disabled.
After installing/activating the plugin and running a search, there is an alert (id=”string-locator-search-notices”) that displays only [Object object]
, and the search progress stays on “Preparing search…” infinitely, with no results returned.
Hi.
I’ve been using String Locator for years without problems and loving it, but lately it isn’t working for me anymore.
When I add a search term, the system seems to get stucked and it never goes beyond “preparing search”
I also get an [object Object] message above which appears to show something went wrong with the search term.
How could I solve this?
]]>Hello,
I noticed that the latest version of your plugin has a conflict with Autoptimize, which causes search results to not appear on the frontend, even though, I can see from the console that there is data that is being retrieved
Here is what it looks like when I try to search with Autoptimize deactivated
And here is what it looks like when I try to search with Autoptimize activated
I tried modifying Autoptimize’s settings to see if that would change anything, but nothing seemed to fix this issue for me.
]]>Hi
I tried the latest version with the hope to find a solution to my problem (I first mentioned it 6 months ago) https://prnt.sc/Q-1cykHR_9Jf
This time I see this error message https://prnt.sc/HbNKWAR6K5up
When I disable
define( ‘DISALLOW_FILE_EDIT’, true);
from WP-config.php file the problem disappears.
Is there any explanation for this situation?
Regards
Leonidas
I am getting this error message:
404
The above error was returned by your server, for more details please consult your servers error logs.
In the debug.log I see:
PHP Warning: preg_replace(): Unknown modifier ‘/’ in /home/caelch5/basketsofafrica.com/boa-stg-june-202/wp-content/plugins/string-locator/includes/class-search.php on line 425
????
]]>Hi
I have used String Locator for a long time, with perfect results. But now it doesn’t find any strings that I search for “Your search was completed, but no results were found.”, or give a very limited result. Sometimes I get an error message, don’t remember the code but I think was 505 or something similar.
Se my images:
https://drive.google.com/file/d/1I7UUyzRUAxNqVFsbmudXCcgg8KvgYfUR/view?usp=sharing
https://drive.google.com/file/d/1J1BnXkdzZSqn1yUM1P8DRbMLOVw4SidI/view?usp=sharing
Regards Peter
]]>Hola, han probado este plugin con un multisitio?
Lo he instalado y activado en un multisitio y no aparece la opcion en Herramientas, he agregado la opcion de modificar el archivo wp-config.php agregando define(‘DISALLOW_FILE_EDIT’, true); y aun asi no funciona.
Puedes ayudarme por favor, gracias.
No matter what I search, I get this error.
someone else reported here, but no answer there.
]]>Hello,
first of all, i want to say thanks for this great plugin
i ve been using this plugin for long time on my sites
but just today, i found some error on of my site https://ellascarborough.com/
as you can see in here
i already tried to reinstall, and i believe this is not server problem
because i have another site on the same server, but string locator on the other one works ok
Please help
Thanks
]]>