Hello, why some of plugins are auto deactivating. For example, the plugin favicon ovveride. Also I've created the test plugin with the minimum code as below and it's deactivating too; What can be wrong? Maybe I don't know something, I'm not so long with the elgg. Help me understand it please.
elgg_register_event_handler('init', 'system', 'test_plugin_init');
function test_plugin_init()
{
$base_path = elgg_get_site_url() . '/mod/test_plugin/';
$pPath = elgg_get_root_path()."/mod/test_plugin/";
elgg_register_css('test_plugin:css', $base_path . 'assets/testplugin.css');
}
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Roman@romansh
Roman - 0 likes
- Roman@romansh
Roman - 0 likes
- iionly@iionly
iionly - 0 likes
You must log in to post replies.What do you mean? Under what conditions exactly does it happen?
I don't understand, it's just happen randomly in time,
I do nothing, just turned on plugin, but after time I'm checking and plugin turned off
I found this discussion https://elgg.org/discussion/view/1128943/plugin-auto-deactivation-problem but there is old Elgg version (1.8), and also no solution
If a plugin disables itself immediatelly after you enable it, the reason is most likely some unresolved dependency or conflict of the plugin (i.e. it either can't be used with another plugin you currently use or it requires some other plugin or a specific version of a plugin or a specific version of Elgg). In this case you should get an error message displayed at the top of the plugin page and you would also see the plugin's dependencies in the popup that opens when clicking on the plugin name.
If a plugin disables itself at a later time on its own it's very likely not a problem of the plugin or Elgg but rather related to the server configuration. It could be that SELinux is used on the server or the open_basedir php variable is used to protect control access to files and directories on the server. Why this would only happen at a later time I can't tell. The result would be that the files and folders would not be "visible" to Elgg anymore even if present.
I have no experience with either of these two. With open_basedir you would set the "allowed" folders in php.ini of the server (and if this variable is not commented out it's probably used). With SELinux I don't know how you would change the config if it's causing the problem. On a shell you could do a "ls -lZ" to figure out if SELinux is used (if there something else than a ? after the owner and group columns it probably is). Either way, it might be best to ask the support of your webhoster if SELinux or open_basedir is used and to ask them for help it this is the case.