• Resolved ccasalicchio

    (@ccasalicchio)


    I have several custom roles setup, when I create a new user with that custom role, the Take-pic plugin breaks. If I manually create the folder teststudent in the uploads folder, then the plugin works. Is it related to permissions?

    This is the error:

    Warning: scandir(/home/customer/www/ucedaschool.net/public_html/wp-content/uploads/teststudent): failed to open dir: No such file or directory in /home/customer/www/ucedaschool.net/public_html/wp-content/plugins/take-pic/TakePic.php on line 497

    Warning: scandir(): (errno 2): No such file or directory in /home/customer/www/ucedaschool.net/public_html/wp-content/plugins/take-pic/TakePic.php on line 497

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/ucedaschool.net/public_html/wp-content/plugins/take-pic/TakePic.php:497) in /home/customer/www/ucedaschool.net/public_html/wp-includes/pluggable.php on line 1296

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ccasalicchio

    (@ccasalicchio)

    Version 2.1.0

    Plugin Author UjW0L

    (@ujw0l)

    I believe sever is not letting plugin create folder programatically. It is supposed to take username of user and create folder with that name where all of the user’s images are uploaded. folders are in same directory where uploads folder is.

    Thread Starter ccasalicchio

    (@ccasalicchio)

    How do I fix it? Do I need to change the permissions for the folder? What should I change it to? 777?

    Thread Starter ccasalicchio

    (@ccasalicchio)

    I’ve set the permissions for the uploads folder (recursively) to 775 and it still returned this error

    <b>Warning</b>: scandir(/home/customer/www/ucedaschool.net/public_html/wp-content/uploads/teststudent): failed to open dir: No such file or directory in <b>/home/customer/www/ucedaschool.net/public_html/wp-content/plugins/take-pic/TakePic.php</b> on line <b>497</b><br>
    <br>
    <b>Warning</b>: scandir(): (errno 2): No such file or directory in <b>/home/customer/www/ucedaschool.net/public_html/wp-content/plugins/take-pic/TakePic.php</b> on line <b>497</b><br>

    Plugin Author UjW0L

    (@ujw0l)

    try by setting permission for read and write i think its 777 , i am not sure though, never had such problem before,i think it has to do with what kind of server you are using

    Plugin Author UjW0L

    (@ujw0l)

    resolved

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cannot find upload folder’ is closed to new replies.