A few days ago, after turning on PHP's display error,I was shocked to see two lines appear at the top of the webpage”Warning: A non-numeric value encountered in D:\xxx\templates\as002057free\includes\includes.php on line 83″的錯誤訊息,I originally thought it was caused by some plugin,After installing and checking one by one on another platform,It turned out that it was simply after installing AS Designing's Templates 002057 Free theme,The error immediately occurred。
上網查官方也有人詢問,但尚未有人答覆,打開includes.php研究一番後,看了一下錯誤訊息是說有非數值的情況發生,修改了一line 83的語法做測試,確認問題是發生在$aside_left_width與$aside_right_width兩個變數,再往上查看後,發現有兩個判斷式是塞空值給前面說得兩個變數,I guess the problem is caused here,Just change the null value to 0,Sure enough, the error message is gone。

I actually don't understand PHP syntax,I just stumbled upon it by accident,I'm not sure if this is definitely correct,But before the official response comes,Let's just handle it this way for now~








Leave a Reply