• Hi,

    The Plugin Info plugin has been working great for years, however it unfortunately now conflicts with version 2 of the Video User Manuals plugin:

    PHP Fatal error:
    include_once(): Cannot redeclare class plugininfo in
    wp-settings.php on line 198

    Is it possible to update your plugin to use a more unique PHP class name than PluginInfo?

    Thanks very much.

    James

    http://wordpress.org/extend/plugins/plugin-info/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Hi James,

    Seeing as the plugin is called Plugin Info, PluginInfo is a sane name for the class. You should get in touch with the Video User Manuals plugin and ask them to namespace their classes.

    All the best,
    John

    Thread Starter James Collins

    (@jamescollins)

    Hi John,

    The VUM plugin uses the Plugin Update Checker Library 1.1 from Janis Elsts. This library contains the PluginInfo class.

    This means that your plugin will conflict with any other plugin that also uses this library.

    Looking at this Google search (https://www.google.com.au/search?q=site%3Aplugins.svn.wordpress.org+%22class%20PluginInfo%22), there are a handful of other plugins in the repository that also use that class.

    Do you think a simpler solution would be for you to namespace your plugin’s class?

    James

    Another plugin that uses Plugin Update Checker is Smart Sliding Notes. I ran into this problem with one of my sites over the weekend. Seems to me that if several other plugins use a library withthis class, it makes sense for Plugin Info to address this issue rather than the users or author of the library to address it.

    Classes should be properly prefixed to prevent these silly types of conflicts.

    In an ideal world all developers prefix their classes and functions with their initials and a lot of these problems would be solved 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict with Video User Manuals Plugin’ is closed to new replies.