Since I am new to OJS and php I hope that you forgive my incidental ignorance on certain matters.
I am trying to develop a fairly simple plugin, that requires a table ( database entries) and some default plugin settings separate from that table to start with. I have followed the guidelines on the example plugin in the documentation ( Link) and have looked in the source code of various plugins to figure out how to accomplish it, but I don't seem to be able to set it up correctly.
Specifically, when I install my .tar.gz from the web interface, everything uploads correctly, the plugin appears in the generic plugins, it can be enabled and its settings can be accessed manipulated and saved. The problems I have though are:
- 1. The default settings appearing in the settings.xml do not make it in the settings form.
2. The schema.xml definition doesn't make it into the database (I cannot see the table I defined using phpmyadmin).
Looking at the apache error log I only see the following wanring:
[Fri May 11 08:33:07 2012] [error] [client xxx.xxx.xxx.xxx] ojs2 has produced an error\n Message: WARNING: Missing argument 1 for PaymentManager::PaymentManager(), called in /var/www/ojs_exp/classes/payment/ojs/OJSPaymentManager.inc.php on line 35 and defined\n In file: /var/www/ojs_exp/lib/pkp/classes/payment/PaymentManager.inc.php\n At line: 22\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.10-1ubuntu3.1\n Apache Version: Apache/2.2.22 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.5.22-0ubuntu1, referer: http://xxx.xxx.xxx/ojs_exp/index.php/AC ... ns/install
that doesn't to be related to the problems I have since when I alter the definition of the constructor in PaymentManager.inc.php, the warning disappears, but the settings.xml and schema.xml still don't make it in OJS (after removal and re-installation to a newer version of the plugin).
Attached please find a cut down version that demonstates what I have built up to now. I am using ojs 2.3.7 on an ubuntu 12.04 server.
Looking forward for any help.
Best regards,
Nasos
