Title: Plugin doesn&#8217;t work on Flywheel
Last modified: June 2, 2019

---

# Plugin doesn’t work on Flywheel

 *  [jptoews](https://wordpress.org/support/users/jptoews/)
 * (@jptoews)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-flywheel/)
 * Recently migrated this site from SiteGround to Flywheel. FileAway no longer works.
   We have tried disabling all other plugins, and switching to default 2019 theme,
   no joy. Files for the URL above are in the following directory:
 * [web root]/library/scholarly
 * Here is the shortcode used on this page:
 * [fileaway type=”table” filenamelabel=”scholarly” metadata=”database” icons=”none”
   mod=”no” size=”no” stats=”false” only=”.pdf”]
 * It worked perfectly before the migration to Flywheel, but now it does not.
 * In the FileAway configuration, the base directory for all paths is shown as /
   wordpress/ – I’m not clear if that’s just your shorthand for “whatever the base
   directory is”?
 * Flywheel has a bit of an odd setup, in which the core WP files are not in the
   base directory. There is a symlink in the base directory – .wordpress – which
   I believe points to the location of the core files. I suspect this is at the 
   root of our problem…
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-doesnt-work-on-flywheel%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-flywheel/#post-11597410)
 * First, make sure after your migration that you’ve gone to File Away settings 
   and clicked on “Save Settings”. This won’t fix your issue but it’s imperative
   whenever you migrate.
 * Second, open up `wp-content/plugins/file-away/lib/cls/class.fileaway_utility.
   php`
 * Go to lines 635-636 (the 2nd and 3rd lines of the `realpath` function).
 * Comment those lines out and insert two new lines below them. The lines should
   look like this:
 *     ```
       //$check1 = str_replace('\\','/',realpath($base1.$path));
       //$check2 = str_replace('\\','/',realpath($base2.$path));				
       $check1 = self::replacefirst(str_replace('\\','/',realpath($base1.$path)), rtrim(str_replace('\\','/',realpath($base1)),'/').'/', rtrim(str_replace('\\','/',$base1),'/').'/');
       $check2 = self::replacefirst(str_replace('\\','/',realpath($base2.$path)), rtrim(str_replace('\\','/',realpath($base2)),'/').'/', rtrim(str_replace('\\','/',$base2),'/').'/');
       ```
   
 * Save the file, then reload your page where your fileaway shortcode is and tell
   me if that works.
 *  Thread Starter [jptoews](https://wordpress.org/support/users/jptoews/)
 * (@jptoews)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-flywheel/#post-11597818)
 * Thanks for the prompt response! Unfortunately, that did not resolve our issue.
   If you look at the previously-linked page, nothing has changed. I re-saved FileAway
   settings, re-saved the page in question, cleared the cache… nothing.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-flywheel/#post-11598168)
 * Further troubleshooting will be a bit more complex. Please contact me at [fileaway.plugin@gmail.com](https://wordpress.org/support/topic/plugin-doesnt-work-on-flywheel/fileaway.plugin@gmail.com?output_format=md)
   and reference Flywheel in the subject line. I would like to figure this one out.
   Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin doesn’t work on Flywheel’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-away_e3e2e1.svg)
 * [File Away](https://wordpress.org/plugins/file-away/)
 * [Support Threads](https://wordpress.org/support/plugin/file-away/)
 * [Active Topics](https://wordpress.org/support/plugin/file-away/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-away/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-away/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [thomstark](https://wordpress.org/support/users/thomstark/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-on-flywheel/#post-11598168)
 * Status: not resolved