[Plugin: Nivo Slider for WordPress] Uploads folder permissions 777
-
In the main page (panel) whenever I click the “Add New image” button I was receiving the error:
Warning : The permissions to the directory /home/username/sitename//wp-content/uploads/nivoslider4wp_files/ are invalid. Set them to 777 to be able to upload files.
First, the path is wrong on line 7 of file nivoslider4wp-panel.php. I changed it from:
$ns4wp_filesdir = ABSPATH.'/wp-content/uploads/nivoslider4wp_files/';
to:
$ns4wp_filesdir = ABSPATH.'wp-content/uploads/nivoslider4wp_files/';
Second, line 274 requires permissions 777 on the folder which is a MAJOR security issue. I changed it from:
<?php if (substr(decoct(fileperms($ns4wp_filesdir)),2) != '777') : ?>
to:
<?php if (substr(decoct(fileperms($ns4wp_filesdir)),2) < '755') : ?>
In my opinion these things need to be changed in the plugin core.
https://www.ads-software.com/extend/plugins/nivo-slider-for-wordpress/
- The topic ‘[Plugin: Nivo Slider for WordPress] Uploads folder permissions 777’ is closed to new replies.