묻고답하기

설문 탭 오류

2015.09.06 16:48

윷윷

XE 관리자페이지에서 콘텐츠 설문 탭을 클릭했을대

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 85 bytes) in /web/home/adgon/html/classes/object/Object.class.php on line 151

라는 오류창이 뜨네요ㅠㅠ 어떻게 해야 할까요??

밑에는 Object.class.php 입니다!

 

<?php
/* Copyright (C) NAVER <http://www.navercorp.com> */

/**
 * Every modules inherits from Object class. It includes error, message, and other variables for communicatin purpose.
 *
 * @author NAVER (developers@xpressengine.com)
 */
class Object
{

    /**
     * Error code. If `0`, it is not an error.
     * @var int
     */
    var $error = 0;

    /**
     * Error message. If `success`, it is not an error.
     * @var string
     */
    var $message = 'success';

    /**
     * An additional variable
     * @var array
     */
    var $variables = array();

    /**
     * http status code.
     * @var int
     */
    var $httpStatusCode = NULL;

    /**
     * Constructor
     *
     * @param int $error Error code
     * @param string $message Error message
     * @return void
     */
    function Object($error = 0, $message = 'success')
    {
        $this->setError($error);
        $this->setMessage($message);
    }

    /**
     * Setter to set error code
     *
     * @param int $error error code
     * @return void
     */
    function setError($error = 0)
    {
        $this->error = $error;
    }

    /**
     * Getter to retrieve error code
     *
     * @return int Returns an error code
     */
    function getError()
    {
        return $this->error;
    }

    /**
     * Setter to set HTTP status code
     *
     * @param int $code HTTP status code. Default value is `200` that means successful
     * @return void
     */
    function setHttpStatusCode($code = '200')
    {
        $this->httpStatusCode = $code;
    }

    /**
     * Getter to retrieve HTTP status code
     *
     * @return int Returns HTTP status code
     */
    function getHttpStatusCode()
    {
        return $this->httpStatusCode;
    }

    /**
     * Setter to set set the error message
     *
     * @param string $message Error message
     * @return bool Alaways returns true.
     */
    function setMessage($message = 'success')
    {
        if($str = Context::getLang($message))
        {
            $this->message = $str;
        }
        else
        {
            $this->message = $message;
        }

        // TODO This method always returns True. We'd better remove it
        return TRUE;
    }

    /**
     * Getter to retrieve an error message
     *
     * @return string Returns message
     */
    function getMessage()
    {
        return $this->message;
    }

    /**
     * Setter to set a key/value pair as an additional variable
     *
     * @param string $key A variable name
     * @param mixed $val A value for the variable
     * @return void
     */
    function add($key, $val)
    {
        $this->variables[$key] = $val;
    }

    /**
     * Method to set multiple key/value pairs as an additional variables
     *
     * @param Object|array $object Either object or array containg key/value pairs to be added
     * @return void
     */
    function adds($object)
    {
        if(is_object($object))
        {
            $object = get_object_vars($object);
        }

        if(is_array($object))
        {
            foreach($object as $key => $val)
            {
                $this->variables[$key] = $val;
            }
        }
    }

    /**
     * Method to retrieve a corresponding value to a given key
     *
     * @param string $key
     * @return string Returns value to a given key
     */
    function get($key)
    {
        return $this->variables[$key];
    }

    /**
     * Method to retrieve an object containing a key/value pairs
     *
     * @return Object Returns an object containing key/value pairs
     */
    function gets()
    {
        $args = func_get_args();
        $output = new stdClass();
        foreach($args as $arg)
        {
            $output->{$arg} = $this->get($arg);
        }
        return $output;
    }

    /**
     * Method to retrieve an array of key/value pairs
     *
     * @return array
     */
    function getVariables()
    {
        return $this->variables;
    }

    /**
     * Method to retrieve an object of key/value pairs
     *
     * @return Object
     */
    function getObjectVars()
    {
        $output = new stdClass();
        foreach($this->variables as $key => $val)
        {
            $output->{$key} = $val;
        }
        return $output;
    }

    /**
     * Method to return either true or false depnding on the value in a 'error' variable
     *
     * @return bool Retruns true : error isn't 0 or false : otherwise.
     */
    function toBool()
    {
        // TODO This method is misleading in that it returns true if error is 0, which should be true in boolean representation.
        return ($this->error == 0);
    }

    /**
     * Method to return either true or false depnding on the value in a 'error' variable
     *
     * @return bool
     */
    function toBoolean()
    {
        return $this->toBool();
    }

}
/* End of file Object.class.php */
/* Location: ./classes/object/Object.class.php */

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
중년- 탭형 최신글 출력 썸네일 질문 좀... file  
메뉴탭 수정 방법 도움요청. [2] file 2016.02.16 by 공윤표
pfe**** 탭tab이 있는 페이지를 만들고 싶어요 [1] file 2016.02.13 by bncPlan
메인드블랙 게시판 분류 탭을 하고싶어서 자체 수정하려는데요 [6] file 2016.01.22 by mindpainter
슈니슈니 분류탭중에 전체보기 없애기 [2] file 2015.09.14 by 슈니슈니
초보에염 탭위젯 다국어변경 ...문제 [3] 2015.09.14 by OEZ
퍼플코드 페이지 내의 탭메뉴 링크 구현방법 [2] 2015.09.08 by 펀펀74
윷윷 설문 탭 오류  
rumoris textyle 쓰고 있는데 탭 내용 수정에 관하여 file  
azby 회원정보 탭 추가 문의드립니다.  
JerryGoldman 게시판 배너와 넘버/제목/글쓴이 탭 사이 간격 설정 file  
팝스애플 확장변수를 글쓰기페이지에서 동적으로 관리 혹은 탭메뉴 삽입이 가능한 에디터 가능 불가능 여부... [2] file 2015.07.09 by 착한악마
마키1 메뉴 탭? 카테고리가 다 없어졌어요.. [3] file 2015.05.26 by 마키1
poltwo 1.8.2 업데이트 후 쉬운 설치 탭 / 부트스트랩 파일과 관련한 오류가 납니다  
비누남어 탭(Tabs) 항목별 print 및 , iframe 질문드립니다. [2] 2015.05.20 by 비누남어
줄앤짐 메인에 공지사항을 상단 탭스타일로 만들었는데 링크가 안되네요.  
revoldaw.myid.net 사이트 관리자 메뉴에서 사이트관리탭을 클릭하면 내용이 보이지않습니다. file  
충신 최근게시물 위젯 메뉴탭에 링크를 달고 싶습니다 file  
디스커스 회원정보보기 탭 제거 [4] 2015.02.27 by 디스커스
Kxo 위젯에서 탭이름을 브라우저 이름으로 가져오는데