Title: Doesn&#8217;t work with custom plugin folder name
Last modified: June 13, 2024

---

# Doesn’t work with custom plugin folder name

 *  [synthezoid](https://wordpress.org/support/users/synthezoid/)
 * (@synthezoid)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/doesnt-work-with-custom-plugin-folder-name/)
 * 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 errorPROBLEM DESCRIPTION: Uncaught
   UnexpectedValueException: RecursiveDirectoryIterator::__construct(/home/user/
   public_html/site/wp-content/plugins/my-function-additions): Failed to open directory:
   No such file or directorySCRIPT NAME: class-directory-iterator.phpLINE: 151SCRIPT
   LOCATION: home/user/public_html/site/wp-content/pluginfoldercustomname/string-
   locator/includes

The topic ‘Doesn’t work with custom plugin folder name’ is closed to new replies.

 * ![](https://ps.w.org/string-locator/assets/icon-256x256.png?rev=1352230)
 * [String locator](https://wordpress.org/plugins/string-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/string-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/string-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/string-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/string-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/string-locator/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [synthezoid](https://wordpress.org/support/users/synthezoid/)
 * Last activity: [1 year, 12 months ago](https://wordpress.org/support/topic/doesnt-work-with-custom-plugin-folder-name/)
 * Status: not resolved