Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

_cache_include_info removed from Smarty class?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
AlanZhuo
Smarty n00b


Joined: 20 Aug 2007
Posts: 1

PostPosted: Mon Aug 20, 2007 1:47 pm    Post subject: _cache_include_info removed from Smarty class? Reply with quote

Hi,

I used version 2.6.14 for my templates, but now I wanted to upgrade to version 2.6.18 and I got the message that _cache_include_info not accessible was in the Smarty class. (My error reporting is set so that i see all possible notices and errors.)
So I compared the 2 Smarty.class.php files and saw that the row at the very beginning of the class 'var $_cache_include_info;' was removed? But in the rest of the class this variable is still used as $this->_cache_include_info, and the class is not an extended one from a class that has this variable. I just added this row in the 2.6.18 version class and now it works.

It's about the 2.6.18 source I downloaded from this site.
I searched the forum for _cache_include_info, but didn't find any results, so I guess this was not reported yet.

Thanks
Back to top
View user's profile Send private message
veganet
Smarty Rookie


Joined: 28 Dec 2008
Posts: 6

PostPosted: Thu Mar 18, 2010 6:30 pm    Post subject: Reply with quote

I have the same problem.

property $_cache_include_info was non defined in Smarty.class.php but several methods access to it.

This is my notice:
Notice: Undefined property: Smarty_Compiler::$_cache_include_info in /var/www/mysite/libs/smarty/Smarty.class.php on line 1492

I noticed the lack of property when I tried to extend smarty adding a magic method of __SET

Code:

class mySmarty extends Smarty {

  public $registry = null;
 
  public function __construct($registry) {

   parent::Smarty();
   $this->registry = $registry;
  }

  public function __set($key, $value) {
 
   if (!isset($this->$key)) {
   
    parent::assign($key, $value);
   }
  }
 }
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP