Joomla AS Template 002057 error: A non-numeric value encountered

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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.