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?
The Stylesheet of CpD is not loaded correctly. Is there a counter.css in the plugin directory?
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?
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');
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' );
ok, next try:
if (!defined('PLUGINDIR')) define('PLUGINDIR', WP_CONTENT_DIR.'/plugins');
if (!defined('PLUGINDIR')) define('PLUGINDIR', '/home/website2/public_html/site-content/plugins');
this works for me with
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
'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.
- The topic ‘Icons and Graphs not displaying’ is closed to new replies.