Hey All! I just upgraded to osticket 1.18.1. I had a plugin that was working before (I think we were on 1.15?) But it is no longer working after the upgrade. It seems that not even the "bootstrap" function is being called. I verified that the plugin is showing up in the UI, and it's enabled. The plugin is not in phar format, and its database entry reflects that. Hoping you can help me figure this out!
./include/plugins/monkeybot/plugin.php:
<?php
return [
'id' => 'osticket:monkeybot',
'version' => '0.1',
'name' => 'Monkeybot',
'author' => 'Monkey',
'description' => 'Lets get this plugin working!',
'plugin' => 'monkeybot.php:Monkeybot'
];
./include/plugins/monkeybot/monkeybot.php
<?php
require_once(INCLUDE_DIR . 'class.signal.php');
require_once(INCLUDE_DIR . 'class.plugin.php');
require_once(INCLUDE_DIR . 'class.ticket.php');
require_once(INCLUDE_DIR . 'class.osticket.php');
require_once(INCLUDE_DIR . 'class.config.php');
require_once(INCLUDE_DIR . 'class.format.php');
class Monkeybot extends Plugin {
function bootstrap() {
monkeylog("bootstrap function was called");
}
private function monkeylog($message) {
file_put_contents('/path/to/log.txt', $message.PHP_EOL , FILE_APPEND | LOCK_EX);
}
}