WordPress.org

Ready to get started?Download WordPress

Forums

Count per Day
[resolved] Icons and Graphs not displaying (11 posts)

  1. spottydog
    Member
    Posted 5 months ago #

    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/

  2. Tom Braider
    Member
    Plugin Author

    Posted 5 months ago #

    The Stylesheet of CpD is not loaded correctly. Is there a counter.css in the plugin directory?

  3. spottydog
    Member
    Posted 5 months ago #

    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

  4. Tom Braider
    Member
    Plugin Author

    Posted 5 months ago #

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

  5. spottydog
    Member
    Posted 5 months ago #

    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

  6. Tom Braider
    Member
    Plugin Author

    Posted 5 months ago #

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

  7. spottydog
    Member
    Posted 5 months ago #

    Nope.
    Fatal error using both of those too.

  8. Tom Braider
    Member
    Plugin Author

    Posted 5 months ago #

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

  9. spottydog
    Member
    Posted 5 months ago #

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

  10. Tom Braider
    Member
    Plugin Author

    Posted 5 months ago #

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

  11. spottydog
    Member
    Posted 5 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic