Support » Plugin: Count per Day » Icons and Graphs not displaying

  • Resolved spottydog


    On one of my websites, the Icons and Graphs are not displaying. No images, no data, other than text.
    I’ve tried disabling all Plug-in’s to see if there was a conflict, but no luck.
    If I could upload an image, I would show you a screen capture, but there doesn’t seem to be a means to do that here. So instead, I have uploaded a screencap to the website and it can be viewed at
    I don’t have this problem on other websites using this plug-in.
    Does anyone have any suggestions?


Viewing 10 replies - 1 through 10 (of 10 total)
  • The Stylesheet of CpD is not loaded correctly. Is there a counter.css in the plugin directory?

    Hi Tom.

    Yes there is.
    Perhaps the problem is that I have the WordPress Content in a folder called site-content instead of wp-content?
    See the screencap at
    If that is the issue, is there a way to resolve it?


    You site is loading “/wp-content/plugins/count-per-day/counter.css” not “site-content” like other plugins. I use the constant PLUGINDIR.

    Try to add one of these lines in your wp-config.php

    if (!defined('PLUGINDIR')) define('PLUGINDIR', 'site-content/plugins');


    if (!defined('PLUGINDIR')) define('PLUGINDIR', dirname(__FILE__).'/site-content/plugins');

    Hi Tom.

    Neither of those worked.
    The site displayed the error message shown here

    My wp-config file already has the following in it if that is any help:

    define( 'WP_CONTENT_DIR', '/home/website2/public_html/site-content' );

    define( 'WP_CONTENT_URL', '' );


    ok, next try:
    if (!defined('PLUGINDIR')) define('PLUGINDIR', WP_CONTENT_DIR.'/plugins');
    if (!defined('PLUGINDIR')) define('PLUGINDIR', '/home/website2/public_html/site-content/plugins');

    Fatal error using both of those too.

    this works for me with wp-content instead of site-content. i think we have to use a relative path only.

    if (!defined('PLUGINDIR')) define('PLUGINDIR', '/site-content/plugins');

    Nope, still getting a fatal error.
    Just in case I’m doing something dumb, I’ve uploaded another screencap of where I am inserting it in the wp-config.php file.
    If I am doing it wrong, shoot me in the head!!! 😉

    I will not shoot, but use ‘ or ” but not &#039 like in the two line above.

    OK, shoot me in the face now.
    I copied and pasted the line of code from my email notification, and not from this page, never realising that what was shown here was different to what was displayed in my email!!!!
    So sorry to waste your time.
    It is now working and I greatly appreciate your patience.


Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Icons and Graphs not displaying’ is closed to new replies.