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
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="JayFord" data-source="post: 193547" data-attributes="member: 30331"><p>I need help ASAP. pls. This is my problem:</p><p>-------------------------------------------------------------------------------------------</p><p> </p><p><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">Fatal error</span></span></span></strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in </span></span></span><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">C:\Users\Sevillia\Desktop\Retro\xampp\htdocs\app\tpl\class.html.php</span></span></span></strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000"> on line </span></span></span><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">27</span></span></span></strong></p><p> </p><p>-------------------------------------------------------------------------------------------</p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">and this is my class.html.php :</span></span></span></p><p> </p><p>1<?php</p><p>2</p><p>3namespace Revolution;</p><p>4if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }</p><p>5class html implements iHTML</p><p>6{</p><p>7</p><p>8private $html;</p><p>9</p><p>10final public function get($file)</p><p>11{</p><p>12global $template, $_CONFIG;</p><p>13</p><p>14if($file != null && ctype_alnum($file))</p><p>15{</p><p>16if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'))</p><p>17{</p><p>18ob_start();</p><p>19include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php');</p><p>20 $this->html .= ob_get_contents();</p><p>21 ob_end_clean();</p><p>22</p><p>23 $this->setHTML();</p><p>24}</p><p>25else</p><p>26{</p><p>27$this->get('404');</p><p>28}</p><p>29}</p><p>30else</p><p>{</p><p>31header('Location: '.$_CONFIG['hotel']['url'].'/index');</p><p>32exit;</p><p>33}</p><p>34</p><p>35}</p><p>36</p><p>37final public function getHK($file)</p><p>38{</p><p>39global $template, $_CONFIG;</p><p>40</p><p>41if($file != null)</p><p>42{</p><p>43if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php'))</p><p>44{</p><p>45ob_start();</p><p>46require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . 47'.php');</p><p>48$this->html .= ob_get_contents();</p><p>49ob_end_clean();</p><p>50</p><p>51$this->setHTML();</p><p>52}</p><p>53else</p><p>54{</p><p>55$this->getHK('404');</p><p>56}</p><p>57}</p><p>58else</p><p>59{</p><p>60$this->getHK('dash');</p><p>61}</p><p>62}</p><p>63</p><p>64</p><p>final public function setHTML()</p><p>65{</p><p>66global $template;</p><p>67$template->tpl .= $this->html;</p><p>68unset($this->html);</p><p>69}</p><p>70</p><p>72</p><p>73}</p><p>74?></p></blockquote><p></p>
[QUOTE="JayFord, post: 193547, member: 30331"] I need help ASAP. pls. This is my problem: ------------------------------------------------------------------------------------------- [B][SIZE=4][FONT=Times New Roman][COLOR=#000000]Fatal error[/COLOR][/FONT][/SIZE][/B][SIZE=4][FONT=Times New Roman][COLOR=#000000]: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in [/COLOR][/FONT][/SIZE][B][SIZE=4][FONT=Times New Roman][COLOR=#000000]C:\Users\Sevillia\Desktop\Retro\xampp\htdocs\app\tpl\class.html.php[/COLOR][/FONT][/SIZE][/B][SIZE=4][FONT=Times New Roman][COLOR=#000000] on line [/COLOR][/FONT][/SIZE][B][SIZE=4][FONT=Times New Roman][COLOR=#000000]27[/COLOR][/FONT][/SIZE][/B] ------------------------------------------------------------------------------------------- [SIZE=4][FONT=Times New Roman][COLOR=#000000]and this is my class.html.php :[/COLOR][/FONT][/SIZE] 1<?php 2 3namespace Revolution; 4if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); } 5class html implements iHTML 6{ 7 8private $html; 9 10final public function get($file) 11{ 12global $template, $_CONFIG; 13 14if($file != null && ctype_alnum($file)) 15{ 16if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php')) 17{ 18ob_start(); 19include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'); 20 $this->html .= ob_get_contents(); 21 ob_end_clean(); 22 23 $this->setHTML(); 24} 25else 26{ 27$this->get('404'); 28} 29} 30else { 31header('Location: '.$_CONFIG['hotel']['url'].'/index'); 32exit; 33} 34 35} 36 37final public function getHK($file) 38{ 39global $template, $_CONFIG; 40 41if($file != null) 42{ 43if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php')) 44{ 45ob_start(); 46require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . 47'.php'); 48$this->html .= ob_get_contents(); 49ob_end_clean(); 50 51$this->setHTML(); 52} 53else 54{ 55$this->getHK('404'); 56} 57} 58else 59{ 60$this->getHK('dash'); 61} 62} 63 64 final public function setHTML() 65{ 66global $template; 67$template->tpl .= $this->html; 68unset($this->html); 69} 70 72 73} 74?> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Fatal Error
Top