1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress Help (Again)

Discussion in 'Off Topic' started by Jeremy, May 24, 2011.

  1. Jeremy

    Jeremy Well-Known Member

    OK, last time... But first things first: I hate this software. OK, here's the real problem. I have an plugin called "tpn-mail" on my site. (bit of background, it worked adn stopped working after a server reinstall). It has tpn-mail.php where it has the following first few lines:

    Plugin Name: TPN Mail
    Plugin URI: http://www.pittnews.com
    Description: Send out emails of selected posts (note: requires sendmail to be installed and accessible to php)
    Version: 0.1
    Author: VP (*******@gmail.com)
    Author URI: http://victorp.me
    License: Copyright 2010 VP. All rights reserved.
    It worked on the "old" server, and i no longer can get it to show up in the back end. I even copied it into a different "plugin" and changed the title to "tpn-mailhatesme" and modified both the directory & file and it still doesn't show up. I'm at a loss. I tried messing with permissions, copying, renaming, etc... It is just THIS custom...
  2. Martin Aronsen

    Martin Aronsen Active Member

    I would put various "debugging prints" around the code that loads the plugins to see where it fails.

    In ./wp-admin/includes/plugin.php get_plugins()
        foreach ( $plugin_files as $plugin_file ) {
            if ( !
    is_readable"$plugin_root/$plugin_file) )
    "Not readable" print_r$plugin_file);
    $plugin_data get_plugin_data"$plugin_root/$plugin_file"falsefalse ); //Do not apply markup/translate as it'll be cached.

    if ( empty ( $plugin_data['Name'] ) )
    "No name" print_r$plugin_file);
    $wp_plugins[plugin_basename$plugin_file )] = $plugin_data;
  3. Shamil

    Shamil Well-Known Member

    If it stopped working after a server reinstall, it might be a server configuration issue. I assume the plugin uses mail(). Does mail() work for you?
  4. Jeremy

    Jeremy Well-Known Member

    It uses SendMail which I reinstalled. The problem isn't the plugin working, it's that the software won't read that there IS a plugin. Martin, will that code print stuff out only in the backend or at somepoint in the front end?
  5. Martin Aronsen

    Martin Aronsen Active Member

    Did some quick tests, and it only uses that function in the admin area. Could wrap another if around it to check against your IP, just to be sure.
  6. Jeremy

    Jeremy Well-Known Member

    Thanks Martin. I only asked because I was on my phone. I'm about to test it now (this new boss is really on me for this one...).

    Edit: Martin, it seems to be reading the directory but it doesn't seem to be listing the plugin... You wouldn't happen to have any ideas.
  7. Jeremy

    Jeremy Well-Known Member

    Don't ask me how, but I got something to work and it showed up. Now I totally screwed up the site.

Share This Page