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

problems encountered upgrading from 2.6.25 to 3.1.18

 
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 -> General
View previous topic :: View next topic  
Author Message
akira_dev
Smarty n00b


Joined: 17 May 2014
Posts: 2

PostPosted: Sat May 17, 2014 1:55 am    Post subject: problems encountered upgrading from 2.6.25 to 3.1.18 Reply with quote

hi, encountered a lot of issues while upgrading, below are the ones left unsolved.

I've extended the SmartyBC class, used this since encountered mostly unknown tag errors, particularly the {php}...

so the ff: are the ones I'm unable to solve. No structure is visible, only white page.. except for these error outputs..

Notice: Trying to get property of non-object in .../Smarty/sysplugins/smarty_internal_templatebase.php on line 64

Notice: Trying to get property of non-object in .../Smarty/sysplugins/smarty_internal_templatebase.php on line 65
tv:

Warning: array_merge(): Argument #2 is not an array in .../Smarty/sysplugins/smarty_internal_templatebase.php on line 78

hope someone can help me.. thanks in advance.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sat May 17, 2014 11:12 am    Post subject: Reply with quote

Please read the Smarty_2_BC_NOTES regarding extending the Smarty class
Back to top
View user's profile Send private message
akira_dev
Smarty n00b


Joined: 17 May 2014
Posts: 2

PostPosted: Mon May 19, 2014 10:49 pm    Post subject: Reply with quote

thank you for your reply.. i've read and followed the tips but i still encountered the array_merge (from sysplugins/smarty_internal_templatebase.php) error as $tpl_vars being empty..

Code:
if (!empty(Smarty::$global_tpl_vars)) {
      $tpl_vars = array_merge(Smarty::$global_tpl_vars, $tpl_vars);
}


Also had this from the php error log:
Quote:
PHP Parse error: syntax error, unexpected end of file, expecting ',' or ';' in .../libs/Smarty3/SmartyBC.class.php(456) : eval()'d code on line 1
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Tue May 20, 2014 12:40 pm    Post subject: Reply with quote

Do you pass by mistake an object as second parameter (cache_id) in display() or fetch() calls? This could explain the error in line 64, 65 and 78.

The PHP Parse error in the error log look like a PHP syntax error in the PHP code between {php} {/php} tags
Back to top
View user's profile Send private message
Julian.Baker1
Smarty n00b


Joined: 15 Dec 2014
Posts: 4
Location: New York

PostPosted: Mon Dec 15, 2014 3:08 pm    Post subject: Reply with quote

I encountered the same bugs and I read the Smarty_BC_2Notes as suggested and looked into which object I was passing. I still can't solve the problem. I am stuck.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Mon Dec 15, 2014 9:06 pm    Post subject: Reply with quote

Did you extend extend the SmartyBC class? Please provide your code.

Which errors did you get?
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 -> General 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