Jump to content
  • 0

Plugin not in available list


wreckitrandy22

Question

I'm trying to make a custom plugin and I have the correct directory structure and filenames but the plugin does not show up in the list on /admin/settings/company/plugins/available/. Is there a log file somewhere where it loads the plugins that I can check to see what is wrong? If anybody could help me figure out how to get started in how to debug this I'd appreciate it :)

ab6fbab4c9.png

 

config.json

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
40 minutes ago, naja7host said:

First step , erase all file a nd let just the myplugin_plugin.php  and config.json . is the plugin available now ?

No it still doesn't show up. I know I'm in the right directory because when I delete one of the included plugins' folders it is removed from the available list. I ran php -l on all my files and they have no syntax errors.

Link to comment
Share on other sites

  • 0
6 minutes ago, wreckitrandy22 said:

<?php
class MyPluginPlugin extends Plugin {
    public function __construct() {
        $this->loadConfig(dirname(__FILE__) . DS . "config.json");
    }
}
?>


 

fgrom your class the directory should be my_plugin or you should update your files to be

 

<?php
class MypluginPlugin extends Plugin {
    public function __construct() {
        $this->loadConfig(dirname(__FILE__) . DS . "config.json");
    }
}
?>

 

Link to comment
Share on other sites

  • 0

I've updated the file and it still doesn't show up on the available page

60027fbe1e.PNG

 

Is there something I have to do besides refreshing to show it in the available plugins page? Or is there some config to enable developer plugins or something?

 

Edit: It appears that the permissions on the files were messed up, seems to be working now with 755

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...