맛집 여행 캠핑 일상 생활

[워드프레스] AH01071 PHP Warning 본문

워드프레스

[워드프레스] AH01071 PHP Warning

영은파더♥ 2023. 11. 17. 13:42

아파치 에러로그에 아래와 같은 에러메시지가 엄청 있어서 확인해봤습니다.

[Fri Nov 17 13:32:13.052616 2023] [proxy_fcgi:error] [pid 15032] [client 34.64.82.68:59986] AH01071: Got error 'PHP message: PHP Warning:  Creating default object from empty value in /home/example/www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php on line 28'

해당 파일을 열어보니 아래의 코드입니다.

                        public function shortcode_insert_button()
                        {
                                $this->config['self_closing']                   =       'yes';
                                $class->config['forced_load_objects']   =       array( 'layerslider' );         //      fallback only to make sure we load in case user overwrites this class and direct checks for shortcode might fail

                                $this->config['name']           = __('Advanced Layerslider', 'avia_framework' );
                                $this->config['tab']            = __('Media Elements', 'avia_framework' );
                                $this->config['icon']           = AviaBuilder::$path['imagesURL']."sc-slideshow-layer.png";
                                $this->config['order']          = 10;
                                $this->config['target']         = 'avia-target-insert';
                                $this->config['shortcode']      = 'av_layerslider';
                                $this->config['tooltip']        = __('Display a Layerslider Slideshow', 'avia_framework' );
                                $this->config['tinyMCE']        = array('disable' => "true");
                                $this->config['drag-level'] = 1;
                        }

위에서 $class->config['forced_load_objects']   =       array( 'layerslider' );
이 부분이 문제입니다.

왜 $this 가 아닌 $class 로 되어있는지 아무튼 바꿔줍니다.

$this->config['forced_load_objects']   =       array( 'layerslider' );

$class 를 $this 로 바꾸시면 됩니다.

 

'워드프레스' 카테고리의 다른 글

[워드프레스] KBoard 확장필드 달력레이어 버그  (0) 2023.06.02
Trackback : | Comments :