Warning (Suppressed) mkdir(): Permission denied
wp-includes/functions.php:2057
mkdir()
wp-includes/functions.php:2057
wp_mkdir_p() wp-includes/functions.php:2368
wp_upload_dir()
wp-content/plugins/easy-social-icons/easy-social-icons.php:14
Getting warning message in site after update photo gallery plugin from 1.5.29 to
1.5.62 message is as below
“Warning: mkdir(): No such file or directory in /home/b*****/public_html/*****/plugins/photo-gallery/framework/BWGOptions.php on line 359”
Please let me know how to figure out this
Adavance txs
sri
PHP Warning: mkdir(): No such file or directory in /home/cpaneluser/public_html/wp-content/plugins/photo-gallery/framework/BWGOptions.php on line 353
I temporarily added the following code to BWGOptions.php at line 351:
var_dump($this->upload_dir);
Here is the output from the above statement:
string(59) "/home/cpaneluser/public_html/wp-content/uploads/photo-gallery"
This path is correct, and the directory does exist. For some reason, this line of code in the plugin thinks it does not exist:
if ( !is_dir($this->upload_dir) ) {
I checked the file permissions of the directory in question, and all the directories above it, and the permissions are correct. What am I missing?
]]>how to resolve this?
]]>Can you kindly provide a solution to fix this?
]]>I noticed recently that two of the sites I’m managing were displaying warning messages on their front ends. Once cleared the cached they went away but the clients are complaining as this seems to be happening frequently. I managed to capture one warning message:
“Warning: mkdir(): File exists in /xxx/plugins/comet-cache/src/includes/traits/Plugin/InstallUtils.php on line 356”
Here are the common plugins on those sites and all of them are running their respective latest versions:
All In One WP Security
Contact Form 7
Slimstat Analytics
UpdraftPlus – Backup/Restore
Yoast SEO
It would be great if someone can point me to the right direction to avoid these messages being displayed. Many thanks in advance!
]]>Hope your well! Can you off the top of your head give me the location of where your makedir shortcode is being generated? I’m looking to tweak it so it makes multiple files within the directory based on the users type.
Spanx!
]]>Can you help me ?
I’m on windows 8.1 and i use xampp to manage my wordpress on local
ps : sorry for bad english, hope i’m understandable.
https://www.ads-software.com/plugins/file-away/
]]>https://www.ads-software.com/plugins/staticpress/
]]>I propose to fix the warning/error
PHP Warning: mkdir() [function.mkdir]: Permission denied in …/wp-content/plugins/wp-csv/wp-csv.php on line 323
due to unsuccessful mkdir.
solution is to check if parent folder is writable
file wp-csv around line 323
before :
public function get_csv_folder( ) {
$chosen_folder = '';
$paths = $this->get_paths( 'wpcsv_backups' );
foreach( $paths as $p ) {
if ( ( !file_exists( $p ) && ( mkdir( $p, 0755 ) ) || $this->folder_writable( $p ) ) ) {
$chosen_folder = $p;
break;
}
}
after :
public function get_csv_folder( ) {
$chosen_folder = '';
$paths = $this->get_paths( 'wpcsv_backups' );
foreach( $paths as $p ) {
if ( ( !file_exists( $p ) && ($this->folder_writable(dirname($p))) && ( mkdir( $p, 0755 ) ) || $this->folder_writable( $p ) ) ) {
$chosen_folder = $p;
break;
}
}
(should I open a ‘trac’ ?)
thanks for wp-csv plugin
https://www.ads-software.com/plugins/wp-csv/
]]>