Title: wp-content issue
Last modified: August 20, 2016

---

# wp-content issue

 *  Resolved [Handoko](https://wordpress.org/support/users/handoko-zhang/)
 * (@handoko-zhang)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-content-issue/)
 * For security reason (as suggested by Better WP Security plugin), I changed the
   default wp-content name.
 * I can install this Count per Day but can’t activate it. It said:
 * Warning: include_once(/home/mysite/public_html/wp-content/plugins/count-per-day/
   counter-core.php) [function.include-once]: failed to open stream: No such file
   or directory in /home/mysite/public_html/mycontent/plugins/count-per-day/counter.
   php on line 16
 * I managed to make it work by manually creating a folder named ‘wp-content’ at
   the root directory and copying the count-per-day’s files (and its sub folders)
   to the folder.
 * Now it’s working but I know it’s not the best thing to do. Hope the next release
   of this plugin fix this issue. I found this information, hope it helps:
    [http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder](http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder)
 * [http://wordpress.org/extend/plugins/count-per-day/](http://wordpress.org/extend/plugins/count-per-day/)

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

 *  Plugin Author [Tom Braider](https://wordpress.org/support/users/tom-braider/)
 * (@tom-braider)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-content-issue/#post-3414099)
 * Do you also changes the constant PLUGINDIR?
    Cpd is using this path ABSPATH.PLUGINDIR.’/
   count-per-day/’.
 *  Thread Starter [Handoko](https://wordpress.org/support/users/handoko-zhang/)
 * (@handoko-zhang)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-content-issue/#post-3414100)
 * I don’t know what is PLUGINDIR.
 * I’m using Better WP Security and it suggested me to change default wp-content
   name. So I changed it using the a feature on Better WP Security.
 * I changed it from **wp-content** to (for example) **mycontent**. So far, your
   Count per Day plugin is working correctly. I saw your plugin is installed under
   mycontent folder so I manually created a folder named **wp-content**/plugins/
   count-per-day and copy all your plugin files from **my-content**/plugins/count-
   per-day.
 *  Plugin Author [Tom Braider](https://wordpress.org/support/users/tom-braider/)
 * (@tom-braider)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp-content-issue/#post-3414105)
 * PLUGINDIR is an constant of the path to the plugin dir.
    If you changed the content
   dir you have to change the plugin dir too. I think WordPress uses <content dir
   >/plugins by default. In this case my plugin should work. But maybe… add `<?php
   var_dump(PLUGINDIR); ?>` e.g. to the footer of you template an check the output.
   It should be the correct plugin dir e.g. `.../mycontent/plugins`.
 * edit:
    Oh, i see in you second link hints for the plugin dir. Perhaps PLUGINDIR
   is deprecated? Will change it in next version… Until that try this in you wp-
   config.php: `define( 'PLUGINDIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content/
   plugins' );` with you path…

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

The topic ‘wp-content issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/count-per-day_d2a1c1.svg)
 * [Count per Day](https://wordpress.org/plugins/count-per-day/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/count-per-day/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/count-per-day/)
 * [Active Topics](https://wordpress.org/support/plugin/count-per-day/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/count-per-day/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/count-per-day/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tom Braider](https://wordpress.org/support/users/tom-braider/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/wp-content-issue/#post-3414105)
 * Status: resolved