Title: Path Error
Last modified: May 15, 2018

---

# Path Error

 *  Resolved [jzilberberg](https://wordpress.org/support/users/jzilberberg/)
 * (@jzilberberg)
 * [8 years ago](https://wordpress.org/support/topic/path-error-7/)
 * I have encountered an issue with the plugin where the plugin_base_url is not 
   set correctly and therefore the path to css, js and image files for the search
   and register process are not set correctly. For example the following are set
   as the paths for css and js files:
 *     ```
       http://domainame/wp-content/plugins/E:envidashboardwp-contentpluginsmedia-from-ftp/css/style.css
   
       http://domainname/wp-content/plugins/E:envidashboardwp-contentpluginsmedia-from-ftp/js/jquery.mediafromftp.js
       ```
   
 * If I change line 50 in media-from-ftp/MediaFromFtpAdmin.php as listed below, 
   this resolves the issue, but that is only temporary as I would not want to change
   core plug in files manually.
 * From:
 *     ```
       $this->plugin_base_url = plugins_url($path='',$scheme=null).'/'.$slug;
       ```
   
 * To:
 *     ```
       $this->plugin_base_url = '/wp-content/plugins/media-from-ftp';
       ```
   
 * Here is the server path status info for this server:
 *     ```
       WordPress
       home_url: http://xx.xx.xx.179:1400
       ABSPATH: E:/envidashboard/
       wp_upload_dir[basedir]: E:\envidashboard/wp-content/uploads
       wp_upload_dir[baseurl]: http://xx.xx.xx.179:1400/wp-content/uploads
       upload_path: 
       upload_url_path: 
       WPINC: wp-includes
   
       Media from FTP
       Upload Dir: E:/envidashboard/wp-content/uploads
       Upload Url: http://xx.xx.xx.179:1400/wp-content/uploads
       Upload Path: wp-content/uploads
       Plugin Disallow Tmp Dir: /wp-content/uploads/media-from-ftp-tmp/
       Site Url: http://xx.xx.xx.179:1400
       ```
   
 * On another server, it works correctly without making the change noted above. 
   Here is the server path status info for that server as a comparison:
 *     ```
       WordPress
       home_url: http://xx.xx.xx.239/envi_customers
       ABSPATH: /var/www/html/envi_customers/
       wp_upload_dir[basedir]: /var/www/html/envi_customers/wp-content/uploads
       wp_upload_dir[baseurl]: http://xx.xx.xx.239/envi_customers/wp-content/uploads
       upload_path: 
       upload_url_path: 
       WPINC: wp-includes
   
       Media from FTP
       Upload Dir: /var/www/html/envi_customers/wp-content/uploads
       Upload Url: http://xx.xx.xx.239/envi_customers/wp-content/uploads
       Upload Path: wp-content/uploads
       Plugin Disallow Tmp Dir: /wp-content/uploads/media-from-ftp-tmp/
       Site Url: http://xx.xx.xx.239/envi_customers
       ```
   
 * Thanks!
    -  This topic was modified 8 years ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

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

 *  Plugin Author [Katsushi Kawamori](https://wordpress.org/support/users/katsushi-kawamori/)
 * (@katsushi-kawamori)
 * [8 years ago](https://wordpress.org/support/topic/path-error-7/#post-10280570)
 * Thanks your report!!
 *  Plugin Author [Katsushi Kawamori](https://wordpress.org/support/users/katsushi-kawamori/)
 * (@katsushi-kawamori)
 * [8 years ago](https://wordpress.org/support/topic/path-error-7/#post-10280609)
 * Hi,
 * Please fix as follows. Do work?
    MediaFromFtpAdmin.php 50row
 * Before
    `$this->plugin_base_url = plugins_url($path='',$scheme=null).'/'.$slug;`
 * After
    `$this->plugin_base_url = untrailingslashit(plugin_dir_url( __DIR__ ));`
 * Thanks.
    -  This reply was modified 8 years ago by [Katsushi Kawamori](https://wordpress.org/support/users/katsushi-kawamori/).
 *  Thread Starter [jzilberberg](https://wordpress.org/support/users/jzilberberg/)
 * (@jzilberberg)
 * [8 years ago](https://wordpress.org/support/topic/path-error-7/#post-10283527)
 * Thanks!!! That resolved the issue and it works on both servers, the one that 
   was having the issue and the one that was working without the issue. Are you 
   going to push that change with a new version so that I don’t have to manage that
   line when updates are made?

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

The topic ‘Path Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/media-from-ftp_d27e1b.svg)
 * [Media from FTP](https://wordpress.org/plugins/media-from-ftp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-from-ftp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-from-ftp/)
 * [Active Topics](https://wordpress.org/support/plugin/media-from-ftp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-from-ftp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-from-ftp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [jzilberberg](https://wordpress.org/support/users/jzilberberg/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/path-error-7/#post-10283527)
 * Status: resolved