묻고답하기

설문 탭 오류

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 남기남
신성3014 회원 DB만 특정 호스팅에서 가져오는 방법 질문입니다 [6] 2015.10.13 by 퍼니엑스이
silhwang 게시판 리스트 높이를 좀 줄일 수 있을까요?? file  
슈니슈니 게시판 아이프레임 레이아웃 질문입니다  
플라이나 썸네일 이미지를 출력하고 싶습니다 [4] 2015.10.12 by silhwang
purecity 쉬운설치에서 xe 182 로 업데이트하려는데 오류 메시지가 나옵니다. [6] file 2015.10.12 by treasurej
mcls**** 게시판 글쓸때 파일첨부부분 질문이요. [1] 2015.10.12 by sejin7940
꾸링 모듈 - 게시판에서 게시판들 목록이 사라졌습니다. [2] file 2015.10.12 by sejin7940
유아유아 사용자 정의 항목 관리자와 글쓴이만 볼 수 있게 하고싶어요ㅠㅠ [1] 2015.10.12 by 유아유아
hellojdy 로그인문제  
손주사랑 궁금증좀 풀어주세요 접속국가가 다르게 나와요^^ [2] file 2015.10.12 by 손주사랑
likehaze 메뉴 홈페이지로 사용중 기능을 사용안하고싶어요 ㅠ [1] 2015.10.12 by YJSoft
FaCer 바로가기 메뉴는 mailto 안먹히나요?  
hellojdy 스케치북게시판 썸네일이요 ㅎㅎ [10] 2015.10.12 by hellojdy
키큰아이 게시판 스킨에다가...  
안느 게시판 댓글 삭제시 you have an error in your SQL syntax 에러가 나요 ㅜㅜ [1] file 2015.10.12 by 안느
zartin 이런 최신글 위젯없나요? file  
유아유아 질문 몇가지 드려요 ㅠㅠ 꼭 읽어주세요  
silhwang 기본 게시판 섬네일 형식으로 하기가 어렵나요? [2] 2015.10.12 by silhwang
kerit**** xe로 개발된 홈페이지에서 글작성할때 관한 질문입니다.  
고양이냥 Xe로 여러 사이트 글 모아서 보여주는 사이트 제작 가능한가요?  
25시 게시판 조회수가 술에 취했는지??? [3] 2015.10.12 by 25시
유아유아 게시판 문의 글 열람 권한에 사용자 정의 항목만 블라인드가 가능하려면?  
hsjaa 이문제 해결해주시는분..정말.. [14] 2015.10.12 by 키스투엑스이
오정인 게시판이름을 지정해주셔야합니다. 메시지~~  
곰탕lol왕자 서버 튜닝??? [2] 2015.10.12 by 기진곰
열혈개발 게시판 카테고리(분류) 기능 중 '대분류' 이놈 [1] 2015.10.12 by 열혈개발
클릭해 아이프레임 세로 짤림현상 질문입니다  
skfu**** XE 1.7 버전에서 로그인 정보를 가져오는 법 [2] 2015.10.12 by skfu****
Devkang 혹시 게시판 본문에 배너삽입가능한 위젯 애드온 또는 게시판 스킨 존재하나요? [1] 2015.10.12 by 퍼니엑스이
리예 외부페이지 연결시 iframe 적용