Osclass forums
Support forums => General help => 3.6.x => Topic started by: Aficionado on February 07, 2016, 01:08:02 pm
-
Hello.
I get a lof of this:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/oc-includes/osclass/controller/ajax.php on line 48
BUT those lines in Ajax are for Autocomplete:
case 'location': // This is the autocomplete AJAX
$cities = City::newInstance()->ajax(Params::getParam("term"));
foreach($cities as $k => $city) {
$cities[$k]['label'] = $city['label']." (".$city['region'].")";
}
echo json_encode($cities);
break;
and Autocomplete is DISABLED in my site.
Any ideas on this ?
Thanks
edit: Please don't tell me to add more memory, because i won't and i can't. Also i use OsclassWizards theme with Dropdown. Nothing uses autocomplete. Osclass 3.6 and PHP 7.0.2.
-
Could you PM the URL of your website?
Thanks
-
Since you run 21 countries, that is huge... and this seems like the issue you experienced with OW and incomplete code few days ago.
Maybe it is triggered from admin? You need to test this and carefully watch log and mark the action that triggered it (a page or something).
-
Since you run 21 countries, that is huge... and this seems like the issue you experienced with OW and incomplete code few days ago.
Maybe it is triggered from admin? You need to test this and carefully watch log and mark the action that triggered it (a page or something).
Yes apparently so, not sure if the admin is producing this error (since i admin it once a week and the errors are daily). Also if this happens in admin, i would notice a blank screen probably ....
Still, the autocomplete is not used or at least it should not be used.
(btw: the errors with memory were there with Modern theme also a year+ back.)
-
Could you PM the URL of your website?
Thanks
I did pm you, and please if you have anything to suggest ...
Thanks