When trying to update an invoice I get this error:
Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 77824 bytes) in /usr/......../include/init.php on line 163
Lines 158 - 166:
include_once("./include/sql_queries.php");
ini_set('max_file_uploads','20');
ini_set('memory_limit','128M');
ini_set('post_max_size','40M');
$smarty->register_modifier("siLocal_number", array("siLocal", "number")); // line 168
$smarty->register_modifier("siLocal_number_clean", array("siLocal", "number_clean"));
$smarty->register_modifier("siLocal_number_trim", array("siLocal", "number_trim"));
$smarty->register_modifier("siLocal_number_formatted", array("siLocal", "number_formatted"));
The error occurs at the $smarty functions.
How do I fix this??
Hi @eiledon
A number of people have had a similar issue to this. There are a number of possible solutions in the forum. Have you tried any of these?
Matt