I rebooted and am getting a Fatal error from Smarty

Status
Not open for further replies.

AverageGuy

New Member
Jun 18, 2017
25
0
1
Atlanta, GA metro
Code:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/var/www/fusionpbx/themes/default/template.php" on line 31 "<link rel="stylesheet" type="text/css" href="<!--{project_path}-->/resources/bootstrap/css/bootstrap.min.css">"
unknown tag 'project_path' <-- thrown in /var/www/fusionpbx/resources/templates/engine/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 31

That's accessing https://<IP>/
Running Ubuntu 20.04.4 LTS. Since I can't log in, I can't tell what version of the pbx I'm running but it was a new install from a couple of months ago.
Help!
Thanks,
Jim.
 
Last edited:

bcmike

Active Member
Jun 7, 2018
326
54
28
53
I would start by making sure all your template files are actually where they're supposed to be: {project_path}-->/resources/bootstrap/css/bootstrap.min.css
 

AverageGuy

New Member
Jun 18, 2017
25
0
1
Atlanta, GA metro
I would start by making sure all your template files are actually where they're supposed to be: {project_path}-->/resources/bootstrap/css/bootstrap.min.css
Nothing has changed. As I mentioned, I rebooted the system and it started failing. The bootstrap.min.css file is probably;
-rw-r--r-- 1 www-data www-data 155758 Mar 18 12:35 /var/www/fusionpbx/resources/bootstrap/css/bootstrap.min.css
I'm guessing project_path is /var/www/fusionpbx/, since I see if the code lots of lines of code setting project_path to DOCUMENT_ROOT.

I haven't moved any template files and the ones I've looked at seem to be dated March 18, which is when I installed the new server.
 

AverageGuy

New Member
Jun 18, 2017
25
0
1
Atlanta, GA metro
Can anyone please help? I tried to trace back where this is coming from but it's being called from a class structure somehow. I can't debug it.

This is from the nginx log:
Code:
022/05/13 06:28:50 [error] 797#797: *111 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught  --> Smarty Compiler: Syntax error in template "file:/var/www/fusionpbx/themes/default/template.php"  on line 31 "<link rel="stylesheet" type="text/css" href="<!--{project_path}-->/resources/bootstrap/css/bootstrap.min.css">" unknown tag 'project_path' <--
  thrown in /var/www/fusionpbx/resources/templates/engine/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 31" while reading response header from upstream, client: 192.168.2.95, server: fusionpbx, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "192.168.2.25"
 
Status
Not open for further replies.