OSC3.8
//---EDIT--//
The problem is not resolved. The way it is atm is the regions are set on the autocomplete in the theme admin and the frontend admin does not crash on edit ad.
If the admin is set for the Regions to dropdown the system crashes if the customer is trying to edit ad in the back end.
If no one knows how to troubleshoot this issue, Ill start to compare codes of the "post add" and "edit page" as it looks to me the "add" and "edit" and search the dropdown system is the same, so how two of them work on one doesnt..ffs..ill do it next week.
look at me... writing like a true coder...
//---END OF EDIT--//
Just testing the script and some plugs out and found the user cannot edit the ad in mysite/user/items the response is 500
I have multiple countries for locations.
Debug:
PHP Notice: Undefined index: pk_i_id in /home/user34/public_html/oc-includes/osclass/frm/Category.form.class.php on line 33
PHP Fatal error: Allowed memory size of 270532608 bytes exhausted (tried to allocate 80 bytes) in /home/user34/public_html/oc-includes/osclass/classes/database/DBRecordsetClass.php on line 186
I followed this thread:
https://forums.osclass.org/general-help/osclass-extreme-memory-usage-with-multi-country/15/Big thanks to contributors
***CORRECTED AGAIN***
It's a theme issue. Just seen a reference to Osclasswizards on your queries log.
Locate this in item-post:
ItemForm::city_select(osc_get_cities(),osc_user());
an replace with:
ItemForm::city_select(osc_get_cities(osc_user_region_id()), osc_user());
That seems to be working all right with no loading of all cities anymore.
Regards
but my item-post.php already contains both lines of the suggested fix
<?php if (gum_default_location_show_as() == 'dropdown') {
if(Params::getParam('action') != 'item_edit') {
GumItemForm::city_select(null, osc_user());
} else { // add new item
GumItemForm::city_select(osc_get_cities(osc_user_region_id()), osc_user());
}
} else {
GumItemForm::city_text(osc_user());
} ?>
Does anyone know how to be with this problem? memory limit is set 256.