Title: Php warnings
Last modified: October 6, 2019

---

# Php warnings

 *  [uabclst](https://wordpress.org/support/users/uabclst/)
 * (@uabclst)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-warnings-86/)
 * Hi, thanks for a very nice plugin.
 * I see a problem though. It’s in both 2.5.2 and 2.5.1.
 * When the plugin is activated there’s a php warning:
    ( ! ) WARNING: MKDIR(): 
   FILE EXISTS IN WP-CONTENT\PLUGINS\EASYCODER\EASYCODER.PHP ON LINE 27
 * Looking at that line I see that
    mkdir(ABSPATH . ‘easycoder’);
 * is called every time the action init runs.
 * when I changed the code to
    if (!file_exists(ABSPATH . ‘easycoder’)) { mkdir(
   ABSPATH . ‘easycoder’); } the warning disappeared

The topic ‘Php warnings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easycoder.svg)
 * [EasyCoder Plugin](https://wordpress.org/plugins/easycoder/)
 * [Support Threads](https://wordpress.org/support/plugin/easycoder/)
 * [Active Topics](https://wordpress.org/support/plugin/easycoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easycoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easycoder/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [uabclst](https://wordpress.org/support/users/uabclst/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/php-warnings-86/)
 * Status: not resolved