Welcome Guest, Not a member yet? Register   Sign In
urgent: Fatal error: out of dynamic memory in yy_create_buffer()...
#1

[eluser]daulex[/eluser]
Really nee help on this one:
I get:
Quote:Fatal error: out of dynamic memory in yy_create_buffer() in /home/sites/galenko.co.uk/public_html/dev/ll/system/libraries/Language.php on line 77

this shows up when I load my news page, here are the functional bits of it:
here is the news.php controller
Code:
<?
class News extends Controller {
    function News(){
    parent::Controller();
    
    $this->load->helper('url');
    $this->load->helper('form');
    }
function index()
{
    $data['query'] = $this->db->order_by("id", "DESC");
    $data['query'] = $this->db->get('template');
    $this->load->view('news',$data);
}
function view(){
    $data['query'] = $this->db->order_by("id", "DESC");
    $data['query'] = $this->db->get('template');
    
    $this->db->where('id',$this->uri->segment(3));
    $data['query2'] = $this->db->order_by("id", "DESC");
    $data['query2'] = $this->db->get('template');
    
    $this->load->view('view_news',$data);
}
}
?>
here is the view code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
&lt;html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"&gt;
&lt;head&gt;
    &lt;title&gt;The London Legends - News&lt;/title&gt;
    &lt;meta http-equiv="imagetoolbar" content="no" /&gt;
    &lt;meta name="MSSmartTagsPreventParsing" content="true" /&gt;
    &lt;meta name="description" content="The London Legends - News" /&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;    
    &lt;link rel="stylesheet" type="text/css" href="&lt;?=base_url()?&gt;system/application/views/styles/screen-main.css" media="screen, print" /&gt;    
    
&lt;/head&gt;
&lt;body&gt;
<div id="doc">
    <div id="header">
<a href="&lt;?=base_url()?&gt;index.php/site/" title="The London Legends"><img src="&lt;?=base_url()?&gt;system/application/views/images/logo.png" alt="The London Legends" width="782" height="97"></a></div>
    <div id="sidebar-a">
<div class="box">
<ul>
<li><a href="&lt;?=base_url()?&gt;index.php/site/thelegendshousehold/"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />The Legends Household</a></li>
<li><a href="&lt;?=base_url()?&gt;index.php/site/thekingsrole"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />The King’s Role</a></li>
<li><a href="&lt;?=base_url()?&gt;index.php/site/thelegendscollection"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />Art & Residences</a></li>
<li><a href="&lt;?=base_url()?&gt;index.php/site/thekingsworkingday"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />The Kings’ Working Day</a></li>
<li><a href="&lt;?=base_url()?&gt;index.php/site/crestsandsymbols"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />Crests & Symbols</a></li>
<li><a href="&lt;?=base_url()?&gt;index.php/site/thelegendsarchives"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />The Legends Archives</a></li>
<li><a href="&lt;?=base_url()?&gt;index.php/site/historyofthelegends"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />History of The Legends</a></li>
<li><a href="&lt;?=base_url()?&gt;index.php/news/" class="hl"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />News</a></li>
<li><a href="&lt;?=base_url()?&gt;index.php/site/contact"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />Contact</a></li>
<li><a href="&lt;?=base_url()?&gt;index.php/site/links"><img src="&lt;?=base_url()?&gt;system/application/views/images/star.gif" />Links</a></li>
</ul>

</div>
<img src="&lt;?=base_url()?&gt;system/application/views/images/logo_small.png" style="padding-left:1px;" />
</div>
    
    <div id="content">    
<div class="newsbox">
<div class="nbcontainer">
&lt;? foreach($query->result() as $row): ?&gt;
<p>&lt;?=anchor('news/view/'.$row->id, ''.$row->title)?&gt; (&lt;?=$row->date?&gt;)</p>
&lt;? endforeach;?&gt;
</div>
</div>
<div class="contentboxq">
Information about Royal Legends news and future Royal engagements.<br />

</div>
<div>
    
  
    
    <div class="c"></div>
    
</div>    </div>
  <blockquote>&nbsp;</blockquote>
  <div class="c"></div>
    
    <div id="footer"><span style="padding-left:25px;">copyright London Legends 2008</span></div>

</div>
&lt;/body&gt;
&lt;/html&gt;

what really pisses me off is that it works fine on my pc, but when I upload it, it all crashes Sad
the site works well otherwise, check it out: http://dev.galenko.co.uk/ll however when you click on the news link, it all falls down and I really don't know what to do... please help...

been working on javascript and the cms for this site all day and its 2am now, damn why does it not work Sad

please help
#2

[eluser]daulex[/eluser]
I now understood that the problem is in
Code:
function view(){
    $data['query'] = $this->db->order_by("id", "DESC");
    $data['query'] = $this->db->get('template');
    
    $this->db->where('id',$this->uri->segment(3));
    $data['query2'] = $this->db->order_by("id", "DESC");
    $data['query2'] = $this->db->get('template');
    
    $this->load->view('view_news',$data);
}

as if I take it out, everything seems to work fine... I mean I dont get the function I need, but hey it works Big Grin still, what do I do now?

edit-> not the thingy is back even without it...
#3

[eluser]daulex[/eluser]
this probably had something to do with the name view, rtfm me.
thanks,figured it out Smile




Theme © iAndrew 2016 - Forum software by © MyBB