Hi!
I'm trying to install RemoteBridge from GIT to i-MSCP (git or RC version).
On both I'm getting this error
Fatal error: Undefined class constant 'onBeforeInstallPlugin' in /var/www/imscp/gui/plugins/RemoteBridge/RemoteBridge.php on line 48
Checking that file I found that on this function, the onBeforeInstallPlugin is not defined anywhere.
The function only does simple version validation:
- public function onBeforeInstallPlugin($event) { if ($event->getParam('pluginName') == $this->getName()) { if (version_compare($event->getParam('pluginManager')->getPluginApiVersion(), '0.2.0', '<')) { set_page_message( tr('Your i-MSCP version is not compatible with this plugin. Try with a newer version.'), 'error' ); $event->stopPropagation(); } } }
So removing it let me install and activate the plugin.
Afte doing that, I can see the RemoteBridge link on the reseller page, but the files that should be in reseller and in public folders are missing.
I don't know if I'm making something wrong or the plugin is not ready enough to be installed.
Is there any additional help on this issue?
Thank you!
[hr]
Ok, this is what I just made. I added this line to
RemoteBridge/RemoteBridge.php
RemoteBridge/fontend/remotebridge.php
RemoteBridge/public/remotebridge.php
Then, commented this line on the first file
Then, I installed the plugin.
After that, I copied the RemoteBridge/fontend/remotebridge.php to the public/reseller folder, and RemoteBridge/public/remotebridge.php to the public folder.
After that I was able to create my secret $bridgeKey, and created a new account.
So I think there is a problem in the activation of the plugin, because that files should be copied, or at least I suppose that.