[3.0.5] mkdir permission error

Error seen in /wp-admin/update.php?action=upgrade-plugin:

Warning: mkdir() [function.mkdir]: Permission denied in /home/www/[…]/web/wp-content/plugins/easyreservations/easyReservations.php on line 457

I believe this error is because most web hosts have set a umask of 0022 for security reasons, preventing directories to be world-writable. Maybe this could fix it:
Replace: if (!is_dir($dest)) mkdir($dest, 0777);
with: if (!is_dir($dest)) mkdir($dest, 0755);

So they dont change it for 755? I’ll try, for the script it’s unimportant if it’s 755 or 777.

You must be logged in to reply in this thread.

Not Support
2 posts