You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on trying to get ugmm to work with Debian 8 as part of a project for the computer and security student association at ECU. However I have run into an issue the smarty module was upgraded from 2 - 3 and it seemed to break a lot of things. I managed to get as far as logging in. However I can not seem to figure out this issue.
[Wed Jun 22 15:36:36.835619 2016] [:error] [pid 26140] [client 192.168.1.84:45536] PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "./templates/editselfdetails.tpl" on line 12 "" unknown modifier "nonce" <-- \n thrown in /usr/share/php/smarty3/sysplugins/smarty_internal_templatecompilerbase.php on line 12
This is caused by an issue on line 146 of session.inc.php
the function register_modifier was replaced with registerPlugin however I can not seem to get it to work. The first attempt it would simply not load anything, however changing the line to look like this $smarty->registerPlugin("function","nonce","create_nonce");
I could at least get a broken page sent to me.
I am not a very strong PHP developer so this is about the best I can do ATM.
Going from Smarty 2 to Smarty 3 is a big step. There is a whole guide and the BC notes and a summary at http://www.smarty.net/v3_overview
Also, to save duplication of work, does it make sense we rename from plug-ugmm to just ugmm, and then move all Organisation specific terms/code to a config file? Currently it's impossible comparing your fork with the original, as most of the changes are branding changes.
We have recently been upgrading and updating UGMM with the help of @unixnut and @timwhite - including a migration to smarty3 and Debian 9. Are you still interested in using UGMM?
I was working on trying to get ugmm to work with Debian 8 as part of a project for the computer and security student association at ECU. However I have run into an issue the smarty module was upgraded from 2 - 3 and it seemed to break a lot of things. I managed to get as far as logging in. However I can not seem to figure out this issue.
[Wed Jun 22 15:36:36.835619 2016] [:error] [pid 26140] [client 192.168.1.84:45536] PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "./templates/editselfdetails.tpl" on line 12 "" unknown modifier "nonce" <-- \n thrown in /usr/share/php/smarty3/sysplugins/smarty_internal_templatecompilerbase.php on line 12
This is caused by an issue on line 146 of session.inc.php
$smarty->register_modifier('nonce', 'create_nonce');
the function register_modifier was replaced with registerPlugin however I can not seem to get it to work. The first attempt it would simply not load anything, however changing the line to look like this
$smarty->registerPlugin("function","nonce","create_nonce");
I could at least get a broken page sent to me.
I am not a very strong PHP developer so this is about the best I can do ATM.
You can see my fork here, https://github.com/cassa/ugmm
The text was updated successfully, but these errors were encountered: