묻고답하기

설문 탭 오류

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 남기남
브룸 모바일 레이아웃을 모두 적용했는데도 한 개의 게시판만 PC버전처럼 뜹니다. [2] 2015.09.05 by 브룸
브레인630 언어별 메뉴 노출 제어 [3] 2015.09.05 by 브레인630
김깔끔 스케치북5 게시글뷰어 에서 제목폰트를 키우는 방법좀 부탁드립니다. [2] file 2015.09.05 by 김깔끔
용가리13호 초보자 입니다. 사이트맵 추가 안됩니다 [1] file 2015.09.05 by 이온디
[Kirito] XE cannot connect to DB. 오류 나와요.. 도와주세요.. [2] 2015.09.05 by 이온디
초보자 스케치북5 사용중이며 본문 폰트와 댓글 폰트 크기를 다르게  
난나야9 스케치북 게시판 목록에서 글자 크기를 키우려면? [2] 2015.09.05 by 초보자
현님v 스케치북 게시판 목록 리스트에서 날짜, 작성자 명칭을 바꿀수 있나요? [2] file 2015.09.05 by 초보자
25시 쓰바^^결국 기적같이 해치웠네여^^그런데 참 희한한게... [2] 2015.09.05 by 25시
crebill xe.1.8.9.changed.zip.md5 어느 폴더에 놓아야 하나요? [1] 2015.09.05 by YJSoft
crebill 코어1.8.9v~~.md5 는 다른건가요? [3] 2015.09.05 by YJSoft
c2**** 함수의 위치를 알수있나요? [2] 2015.09.05 by sejin7940
김깔끔 1차메뉴에 카테고리 형식을 변경하는법좀 가르쳐 주세요 [6] file 2015.09.05 by purecity
큰돌♡ angularjs 사용하시는 분 있나요?  
방울2 한 서버에 2개의 XE를 설치하여 회원DB 연동방법? [13] 2015.09.06 by 니는뜬데이~
모모 제이쿼리 해석좀 해주세요. [3] 2015.09.06 by DoorWeb
newi 이런 광고는 어떻게 하나요 ?? [1] 2015.09.06 by DoorWeb
초보자 조회수 또는 방문자수를 나타나게 할 수 없는지요 [1] 2015.09.06 by DoorWeb
영웅마린 보드에 파일 첨부오류(외부아이피만 오류)  
Red_witch 디자인 설정 및 메뉴 편집이 안뜨는 현상 file  
드프스 추천/비추천/신고시 확인 후 적용 애드온에 관해서  
윷윷 설문 탭 오류  
던힐 새창 크기 고정 문의..  
윷윷 zb4에서 XE로 마이그레이션 [1] file 2015.09.06 by 윷윷
복음지기 페이지를 통채로 복사하는 방법은 없나요?  
쩍새 다른 서버의 회원목록과 비교하는 방식으로 회원가입없이 바로 로그인이 가능하게 할 수 있나요? [3] 2015.09.06 by 쩍새
쩍새 페이스북위젯 코드입력 방법 여쭤봅니다. [2] file 2015.09.07 by 쩍새
MF천월 스케치북의 도장 수정 질문 file  
내일을살다 스케치북입니다. 아래 내용을 삭제하려면 어디를 봐야 하는지요? [5] file 2015.09.07 by 마야
c2**** 함수를 찾지 못하겠습니다. [2] 2015.09.07 by YJSoft