묻고답하기

설문 탭 오류

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 남기남
이호 라이코스 계정에 제로보드 깔아주실분을 찾습니다.. [2] 2007.08.10
델리 배경음악 접속할때마다 다르고 계속 흘러나오게.. 하는 소스좀 갈켜주세요.. [1] 2007.08.10
쫑양 롤오버시 메뉴 나오는거 테두리를 없애려는데요.. [2] 2007.08.10
SaRa''S 도메인부분 다른메뉴클릭해도 주소는 그대로..되게.. [3] 2007.08.10
박지수 [질문]포토샵 7.0에서 흰색이 안나와요!! [6] 2007.08.10
튀는아이 플래쉬에서 물결치는 효과를 줄때..  
박현웅 외부컴퓨터(pc방 컴퓨터)에서 이미지가 달라요 [1] 2007.08.10
Уагı_〃 제글에 알아보기쉬운 설명하나 더붙여서 답변합니다..  
펀치다로보 포토샵 한글입력 관련... 찾아봐도 없기에 질문 -_-; [1] 2007.08.10
제로보드에서 아이피 안보이게 하는 방법좀 알려주세요...ㅠㅠ [1] 2007.08.10
style 질문이요..  
앤지 이 폰트 이름좀 말해주세요 ^^; [2] 2007.08.10
이경재 방문자 들이 폰트를 보려면 어떻게 하죠? [2] 2007.08.10
최종욱 키누르면 이벤트발생...제발 답변좀 해주세요오..ㅠㅠ [1] 2007.08.10
비공개 제로보드 설치에 대해,질문 씁니다. [4] 2007.08.10
박민수 나모에서 액션 에 대해서 궁금한게 있는데...일단 클릭!  
이경재 프레임이 마구 움직입니다.;; [6] 2007.08.10
鍾烈 좀더 많은분들에게 질문을 하고저 여기도 씁니다  
콤마™ 스타일시트 문제.. [1] 2007.08.10
밥줘 모든 싸이트 소스보기가 안되요... [3] 2007.08.10
비공개 질문이요. [2] 2007.08.10
당무 IDC 서비스 같은거요. 그리고 XEON [1] 2007.08.10
박대선 iframe을 쓴 페이지에서 새로그침을 눌렀을겨우. [1] 2007.08.10
밥줘 캡쳐 버튼이랑 오른쪽 버튼키 막는 방법아시는분~  
조현진 [re] [PHP] 게시판에서 관리자 모드로 들어가면 에러가 뜹니다! 도와주셔여 .  
조현진 [PHP] 게시판에서 관리자 모드로 들어가면 에러가 뜹니다! 도와주셔여 . [1] 2007.08.10
루우우웅! [질문] 레이어 보이기를 할려는데 에러가 떠서요. [1] 2007.08.10
이옥진 서버가 이상해서요....알려주세요... [2] 2007.08.10
떡볶기 폼 태그에서요.... ^^; [1] 2007.08.10
비공개 Cute FTP3.0;;;;;;;;;;;;; [2] 2007.08.10