팁/튜토리얼

php 8.0  + 라이믹스 2.0.0 rc  대응 서드파티 오류 별 대응 조치

2020.12.08 07:11
1,189
2
0

php 8.0  + 라이믹스 2.0.0 rc  대응 서드파티 오류 별 대응 조치

 


1. 

 

Error #0 "Undefined constant "base_color"" in C:\webdata\websites\leesungmin\files\cache\template\layouts\ink_layout\layout.html.php on line 298

답:      $("head").append("<link rel='stylesheet' href='/layouts/ink_layout/css_color/{$_COOKIE[base_color]}.css' id='appended_a' />");
 
====>  {$_COOKIE['base_color']}.css' id='appended_a' />");

배열상수는 전부  '  '  작은 따움표 처리


=======================================
2.  Error #0 "Attempt to assign property "order_type" on null" in C:\webdata\websites\leesungmin\files\cache\template\layouts\ink_layout\layout_pc.html.php on line 135


답 :  $args = new stdClass;

https://hbesthee.tistory.com/1617
===========================================

 

3.

count(): Parameter must be an array or an object that implements Countable

https://wordpress.org/support/topic/count-parameter-must-be-an-array-or-an-object-that-implements-countable-6/

답: <!--@if (is_countable($tag_list) && count($tag_list) > 0 && $mi->use_tag != 'N')-->
 

 

4.    PHP Warning: Division by zero

https://stackoverflow.com/questions/18408640/php-warning-division-by-zero

서버 오류
DivisionByZeroError #0 "Division by zero" in C:\webdata\websites\leesungmin\files\cache\template\modules\board\skins\ink_board\_comment.html.php on line 334
C:\webdata\websites\leesungmin\common\framework\debug.php:679

답:

{@     
        $_is_mobile?$_textarea_ex = 20:$_textarea_ex = 30;    
        
        if ($_rating_total== 0) $_rating_total = 1; 
        if ($_rating_count== 0) $_rating_count = 1;         
        
        $mi->cmt_rating == 10?$_rating_av = round($_rating_total/$_rating_count,2):$_rating_av = round(($_rating_total/$_rating_count)/2,2);                         
}

==============================================

 

현재 4가지 정도 대응법인데 제대로 고친 것인지   모르겠습니다.

 

애드온이나 모듈쪽도 아마 비슷하지 싶은데 

 

휴 다 고치려면 구만리네요 ...

 

댓글 0