Support » Plugins » [Plugin: WP Portfolio] Warning: chmod() [function.chmod]: Operation not permitted

  • I just upgraded from version 1.05 to 1.06 and i get the following message:

    Warning: chmod() [function.chmod]: Operation not permitted in /ajfix.se/public_html/wp-content/plugins/wp-portfolio/wp-portfolio.php on line 1470

    Line 1470 says:

    // Try to make the directory writable
    		chmod($actualThumbPath, 0777);

    but the directory “cache” already has permission 777 and it worked prior to upgrade..

    I tried downgrading to 1.05 again, but the error remains.. Any ideas?!
    http://www.ajfix.se/portfolio

Viewing 4 replies - 1 through 4 (of 4 total)
  • That’s a new bit of code I added to handle permission problems people were having. Try changing that line from:

    chmod($actualThumbPath, 0777);

    @chmod($actualThumbPath, 0777);

    That should hide the error. Please let me know to say if it does.

    Dan

    Thread Starter Thomas

    (@enungman)

    Sorry..
    My computer broke down and i haven’t been able to log in and answer.

    I got a new error now instead of the old one..

    Warning: fopen(/ajfix.se/public_html/wp-content/plugins/wp-portfolio/cache/992442113a02a477654858844aca3964.jpg) [function.fopen]: failed to open stream: Permission denied in /ajfix.se/public_html/wp-content/plugins/wp-portfolio/wp-portfolio.php on line 1697
    
    Warning: fputs(): supplied argument is not a valid stream resource in /ajfix.se/public_html/wp-content/plugins/wp-portfolio/wp-portfolio.php on line 1698
    
    Warning: fclose(): supplied argument is not a valid stream resource in /ajfix.se/public_html/wp-content/plugins/wp-portfolio/wp-portfolio.php on line 1699

    I’m sorry, I don’t have any time to debug it in any depth for at least a momth.

    It appears you have extremely strict rules on your server, which is causing the issue. Opening files is a critical part of the plugin, without that functionality, the plugin cannot work.

    Sorry,
    Dan

    Thread Starter Thomas

    (@enungman)

    No problem Dan!

    For now.. i simply removed those three lines from the wp-portfolio.php file and now the plugin works like a charm 🙂 For now that is 😛

    Thanks for a great plugin
    (which will be better when i get this security issue to work)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Portfolio] Warning: chmod() [function.chmod]: Operation not permitted’ is closed to new replies.