This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
After creating a plugin from scratch, this is creating files and directories, now I can see the plugin on the Builder plugin but I can't see it on the 'Updates & Plugins' section on the Settings tab, to be able to later manage the plugin, enable/disable for instance.
The same happens with the following steps:
- Create a plugin with Builder
- Copy plugin structure outside OctoberCMS
- Remove plugin from Updates & Plugins
- Copy plugin structure back to OctoberCMS /plugins directory.
As result you can see the plugin on Builder but no in the Settings tab.
There's any way to install o register the plugin to be able to manage it form the Settings tab?
Thank you in advance!
Make sure there are no errors in Plugin.php file, that could cause this problem.
If not, try running php artisan october:up
mjauvin said:
Make sure there are no errors in Plugin.php file, that could cause this problem.
If not, try running
php artisan october:up
Thank you for your response.
Prior to test this, I have to do some backup. Just in case. I'll be testing this later.
About errors on the Plugin.php file, I'm pretty sure that it's ok.
I think the problem is easy to reproduce. if you follow the 2nd procedure, this is creating a 'NewPlugin' with Builder plugin, you have it in the Settings tab list and everything works well. Then, if you delete the plugin and move the files outside OctoberCMS directory, you're in the starting point: the 'NewPlugin' doesn't exists on the Settings tab nor in the directories.
If you move the 'NewPlugin' to the plugins directory, you can access it from the Builder plugin but it isn't on the Settings tab. As you say, I was expecting to see it on the Settings tab. :(
If you install a plugin, like Builder o Location, then it appears on the Settings tab.
By the way, I'm working on a docker container, just in case it could be useful.
Thank you in advance!
By the way, I'm working on a docker container, just in case it could be useful.
https://github.com/aspendigital/docker-octobercms https://github.com/leocavalcante/Docktober
Just run one of the following artisan commands to restore plugin:
php artisan october:up
or
php artisan plugin:refresh AuthorName.PluginName
After some test I found that is necessary to install a version from Builder/Versions.
Then the plugin appears on the Settings/Updates & Plugins.
(Maybe it should be added to the docs)
Cheers!
After some test I found that is necessary to install a version from Builder/Versions.
I don't understand what you mean by that, can you elaborate?
Sure!
First of all, let's go to the starting point, re-using a plugin created with Builder:
- Create a 'newplugin' plugin with Builder
- Copy 'newplugin' outside OctoberCMS
- Remove 'newplugin' from Updates & Plugins
- Copy 'newplugin' back to OctoberCMS /plugins/user directory
At this point we have 'newplugin' accessible from Builder for not in Settings/Updates & Plugins.
To finally add the plugin to Settings/Updates & Plugins, you have to:
- In Builder, select 'newplugin'
- In Builder/Versions, select '1.0.1'. This is the first and unique version.
- 'Apply version'
This way you have 'newplugin' in Settings/Updates & Plugins.
1-9 of 9