THEJOKERRED Posted March 24, 2020 Share Posted March 24, 2020 I GET Quote Fatal error: TPL: [in line 0]: syntax error: file 'm/pg/_categories' does not exist in C:\WebServ\httpd\libs\tpl\class.template.php on line 943 unset($_templatelite_tpl_vars); else: $_templatelite_tpl_vars = $this->_vars; echo $this->_fetch_compile_include($this->_vars['TPLx'].'m/pg/_categories'.$this->_vars['HTML'], array()); $this->_vars = $_templatelite_tpl_vars; WITH FILES http://testynarkotykowe.j13x.pl/index.txt && http://testynarkotykowe.j13x.pl/indexpg.txt HOW TO FIX IT Quote Link to comment https://forums.phpfreaks.com/topic/310353-php-this-_varshtml-unknown-missing-value-closed/ Share on other sites More sharing options...
gw1500se Posted March 24, 2020 Share Posted March 24, 2020 What part of the error message is not clear? Also don't post your code in such an unreadable format. Quote Link to comment https://forums.phpfreaks.com/topic/310353-php-this-_varshtml-unknown-missing-value-closed/#findComment-1575721 Share on other sites More sharing options...
ginerjm Posted March 24, 2020 Share Posted March 24, 2020 As was pointed out in your previous post. Take a look at other posts on this forum (and others) to see how most people write their code. Quote Link to comment https://forums.phpfreaks.com/topic/310353-php-this-_varshtml-unknown-missing-value-closed/#findComment-1575740 Share on other sites More sharing options...
THEJOKERRED Posted March 25, 2020 Author Share Posted March 25, 2020 DELETING unset(_templatelite_tpl_vars);** ** else: _templatelite_tpl_vars = $this->_vars; FROM CODE <?php require_once('C:\WebServ\httpd\libs\tpl\plugins\modifier.number_format.php'); $this->register_modifier("number_format", "tpl_modifier_number_format", false); require_once('C:\WebServ\httpd\libs\tpl\plugins\modifier.replace.php'); $this->register_modifier("replace", "tpl_modifier_replace", false); require_once('C:\WebServ\httpd\libs\tpl\plugins\modifier.substr.php'); $this->register_modifier("substr", "tpl_modifier_substr", false); /* V2.10 Template Lite 4 January 2007 (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2020-03-24 02:27:57 Central European Standard Time */ if ($this->_vars['bulk']): ?> <?php $_templatelite_tpl_vars = $this->_vars; echo $this->_fetch_compile_include($this->_vars['TPLx'].'m/pg/bulk'.$this->_vars['HTML'], array()); $this->_vars = $_templatelite_tpl_vars; /*unset($_templatelite_tpl_vars); else: $_templatelite_tpl_vars = $this->_vars;*/ echo $this->_fetch_compile_include($this->_vars['TPLx'].'m/pg/_categories'.$this->_vars['HTML'], array()); $this->_vars = $_templatelite_tpl_vars; unset($_templatelite_tpl_vars); ?> HAS FIXED THE PROBLEM BUT HOW TO MAKE COMPRESSOR NOT GENERATE SUCH CODE?http://testynarkotykowe.j13x.pl/_gz/php_speedy.txt THERE IS MORE TO THE CODE Quote Link to comment https://forums.phpfreaks.com/topic/310353-php-this-_varshtml-unknown-missing-value-closed/#findComment-1575756 Share on other sites More sharing options...
ginerjm Posted March 25, 2020 Share Posted March 25, 2020 This code of yours is totally unreadable. Don't you get it??? Quote Link to comment https://forums.phpfreaks.com/topic/310353-php-this-_varshtml-unknown-missing-value-closed/#findComment-1575757 Share on other sites More sharing options...
ginerjm Posted March 25, 2020 Share Posted March 25, 2020 On second thought I think I will just un-follow this topic. I can see there's a failure to communicate here. Quote Link to comment https://forums.phpfreaks.com/topic/310353-php-this-_varshtml-unknown-missing-value-closed/#findComment-1575758 Share on other sites More sharing options...
gizmola Posted March 25, 2020 Share Posted March 25, 2020 You are using Template Lite? Seems like very little updating of that package, no github repo, and a copyright of the original author. From what I can see, the purpose of Template Lite was to be a drop in replacement for smarty. Smarty compiles the templates into PHP scripts, so Template Lite must do the same. If the original code is not a smarty template, I don't know why Template Lite would be part of the problem or the solution. It was created simply to be a drop in for Smarty, which in its day was a popular php template package, but has been bypassed by newer template engines like twig and laravel blade. Quote Link to comment https://forums.phpfreaks.com/topic/310353-php-this-_varshtml-unknown-missing-value-closed/#findComment-1575763 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.