Hello, I noticed I am having an issue with my site, I keep getting a blank white page on one section on our downloads section, after looking around I saw this in the error log.
[30-Aug-2012 20:02:55 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 89019 bytes) in /home/public_html/modules/Downloads/includes/functions.php on line 198
When i went to line 198, this is what I find:
[php] $result = $db->sql_query(“SELECT * FROM “.$prefix.”_downloads_categories WHERE cid=’$parentid’”);[/php]
which that line is pulled from this section:
[php]function getparent($parentid,$title) {
global $prefix,$db;
$result = $db->sql_query(“SELECT * FROM “.$prefix.”_downloads_categories WHERE cid=’$parentid’”);
$cidinfo = $db->sql_fetchrow($result);
if ($cidinfo[‘title’] != “”) $title = $cidinfo[‘title’]." -> ".$title;
if ($cidinfo[‘parentid’] != 0) { $title=getparent($cidinfo[‘parentid’], $title); }
return $title;
}[/php]
I just don’t see what could be causing it especially when I know this module is working on many other sites out there. Could it be something with the host?
I have tried creating a php.ini file and changing the memory limit as I found from a search and that did not work.