• 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey Ben,
    Is your one working now? I made those changes but now I get an error when trying to load an image. This is the error:

    Nivo Slider For WordPress – Add Image
    Sorry. Only JPG, GIF and PNG formats are supported

    Im not sure why this is, I’ve resaved the image as jpeg but still with the same result. Any ideas?
    Would be much appreciated.

    Thanks
    Loncey

    jsrnyc

    (@jsrnyc)

    Thanks, Ben. At least I was able to fix the incorrect folder destination. But, whether I change the code for the permissions — or not (and make the permissions 777), I still cannot upload. This used to work at one time, though I don’t remember which version of Nivo Slider I was using when I first set up the slideshow. The odd thing is it works on my local machine, but not on Godaddy’s server.

    jackiegrace

    (@jackiegrace)

    Hi there,

    I am having the same issue. I was able to upload images just fine about a month ago, now I am receiving the same ‘invalid set to 777’ message. Tried Ben’s fixes and did not have any luck.

    If anyone solves this, I’d much appreciate the how to!

    Thanks in advance.

    HAving the same problem here. Please help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Nivo Slider for WordPress] Uploads folder permissions 777’ is closed to new replies.