묻고답하기

설문 탭 오류

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 남기남
김주년656 제로보드내 기본 위젯인 contents 위젯에서 default 스킨에서 닉네임 말고 이름 출력하기 [2] 2011.04.19 by 김주년656
홍동길 게시판 글이 들쭉날쭉 보기 좋지않아서 질문합니다. [1] 2011.04.19 by yoorim
Cho247 같은 계정에 2개의 XE 설치 가능? [1] 2011.04.19 by 물비늘
dldrkstmdfl 카페XE에 자신이 원하는 글 추가하려고 합니다.  
백월a 로그인이 이루어지는 파일?  
김신우614 엮인글 이 뭔지 알고 싶습니다. 초보올림 [1] 2011.04.19 by 레디오빠
Huckleberry Finn 탭 형태 최근 문서 출력 [1] 2011.04.20 by 레디오빠
블루그린 갤러리 게시판 섬네일 출력문의 [1] 2011.04.20 by 오르막
무돌이 사이드 메뉴의 트리기능 안되네요  
은빛하늘264 ㅜㅜ 제로보드xe완전 초보인데요 ..썸네일 가운데정렬좀 가르쳐주세요! [2] 2011.04.20 by 어라하여
조양래503 xe official skin 블랙으로 했는데 버튼은 여전히 흰색입니다. 어떻게 수정하나요?  
박물관 게시판 검색 부분은 어느파일에 있나요? [1] 2011.04.20 by ksdwm72
Hyungs 외부페이지 링크 오류가 생기는데 왜 그럴까요? [2] 2011.04.20 by Hyungs
별님왕자 bodex 8.0에서 댓글 수정,삭제가 안됩니다. [2] 2011.04.20 by 파이델
이글도적 파일 업로드시 본문에 자동으로 바로 뜨거나 파일링크 뜨는 애드온 있나요? [1] 2011.04.20 by 카르마
김경현708 XE 제거 하는법(DB까지 삭제 하는법 알려 주세요) [2] 2011.04.20 by ksdwm72
마이콘 콘텐츠 위젯 탭전환 안됨 [1] 2011.04.20 by 카르마
Ada지오 XE 새버전으로 업데이트후 이미지슬라이더 위젯 오류 [1] 2011.04.20 by ksdwm72
실속제로 1.4.4.4.에서 1.4.5.5. 로 업그레이드 시 [1] 2011.04.20 by ksdwm72
띵띵콩 xe설치후 게시판 클릭시 연결안됩니다. [1] 2011.04.20 by ksdwm72