All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Plugin saying "0 Plugins used:"  (Read 4977 times)

0 Members and 1 Guest are viewing this topic.

Offline nes49

  • Newbie
  • *
  • Posts: 2
    • View Profile
Plugin saying "0 Plugins used:"
« on: 29 November 2008, 18:04 »
    * WordPress Version - 2.6.5
    * Theme - Default
    * Blog URL - will reinstall on a test site if required
    * Problem Plugin Name And Version - wp_pluginsused (1.31)
    * PHP And MYSQL Version - PHP - 5.2.6, MySQL - 5.0.67-log (on Dreamhost)
    * Possible Conflicting Plugins (Optional) - all other plugins deactivated

The code [stats_pluginsused] is on a page. The text that appears on the page when viewed in a browser is "There are 0 plugins used: 0 active plugins and 0 inactive plugins."

Obviously, at least the wp_pluginsused is active.

The problem is apparently related to the fact that I'm using the ability to move the wp-content directory out from the wp directory. To be specific, in wp-config.php, I've got:

define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content' );
define( 'WP_CONTENT_URL', 'http://'.$_ENV['HTTP_HOST'].'/wp-content');

If I make a symbolic link from wp/wp-content to the actual location of the wp-content directory (the parent of plugins and themes), then the wp_pluginsused plugin does work as expected.

Is a patch possible for this, or is the workaround the only short/medium solution?

Thanks for excellent work on the plugin collection!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,511
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Plugin saying "0 Plugins used:"
« Reply #1 on: 30 November 2008, 05:37 »
In wp-pluginsused.php, find:
Code: [Select]
$plugin_root = ABSPATH.PLUGINDIR;Replace:
Code: [Select]
$plugin_root = WP_PLUGIN_DIR;
See if it works

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline nes49

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Plugin saying "0 Plugins used:"
« Reply #2 on: 30 November 2008, 16:23 »
That change has fixed the problem. Thanks so much for the quick reply!

PS: In my message above, the line should have been

define( 'WP_CONTENT_URL', 'http://'.$_SERVER['HTTP_HOST'].'/wp-content');

($_SERVER, not $_ENV)

In addition, I should have said that WordPress itself is installed in the wp directory -
documentroot/wp-content/plugins
documentroot/wp-content/themes
documentroot/wp/... all the WordPress core files

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,511
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Plugin saying "0 Plugins used:"
« Reply #3 on: 01 December 2008, 01:59 »
Thanks, I will update the plugin

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.