Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian 8 and Smarty3 #11

Open
wtermini opened this issue Jun 22, 2016 · 2 comments
Open

Debian 8 and Smarty3 #11

wtermini opened this issue Jun 22, 2016 · 2 comments

Comments

@wtermini
Copy link
Member

wtermini commented Jun 22, 2016

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

@timwhite
Copy link
Contributor

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.

@Zorlin
Copy link
Contributor

Zorlin commented Jun 27, 2020

Hi William,

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants