Path Error
-
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.jsIf 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:1400On 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_customersThanks!
The topic ‘Path Error’ is closed to new replies.