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

  • Resolved spottydog

    (@spottydog)


    Hi.
    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 http://www.websitedesignmorayfield.com.au/screencap.png
    I don’t have this problem on other websites using this plug-in.
    Does anyone have any suggestions?

    Regards
    Iain

    http://wordpress.org/plugins/count-per-day/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Tom Braider

    (@tom-braider)

    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 http://www.websitedesignmorayfield.com.au/screencap1.png
    If that is the issue, is there a way to resolve it?

    Regards
    Iain

    Plugin Author Tom Braider

    (@tom-braider)

    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');

    or

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

    Hi Tom.

    Neither of those worked.
    The site displayed the error message shown here http://www.websitedesignmorayfield.com.au/screencap2.png

    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', 'http://www.websitedesignmorayfield.com.au/site-content' );

    Regards
    Iain

    Plugin Author Tom Braider

    (@tom-braider)

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

    Nope.
    Fatal error using both of those too.

    Plugin Author Tom Braider

    (@tom-braider)

    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.
    http://www.websitedesignmorayfield.com.au/screencap4.png
    If I am doing it wrong, shoot me in the head!!! 😉

    Plugin Author Tom Braider

    (@tom-braider)

    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.

    Cheers
    Iain

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