Q&A

라이믹스 업데이트후

2023.07.15 07:43
165
1
CMS/프레임워크 Rhymix 2.1
개발 언어 PHP 7.4

관리자모드에 들어가면

 

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; faqItem has a deprecated constructor in /www/wwwroot/username/public_html/modules/faq/faq.item.php on line 8

 

이게 뜨는데요. 무엇일까요?
 

새로고침하면 사라지는데. 다시로그인해서 관리자 모드에 들어가면 최상단에 뜹니다

가이더 Lv. 6

댓글 5

  • 2023.07.15 07:50 #1774947
    faq.item.php 파일 첫 함수명을 famItem 에서 __constructor 으로 변경하세요
  • 2023.07.15 08:10 #1774950
    넵 감사드립니다.
  • 2023.07.15 11:00 #1774965

    famItem  이 아니라 faqItem 죠?
     

        class faqItem extends BaseObject {

            var $question_srl = 0;
            var $lang_code = null;


    function faqItem($question_srl = 0, $load_extra_vars = true) {
                $this->question_srl = $question_srl;
                $this->_loadFromDB($load_extra_vars);

     

    두개가 있는데요

     

    class __constructor extends BaseObject

    function __constructor($question_srl = 0, $load_extra_vars = true) {

     

    이렇게 수정하는것이 맞는걸까요?

     

    감사합니다.

     

  • 2023.07.15 11:26 #1774978
    function faqItem( 이것만 바꾸세요... 함수라고 말씀드렸습니다..
  • 2023.07.15 11:38 #1774981
    넵 감사합니다.