1 / 3
Oct 2018

hello,
I’m using EGroupware 17.1.003 on ubuntu 18.04.
ETemplate has Version 14.1…
I creates a new template and added the first label.
But I’m not able to add different types than label.
If I select text, the widget editor is closing.
This I can find in apache2/error.log

PHP Warning: Use of undefined constant name - assumed ‘name’ (this will throw an Error in a future version of PHP) in /usr/share/egroupware/etemplate/inc/class.boetemplate.inc.php(211) : eval()'d code on line 1, referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#1 /usr/share/egroupware/etemplate/inc/class.boetemplate.inc.php(211): eval(), referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#2 /usr/share/egroupware/etemplate/inc/class.etemplate.inc.php(1449): boetemplate::expand_name(‘window.open(egw…’, 0, 3, 0, 0, Array), referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#3 /usr/share/egroupware/etemplate/inc/class.etemplate.inc.php(1749): etemplate->show_cell(Array, Array, Array, ‘exec’, 0, 3, ‘’, NULL, ‘/0/4A/1’), referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#4 /usr/share/egroupware/etemplate/inc/class.etemplate.inc.php(873): etemplate->show_cell(Array, Array, Array, ‘exec’, 0, 3, ‘all’, NULL, ‘/0/4A’), referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#5 /usr/share/egroupware/etemplate/inc/class.etemplate.inc.php(1504): etemplate->show_grid(Array, Array, Array, ‘exec’, 0, 0, ‘/0’), referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#6 /usr/share/egroupware/etemplate/inc/class.etemplate.inc.php(699): etemplate->show_cell(Array, Array, Array, ‘exec’, 0, 0, ‘’, NULL, ‘/0’), referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#7 /usr/share/egroupware/etemplate/inc/class.etemplate.inc.php(258): etemplate->show(Array, Array, Array, ‘exec’), referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#8 /usr/share/egroupware/etemplate/inc/class.editor.inc.php(547): etemplate->exec(‘etemplate.edito…’, Array, Array, Array, Array, 0, ‘/^cont/’), referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#9 /usr/share/egroupware/index.php(155): editor->edit(), referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget
#10 {main}, referer: http://192.168.0.12/egroupware/etemplate/process_exec.php?menuaction=etemplate.editor.widget

Maybe the mistake is mine?
Thanks for help! Axel

  • created

    Oct '18
  • last reply

    Oct '18
  • 2

    replies

  • 1.0k

    views

  • 2

    users

  • 1

    link

Old eTemplate is not what EGroupware currently uses, which is eTemplate2!

Editor from old eTemplate does not work with PHP 7.2, as it is provided by Ubuntu 18.04.
Thought the applications created with it still work.

If you write new code, you should not use old eTemplate.

Ralf

Exists a manual how to start with et2?
I found "ETemplate2 JavaScript Documentation"
and outdated descritpions for etemplate.
Regards, Axel