Title: save doesn&#039;t work
Last modified: August 30, 2016

---

# save doesn't work

 *  Resolved [benou01](https://wordpress.org/support/users/benou01/)
 * (@benou01)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/save-doesnt-work/)
 * When I try to save, it just say “saving” and it spin forever.
 * I’m on a mac running Yosemite, with WP 4.2.3 and Drawit 1.0.8.
 * I presume it is a file protection problem. Where are the files saved, and what
   protection should they have?
 * thanks
 * [https://wordpress.org/plugins/drawit/](https://wordpress.org/plugins/drawit/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [assortedchips](https://wordpress.org/support/users/assortedchips/)
 * (@assortedchips)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/save-doesnt-work/#post-6358967)
 * 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).
 *  Thread Starter [benou01](https://wordpress.org/support/users/benou01/)
 * (@benou01)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/save-doesnt-work/#post-6359025)
 * Yes it works. I can drop an image and it gets uploaded into the media library
   and I can insert it in a page.
 *  Plugin Author [assortedchips](https://wordpress.org/support/users/assortedchips/)
 * (@assortedchips)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/save-doesnt-work/#post-6359135)
 * 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.
 *  Plugin Author [assortedchips](https://wordpress.org/support/users/assortedchips/)
 * (@assortedchips)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/save-doesnt-work/#post-6359136)
 * 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://wordpress.org/plugins/drawit/developers/](https://wordpress.org/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.
 *  Thread Starter [benou01](https://wordpress.org/support/users/benou01/)
 * (@benou01)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/save-doesnt-work/#post-6359170)
 * 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.
 *  Thread Starter [benou01](https://wordpress.org/support/users/benou01/)
 * (@benou01)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/save-doesnt-work/#post-6359171)
 * oh, just noticed, that I’m now using 1.0.9 maybe that’s the real reason
 *  Plugin Author [assortedchips](https://wordpress.org/support/users/assortedchips/)
 * (@assortedchips)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/save-doesnt-work/#post-6359172)
 * Great, glad to hear! Yeah, I pushed the aforementioned change to 1.0.9, so I’m
   glad it ended up working for you.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘save doesn't work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/drawit_9fd0dc.svg)
 * [DrawIt (draw.io)](https://wordpress.org/plugins/drawit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/drawit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/drawit/)
 * [Active Topics](https://wordpress.org/support/plugin/drawit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/drawit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/drawit/reviews/)

## Tags

 * [save](https://wordpress.org/support/topic-tag/save/)

 * 7 replies
 * 2 participants
 * Last reply from: [assortedchips](https://wordpress.org/support/users/assortedchips/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/save-doesnt-work/#post-6359172)
 * Status: resolved