• Resolved RobertGomez

    (@robertgomez)


    I have been using “Code Snippets” for some time now and recently added a new plugin “Snippet” by Themeco. Unfortunately they do not work together and i get this error in my logs:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Snippet’ does not have a method ‘admin_controller’

    It looks like there is a conflict between these two plugin. Both of these plugins are using the variable $snippet. There’s a mixed up in the code and functionalities because of that variable.

    I notified Themeco and they said they would pass it on to their developers but who knows when a fix will be put out. I was hoping you would be able to put up some kind of fix sooner than they could.

    Thanks for the help and love the plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hey, many apologies for taking so long to get onto this.

    This looks quite similar to another collision with this same class and a different plugin a while back. In that case, the other plugin didn’t really have reason to be using an unprefixed class called ‘Snippet’ in their plugin, but I do agree this may not be the case here.

    Now, I am not sure if Themeco have updated their plugin or not – thanks for reaching out to them by the way – but perhaps it might be a good idea to change the class in Code Snippets to something a little more unique as well (or instead of) – at least, until version 3.0 is released and I can introduce PHP namespaces.

    Apologies again for the massive delay. I’ll get onto updating the plugin and releasing a new version. Thank you for reporting this!

    Plugin Author Shea Bunge

    (@bungeshea)

    A patch for this was included in version 2.9.0.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error using Code Snippet with another plugin called Snippet’ is closed to new replies.