Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes)v
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="oltem4682" data-source="post: 219202" data-attributes="member: 18875"><p>Hi everyone,</p><p> </p><p>Does somebody know how to fix:</p><p>[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[/CODE]</p><p> </p><p>I get this when I try to go to <a href="http://localhost/index" target="_blank">http://localhost/index</a></p><p> </p><p>This is my class.html.php</p><p>[PHP]<?php</p><p> </p><p>namespace Revolution;</p><p>if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }</p><p>class html implements iHTML</p><p>{</p><p> </p><p> private $html;</p><p> </p><p> final public function get($file)</p><p> {</p><p> global $template, $_CONFIG;</p><p> </p><p> if($file != null && ctype_alnum($file))</p><p> {</p><p> if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'))</p><p> {</p><p> ob_start();</p><p> include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php');</p><p> $this->html .= ob_get_contents();</p><p> ob_end_clean();</p><p> </p><p> $this->setHTML();</p><p> }</p><p> else</p><p> {</p><p> $this->get('404'); // Line 27</p><p> }</p><p> }</p><p> else</p><p> {</p><p> header('Location: '.$_CONFIG['hotel']['url'].'/index');</p><p> exit;</p><p> }</p><p> </p><p> }</p><p> </p><p> final public function getHK($file)</p><p> {</p><p> global $template, $_CONFIG;</p><p> </p><p> if($file != null)</p><p> {</p><p> if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php'))</p><p> {</p><p> ob_start();</p><p> require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php');</p><p> $this->html .= ob_get_contents();</p><p> ob_end_clean();</p><p> </p><p> $this->setHTML();</p><p> }</p><p> else</p><p> {</p><p> $this->getHK('404');</p><p> }</p><p> }</p><p> else</p><p> {</p><p> $this->getHK('dash');</p><p> }</p><p> }</p><p> </p><p> final public function setHTML()</p><p> {</p><p> global $template;</p><p> $template->tpl .= $this->html;</p><p> unset($this->html);</p><p> }</p><p> </p><p> </p><p>}</p><p>?>[/PHP]</p><p> </p><p><span style="font-family: 'verdana'"><span style="font-size: 12px">Some people says putting [CODE][COLOR=#333333]ini_set('memory_limit', '320M');[/CODE] fix this problem but it didn't fix my problem. I still get the same error.[/COLOR]</span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'verdana'"><span style="color: #333333">So does somebody knows how to fix this?</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'verdana'">P.S. If you need any more information, tell me and I will post it.</span></span></p></blockquote><p></p>
[QUOTE="oltem4682, post: 219202, member: 18875"] 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[/CODE] I get this when I try to go to [url]http://localhost/index[/url] 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); } } ?>[/PHP] [FONT=verdana][SIZE=3]Some people says putting [CODE][COLOR=#333333]ini_set('memory_limit', '320M');[/CODE] fix this problem but it didn't fix my problem. I still get the same error.[/COLOR][/SIZE][/FONT] [SIZE=3][FONT=verdana][COLOR=#333333]So does somebody knows how to fix this?[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=verdana]P.S. If you need any more information, tell me and I will post it.[/FONT][/SIZE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes)v
Top