Jump to content

PHP $this->_vars['HTML'] unknown missing value [closed]


THEJOKERRED

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.