madison21 Posted December 16, 2019 Report Share Posted December 16, 2019 Парни, перекинул сайт на домен с новым 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 где все работало норм? Quote Link to post Share on other sites
alexivchenko Posted December 16, 2019 Report Share Posted December 16, 2019 Обновите смарти до 3.1.18 Quote Link to post Share on other sites
madison21 Posted December 16, 2019 Author Report Share Posted December 16, 2019 Обновите смарти до 3.1.18могли бы подсказать пожалуйста как обновить? Quote Link to post Share on other sites
alexivchenko Posted December 16, 2019 Report Share Posted December 16, 2019 могли бы подсказать пожалуйста как обновить?Качаете архив https://github.com/smarty-php/smarty/releases/tag/v3.1.18 распаковываете у себя на компьютереВ корне сайта есть папка Smarty чистите ее и из архива переносите все в папку Smarty Quote Link to post Share on other sites
madison21 Posted December 16, 2019 Author Report Share Posted December 16, 2019 (edited) Сделал как сказали, но ошибка вываливается.. Прошлая версия кстати стояла 3.1.18А почему нельзя последнюю поставить 3.1.34или несовместимость? Edited December 16, 2019 by madison21 Quote Link to post Share on other sites
shooroop Posted December 16, 2019 Report Share Posted December 16, 2019 поиском тут на сайте не учились пользоваться до сих пор? так то решение опубликовано на данном ресурсе. Quote Link to post Share on other sites
alexivchenko Posted December 17, 2019 Report Share Posted December 17, 2019 Попробуйте http://forum.simplacms.ru/topic/14146-php-7/?p=111058 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.