Update Smarty 4.3.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Update Smarty 4.3.0

      Saludos estoy intentando actualizar la versión del Smarty pero me esta arrojando el siguiente error

      Source Code

      1. ErrorType: 16384
      2. Message: Using php-function "shortly_number" as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier.
      3. File: /includes/libs/Smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php
      4. Line: 116
      5. URL: http://xnova.localhost/game.php
      6. PHP-Version: 7.3.5
      7. PHP-API: apache2handler
      8. 2Moons Version: 0.2.git
      9. Debug Backtrace:
      10. #0 [internal function]: errorHandler(16384, 'Using php-funct...', 'D://xampp yamil//...', 116, Array)
      11. #1 /includes/libs/Smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php(116): trigger_error('Using php-funct...', 16384)
      12. #2 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(749): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
      13. #3 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(1486): Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_modifie...', Array, Array)
      14. #4 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(550): Smarty_Internal_TemplateCompilerBase->compileTag2('private_modifie...', Array, Array)
      15. #5 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2420): Smarty_Internal_TemplateCompilerBase->compileTag('private_modifie...', Array, Array)
      16. #6 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2777): Smarty_Internal_Templateparser->yy_r96()
      17. #7 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2872): Smarty_Internal_Templateparser->yy_reduce(96)
      18. #8 /includes/libs/Smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(128): Smarty_Internal_Templateparser->doParse(13, '}')
      19. #9 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(466): Smarty_Internal_SmartyTemplateCompiler->doCompile('<div class="fix...', true)
      20. #10 /includes/libs/Smarty/libs/sysplugins/smarty_internal_compile_include.php(323): Smarty_Internal_TemplateCompilerBase->compileTemplateSource(Object(Smarty_Internal_Template), false, Object(Smarty_Internal_SmartyTemplateCompiler))
      21. #11 /includes/libs/Smarty/libs/sysplugins/smarty_internal_compile_include.php(214): Smarty_Internal_Compile_Include->compileInlineTemplate(Object(Smarty_Internal_SmartyTemplateCompiler), Object(Smarty_Internal_Template), '4627b5c266cdede...')
      22. #12 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(749): Smarty_Internal_Compile_Include->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
      23. #13 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(1486): Smarty_Internal_TemplateCompilerBase->callTagCompiler('include', Array, Array)
      24. #14 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(550): Smarty_Internal_TemplateCompilerBase->compileTag2('include', Array, Array)
      25. #15 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2156): Smarty_Internal_TemplateCompilerBase->compileTag('include', Array)
      26. #16 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2777): Smarty_Internal_Templateparser->yy_r24()
      27. #17 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2872): Smarty_Internal_Templateparser->yy_reduce(24)
      28. #18 /includes/libs/Smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(128): Smarty_Internal_Templateparser->doParse(13, '}')
      29. #19 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(466): Smarty_Internal_SmartyTemplateCompiler->doCompile('{include file="...', true)
      30. #20 /includes/libs/Smarty/libs/sysplugins/smarty_internal_compile_include.php(323): Smarty_Internal_TemplateCompilerBase->compileTemplateSource(Object(Smarty_Internal_Template), false, Object(Smarty_Internal_SmartyTemplateCompiler))
      31. #21 /includes/libs/Smarty/libs/sysplugins/smarty_internal_compile_include.php(214): Smarty_Internal_Compile_Include->compileInlineTemplate(Object(Smarty_Internal_SmartyTemplateCompiler), Object(Smarty_Internal_Template), '4627b5c266cdede...')
      32. #22 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(749): Smarty_Internal_Compile_Include->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
      33. #23 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(1486): Smarty_Internal_TemplateCompilerBase->callTagCompiler('include', Array, Array)
      34. #24 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(550): Smarty_Internal_TemplateCompilerBase->compileTag2('include', Array, Array)
      35. #25 /includes/libs/Smarty/libs/sysplugins/smarty_internal_compile_extends.php(135): Smarty_Internal_TemplateCompilerBase->compileTag('include', Array)
      36. #26 /includes/libs/Smarty/libs/sysplugins/smarty_internal_compile_extends.php(80): Smarty_Internal_Compile_Extends->compileInclude(Object(Smarty_Internal_SmartyTemplateCompiler), ''styles/templat...')
      37. #27 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(749): Smarty_Internal_Compile_Extends->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
      38. #28 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(1486): Smarty_Internal_TemplateCompilerBase->callTagCompiler('extends', Array, Array)
      39. #29 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(550): Smarty_Internal_TemplateCompilerBase->compileTag2('extends', Array, Array)
      40. #30 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2156): Smarty_Internal_TemplateCompilerBase->compileTag('extends', Array)
      41. #31 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2777): Smarty_Internal_Templateparser->yy_r24()
      42. #32 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templateparser.php(2872): Smarty_Internal_Templateparser->yy_reduce(24)
      43. #33 /includes/libs/Smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(128): Smarty_Internal_Templateparser->doParse(13, '}')
      44. #34 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(466): Smarty_Internal_SmartyTemplateCompiler->doCompile('{extends file='...', true)
      45. #35 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(395): Smarty_Internal_TemplateCompilerBase->compileTemplateSource(Object(Smarty_Internal_Template), false, NULL)
      46. #36 /includes/libs/Smarty/libs/sysplugins/smarty_template_compiled.php(184): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
      47. #37 /includes/libs/Smarty/libs/sysplugins/smarty_template_compiled.php(141): Smarty_Template_Compiled->compileTemplateSource(Object(Smarty_Internal_Template))
      48. #38 /includes/libs/Smarty/libs/sysplugins/smarty_template_compiled.php(105): Smarty_Template_Compiled->process(Object(Smarty_Internal_Template))
      49. #39 /includes/libs/Smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php(38): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
      50. #40 /includes/libs/Smarty/libs/sysplugins/smarty_template_cached.php(143): Smarty_Internal_Runtime_UpdateCache->updateCache(Object(Smarty_Template_Cached), Object(Smarty_Internal_Template), false)
      51. #41 /includes/libs/Smarty/libs/sysplugins/smarty_internal_template.php(212): Smarty_Template_Cached->render(Object(Smarty_Internal_Template), false)
      52. #42 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
      53. #43 /includes/libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 1)
      54. #44 /includes/classes/class.template.php(163): Smarty_Internal_TemplateBase->display('extends:styles/...')
      55. #45 /includes/pages/game/AbstractGamePage.class.php(674): template->display('extends:styles/...')
      56. #46 /includes/pages/game/ShowOverviewPage.class.php(460): AbstractGamePage->display('page.overview.d...')
      57. #47 /game.php(60): ShowOverviewPage->show()
      58. #48 {main}
      Display All
      VERY SAD :/ :/ :/ :/
    • Yo usaba {$SOME_VARIABLE|shortly_number} ya eso en la version 4.3 quedó obsoleto ahora es {shortly_number($SOME_VARIABLE)} por si de casualidad alguien mas le da el error
      VERY SAD :/ :/ :/ :/