Does the regular WordPress built-in image upload functionality via the Media Library work, or does that fail as well? If that works, then it probably is not a file permissions problem. The DrawIt files get saved at the default web server temp file location to start with, and then the built-in functions native to WordPress are used to copy it to the regular WordPress uploads folder that the Media Library uses (which can even be through an external CDN if you use that).
Yes it works. I can drop an image and it gets uploaded into the media library and I can insert it in a page.
Hi,
Can you do the following to find out what temp directory PHP is using?
php -a
echo sys_get_temp_dir();
exit
What was the output after the “echo” command? Can you go to that directory and check the file permissions for it? It should either be readable/writable by everyone, or it should allow reading/writing by a group that your web server is a member of.
To me it seems that the sys_get_temp_dir() has to be the only thing that could cause cross-platform compatibility issues. If the above steps identify the problem as described, then you can change that folder’s permissions or add the web server to the group that has write/read privileges, but I’ll also want to look into an alternative on my end.
Thanks.
Actually, I think it might work better if I just replace the use of that sys_get_temp_dir() function with WordPress’ replacement get_temp_dir(). I have made this change in the development version of the plugin. Can you uninstall your current version of DrawIt, then download the “Development Version” from https://ww.wp.xz.cn/plugins/drawit/developers/ and install it by going to your WP plugin page, click “Add New”, click “Upload Plugin”, click “Choose File”, browse to and select the .zip file you downloaded, and then click “Install Now”. Then see if that version of the plugin works. If it works, then I’ll push the change as a normal version release of the plugin.
Something weird happend… I lost all my site. I don’t know what was wrong, but my site stoped working 2 days ago.
It was a test sites, so not so bad. It got corrupted in some.
So I have installed a fresh WP, and now, go figure, I can save.
I’ll keep you informed if I run into anymore problems with drawit … but for now, it seems to be working fine.
oh, just noticed, that I’m now using 1.0.9 maybe that’s the real reason
Great, glad to hear! Yeah, I pushed the aforementioned change to 1.0.9, so I’m glad it ended up working for you.