4

I have created my own plugin. It works on my Mac but when I try to enabled it in my Debian server it shows as Disabled with a red dot. What's the best way to debug this?

I have not found anything particularly illuminating in the logs yet.

6

Turns out I had a capitalization typo in my plugin php file name.

myPlugin.php

class MyPlugin ...

Renaming the file to MyPlugin.php solved it. (capitial M)

So it would seem that the file and class name need to match exactly.

| improve this answer | |
4

Make sure that the name of your plugin directory is all lowercase:

/craft/plugins/myplugin

On some systems, the capitalization doesn't matter, but on other systems it makes a difference. (related)

| improve this answer | |
  • Turns out it was the class name. I've posted that below. – Henry Oct 8 '14 at 23:30
1

for me was the file

vendor/craftcms/plugins.php

it was referencing a wrong class name due to refactor error (plugin development)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.