|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
akira_dev Smarty n00b
Joined: 17 May 2014 Posts: 2
|
Posted: Sat May 17, 2014 1:55 am Post subject: problems encountered upgrading from 2.6.25 to 3.1.18 |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat May 17, 2014 11:12 am Post subject: |
|
|
Please read the Smarty_2_BC_NOTES regarding extending the Smarty class |
|
Back to top |
|
akira_dev Smarty n00b
Joined: 17 May 2014 Posts: 2
|
Posted: Mon May 19, 2014 10:49 pm Post subject: |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue May 20, 2014 12:40 pm Post subject: |
|
|
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 |
|
Julian.Baker1 Smarty n00b
Joined: 15 Dec 2014 Posts: 4 Location: New York
|
Posted: Mon Dec 15, 2014 3:08 pm Post subject: |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Dec 15, 2014 9:06 pm Post subject: |
|
|
Did you extend extend the SmartyBC class? Please provide your code.
Which errors did you get? |
|
Back to top |
|
|
|
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
|