FabianoBN
l|¬¬"|l
I need help,
I Go for my Site and I have This Error
in log have this:
In the Line 126:
Please Help me
- - - Updated - - -
Help me Please .x
I need Help in this questioN!
I Go for my Site and I have This Error
Code:
The website encountered an error while retrieving. It may be down for maintenance or configured incorrectly.
Error Code: 500
in log have this:
PHP:
(mod_fastcgi.c.2701) FastCGI-stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /var/www/engine/function/general.php on line 126
In the Line 126:
PHP:
function znote_visitor_set_data($visitor_data) {
$exist = false;
$ip = ip2long(getIP());
foreach ((array)$visitor_data as $row) { <------- LINE 126 -------<
if ($ip == $row['ip']) {
$exist = true;
$value = $row['value'];
}
}
if ($exist && isset($value)) {
// Update the value
$value++;
mysql_query("UPDATE `znote_visitors` SET `value` = '$value' WHERE `ip` = '$ip'") or die(mysql_error());
} else {
// Insert new row
mysql_query("INSERT INTO `znote_visitors` (`ip`, `value`) VALUES ('$ip', '1')") or die(mysql_error());
}
}
Please Help me
- - - Updated - - -
Help me Please .x
I need Help in this questioN!
Last edited: