Title: PHP errors
Last modified: September 15, 2025

---

# PHP errors

 *  Resolved [fooey](https://wordpress.org/support/users/fooey/)
 * (@fooey)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/php-errors-343/)
 * We noticed errors in the error log related to this plugin.
 * PHP Warning: file_put_contents(/home/site/public_html/wp-content/plugins/independent-
   analytics/temp/device-detector.json): Failed to open stream: No such file or 
   directory in /home/gloriade/public_html/wp-content/plugins/independent-analytics/
   IAWP/Utils/Device_Cache.php on line 87
 * Is there something that needs to be addressed?
 * thanks

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

 *  Plugin Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/php-errors-343/#post-18642718)
 * Hi there,
 * Thanks for getting in touch about this.
 * Independent Analytics writes to a file inside its folder, located here: `/wp-
   content/plugins/independent-analytics/temp/`. It sounds like the file permissions
   on the site are likely blocking it from doing this. If you are able to change
   the file permissions to make the plugins folder writeable, that should resolve
   the issues.
 * If that’s not an option, you can change the location where Independent Analytics
   writes to instead by adding this line to your wp-config.php file:
 *     ```wp-block-code
       define('IAWP_TEMP_DIR', '/home/site/public_html/wp-content/uploads/iawp/');
       ```
   
 * I’m guessing the uploads folder is writeable, but you can choose any location
   that your server will allow plugins to write to files.
 *  Thread Starter [fooey](https://wordpress.org/support/users/fooey/)
 * (@fooey)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/php-errors-343/#post-18644042)
 * I checked the folder permissions and they are 0755.
 * I added the line to wp-config but shouldn’t it write to the correct folder with
   those permissions?
 * Thanks
 *  Plugin Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/php-errors-343/#post-18644168)
 * If the file permissions are correct, then I’m not sure exactly why it’s unable
   to write to the default folder. There may be another security feature on the 
   site blocking it from working.
 * Is it working well now that it’s been set to write to the uploads folder?
 *  Thread Starter [fooey](https://wordpress.org/support/users/fooey/)
 * (@fooey)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/php-errors-343/#post-18644202)
 * So far, I will keep an eye on it and let you know if the errors return. Thank
   you so much for such speedy replies!
 *  Plugin Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/php-errors-343/#post-18644254)
 * You’re welcome!
 * Stay in touch if you need any further assistance.

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

The topic ‘PHP errors’ is closed to new replies.

 * ![](https://ps.w.org/independent-analytics/assets/icon.svg?rev=3504049)
 * [Independent Analytics - WordPress Analytics Plugin](https://wordpress.org/plugins/independent-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/independent-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/independent-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/independent-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/independent-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/independent-analytics/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * Last activity: [8 months, 3 weeks ago](https://wordpress.org/support/topic/php-errors-343/#post-18644254)
 * Status: resolved