View previous topic :: View next topic |
Author |
Message |
jmd8045 Smarty Rookie
Joined: 12 Sep 2005 Posts: 7 Location: Georgetown,TX
|
Posted: Thu Nov 03, 2016 8:54 pm Post subject: PHP Deprecated: Non-static method SmartyPaginate::connect |
|
|
Is this going to be fixed ?
BTW: I am running (Smarty-3.1.7)
Or is there a prescribed way to handle this ?
Jim
PHP Deprecated: Non-static method SmartyPaginate::getTotal() should not be called statically, assuming $this from incompatible context in /var/www/CCBP/htdocs/smarty/libs/SmartyPaginate.class.php on line 51 |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Nov 03, 2016 9:42 pm Post subject: |
|
|
You're running an extremely outdated version of Smarty. |
|
Back to top |
|
jmd8045 Smarty Rookie
Joined: 12 Sep 2005 Posts: 7 Location: Georgetown,TX
|
Posted: Thu Nov 03, 2016 9:48 pm Post subject: |
|
|
AnrDaemon wrote: | You're running an extremely outdated version of Smarty. |
So are you saying that it is fixed in a newer version ?
or just making an observation.
When I run it under 3.1.30
I get:
new menu({$smarty.section.y.max},{$smarty.section.y.iteration},"hidden");" missing or illegal $smarty.section property attribute <--
thrown in /var/www/CCBP/htdocs/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 16 |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Nov 03, 2016 10:19 pm Post subject: |
|
|
I'm pointing your apparent mistake. You're reporting an issue for a version several years old.
If you can reproduce it with recent release(at least) - someone might take the time to investigate. |
|
Back to top |
|
jmd8045 Smarty Rookie
Joined: 12 Sep 2005 Posts: 7 Location: Georgetown,TX
|
Posted: Thu Nov 03, 2016 10:21 pm Post subject: |
|
|
AnrDaemon wrote: | I'm pointing your apparent mistake. You're reporting an issue for a version several years old.
If you can reproduce it with recent release(at least) - someone might take the time to investigate. |
If there a newer version than 3.1.30 ?
SMARTY VERSION [3.1.30]
Non-static method SmartyPaginate::connect() should not be called statically, assuming $this from incompatible context in /var/www/CCBP/htdocs/libs/class.event_handler.php on line 492
Non-static method SmartyPaginate::reset() should not be called statically, assuming $this from incompatible context in /var/www/CCBP/htdocs/smarty/libs/SmartyPaginate.class.php on line 44 |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Nov 03, 2016 10:23 pm Post subject: |
|
|
jmd8045 wrote: | When I run it under 3.1.30
I get:
new menu({$smarty.section.y.max},{$smarty.section.y.iteration},"hidden");" missing or illegal $smarty.section property attribute <--
thrown in /var/www/CCBP/htdocs/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 16 |
In Smarty 3.1.30 line 16 in this file is a comment line. Can't possible be throwing any exceptions.
Try updating it again, after you're cleared any of existing files. |
|
Back to top |
|
jmd8045 Smarty Rookie
Joined: 12 Sep 2005 Posts: 7 Location: Georgetown,TX
|
Posted: Thu Nov 03, 2016 10:40 pm Post subject: |
|
|
AnrDaemon wrote: | jmd8045 wrote: | When I run it under 3.1.30
I get:
new menu({$smarty.section.y.max},{$smarty.section.y.iteration},"hidden");" missing or illegal $smarty.section property attribute <--
thrown in /var/www/CCBP/htdocs/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 16 |
In Smarty 3.1.30 line 16 in this file is a comment line. Can't possible be throwing any exceptions.
Try updating it again, after you're cleared any of existing files. |
TEMPLATE:
<script type="text/javascript">
{section name="y" loop=$menu}
var menuitem{$smarty.section.y.iteration} = new menu({$smarty.section.y.max},{$smarty.section.y.iteration},"hidden");
{/section}
</script>
I will also try the update again.
Jim
After update
PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/var/www/CCBP/htdocs/smarty/templates/menu_nav.tpl" on line 16 "var menuitem{$smarty.section.y.iteration} = new menu({$smarty.section.y.max},{$smarty.section.y.iteration},"hidden");" missing or illegal $smarty.section property attribute <--
thrown in /var/www/CCBP/htdocs/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 16 |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Nov 03, 2016 10:47 pm Post subject: |
|
|
jmd8045 wrote: | TEMPLATE:
<script type="text/javascript">
{section name="y" loop=$menu}
var menuitem{$smarty.section.y.iteration} = new menu({$smarty.section.y.max},{$smarty.section.y.iteration},"hidden");
{/section}
</script> |
Code: | <script type="text/javascript">
{foreach $menu as $y}
var menuitem{$y@iteration} = new menu({$y.max},{$y@iteration},"hidden");
{/foreach}
</script> |
http://www.smarty.net/docs/en/language.function.foreach.tpl |
|
Back to top |
|
|