Jump to content

Recommended Posts

Парни, перекинул сайт на домен с новым php7.2
Раньше стоял php5.6

 

Сайт работает, но стали выпадать ошибки типа

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in .../www/Smarty/libs/sysplugins/smarty_internal_compilebase.php on line 75
 

 

Warning: count(): Parameter must be an array or an object that implements Countable in /www/Smarty/libs/sysplugins/smarty_internal_templatebase.php(151) : eval()'d code on line 82
 

 

 

Что нужно изменить чтоб не выдавало ошибок?

Или лучше домен перевести на php5.6 где все работало норм?

 

Link to post
Share on other sites

могли бы подсказать пожалуйста как обновить?

Качаете архив https://github.com/smarty-php/smarty/releases/tag/v3.1.18 распаковываете у себя на компьютере

В корне сайта есть папка Smarty чистите ее и из архива переносите все в папку Smarty

Link to post
Share on other sites

Сделал как сказали, но ошибка вываливается..

 

Прошлая версия кстати стояла 3.1.18

А почему нельзя последнюю поставить 3.1.34
или несовместимость?

Edited by madison21
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...