简体   繁体   中英

Smarty 3.1.30, php 7.0.26 Compatibility issues?

I have used smarty with php5.x for years. I recently upgraded my dev box to php7.2 and smarty to php 3.1.30. Works great.

Our production server was just upgraded to php 7.0.26. My code on my local machine and the production server is nearly identical (config file differences, for example.) Unfortunately, on that server $smarty->fetch(<filename>); returns an empty string.

Does anyone know if there is compatibility issues between smarty 3.1.30 and php 7.0.26? Have you ever encountered fetch() returning an empty string?

The issue was that the server did not allocate enough memory to PHP processes. Not sure why, but it would die silently during Smarty fetch processing and return an empty string - no errors in log files, etc. Once I increased allowable memory allocation it was fine. Wanted to post an answer to how I fixed in case anyone out there is looking.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM