Forums | Mahara Community
Developers
/
Processing problem on implementation of a new plugin
03 June 2017, 4:10
Hi All,
As part of a student project, I started to implement a new Plugin for Mahara.
I started in the field, I was able to create my Artefact with one form to fill and a submit to save the data entered by the user but when I "submit" this processing without ever ending.
Do you know what this may be?
Thanks for your help
PS: be patient for me I start in mahara so I try to understand all the great tutorial to implement an Artefact but a I didn't find a solution.
I implement my Artefact on a local server (I use LAMP system with mysql).
Sincerely,
Cy,
03 June 2017, 9:47
Hi.
Try adding these lines to your config.php file to display more data...
// ===================== DEVELOPERS ==========================
// This configuration is suitable for developers. You will see all errors
// and they will also be in the logs.
$cfg->log_dbg_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
$cfg->log_info_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
$cfg->log_warn_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;
// The log levels that will generate backtraces. Useful for development,
// but probably only warnings are useful on a live site.
$cfg->log_backtrace_levels = LOG_LEVEL_WARN | LOG_LEVEL_ENVIRON;
// Developer mode
// When set, the following things (among others) will happen:
//
// * 'debug.js' will be included on each page. You can edit this file to add
// debugging javascript at your discretion
// * 'debug.css' will be included on each page. You can edit this file to add
// debugging CSS at your discretion
// * firebuglite will be included, if you are not using Firefox
// * the unpacked version of MochiKit will be used
//
// These options are a performance hit otherwise, enable when you are
// developing for Mahara
$cfg->developermode = true;
$cfg->productionmode = false;
If you haven't already, please look at wiki.mahara.org/wiki/Developer_Area/Plugins
HTH
G