标签:WordPress痛点

66次浏览    

痛点描述:WordPress更新到最新版本4.9.8–zh_CN后页面总是报:Warning: A non-numeric value encountered

原因分析:查看PHP7.1官方文档,对这种错误的解释:

New E_WARNING and E_NOTICE errors have been introduced when invalid strings are coerced using operators expecting numbers (+ - * / ** % << >> | & ^) or their assignment equivalents. An E_NOTICE is emitted when the string begins with a numeric value but contains trailing non-numeric characters, and an E_WARNING is emitted when the string does not contain a numeric value.
96次浏览