Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes)v

oltem4682

New Member
Jun 30, 2012
11
0
Hi everyone,

Does somebody know how to fix:
Code:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\Habbo R63B Server\xampp\htdocs\app\tpl\class.html.php on line 27

I get this when I try to go to

This is my class.html.php
PHP:
<?php
 
namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class html implements iHTML
{
 
    private $html;
 
    final public function get($file)
    {
        global $template, $_CONFIG;
 
        if($file != null && ctype_alnum($file))
        {
            if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'))
            {
                ob_start();
                include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php');
                $this->html .= ob_get_contents();
                ob_end_clean();
           
                    $this->setHTML();
            }
            else
            {
                $this->get('404'); // Line 27
            }
        }
        else
        {
            header('Location: '.$_CONFIG['hotel']['url'].'/index');
            exit;
        }
 
    }
 
    final public function getHK($file)
    {
        global $template, $_CONFIG;
 
        if($file != null)
        {
            if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php'))
            {
                ob_start();
                require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php');
                $this->html .= ob_get_contents();
                ob_end_clean();
     
                $this->setHTML();
            }
            else
            {
                $this->getHK('404');
            }
        }
        else
        {
            $this->getHK('dash');
        }
    }
 
    final public function setHTML()
    {
        global $template;
        $template->tpl .= $this->html;
        unset($this->html);
    }
 
 
}
?>

Some people says putting
Code:
[COLOR=#333333]ini_set('memory_limit', '320M');
fix this problem but it didn't fix my problem. I still get the same error.[/COLOR]


So does somebody knows how to fix this?

P.S. If you need any more information, tell me and I will post it.
 

Users who are viewing this thread

Top