string(4249) "exception 'Exception' with message 'Out of resources when opening file '/tmp/#sql_218_0.MAI' (Errcode: 24 "Too many open files") Query: SELECT photobase_to_ps.id AS '_id', photobase_to_ps.photo_id AS '_photo_id', photobase_to_ps.ps_id AS '_ps_id', photobase_to_ps.main_photo AS '_main_photo', photobase.id, photobase.full_file_name, photobase.full_file_weight, photobase.full_file_width, photobase.full_file_height, photobase.medium_file_name, photobase.medium_file_width, photobase.medium_file_height, photobase.small_file_name, photobase.small_file_width, photobase.small_file_height, photobase.file_dir_id, photobase.preview_text, photobase.title, photobase.description, photobase.comments, photobase.photo_date, photobase.photo_date_show_type_id, photobase.photo_date_for_old, photobase.upload_user_id, photobase.upload_date, photobase.author_id, photobase.source_id, photobase.assigned_by_id, photobase.created, photobase.updated, photobase.state_id FROM (photobase) JOIN photobase_to_ps ON photobase_to_ps.photo_id = photobase.id WHERE photobase_to_ps.ps_id = 10115 AND photobase.state_id IN ('1') AND photobase.upload_date < 1573941600 AND photobase.photo_state = 1 GROUP BY photobase_to_ps.photo_id ORDER BY photobase.photo_date ASC .' in /home/khtr/includes/framework/Db/Query.php:31 Stack trace: #0 /home/khtr/includes/framework/Db/Query/Select.php(29): Db_Query->run(NULL) #1 /home/khtr/includes/modules/Abstract/Collection/Loader.php(661): Db_Query_Select->run() #2 /home/khtr/includes/modules/Abstract/Collection/Loader.php(89): Abstract_Collection_Loader->_loadCollection() #3 /home/khtr/includes/modules/Abstract/Entity.php(1333): Abstract_Collection_Loader->getCollection() #4 /home/khtr/includes/modules/Abstract/Entity.php(1285): Abstract_Entity->_loadAssocField(Object(Config_Field)) #5 /home/khtr/includes/modules/Abstract/Entity.php(155): Abstract_Entity->_loadAssocFields() #6 /home/khtr/includes/modules/Abstract/Entity.php(105): Abstract_Entity->getByFields(Array) #7 /home/khtr/includes/modules/Abstract/Controller/Base.php(556): Abstract_Entity->getById('10115') #8 /home/khtr/includes/modules/Abstract/Controller/Base.php(486): Abstract_Controller_Base->_loadOrCreateEntity() #9 /home/khtr/includes/modules/Abstract/Controller/Base.php(123): Abstract_Controller_Base->_loadRequiredObjects() #10 /home/khtr/includes/modules/Abstract/Controller/Old.php(33): Abstract_Controller_Base->run() #11 /home/khtr/includes/framework/Factory.php(95): Abstract_Controller_Old->run() #12 /home/khtr/includes/framework/Factory.php(110): Factory->runModuleController('ps_units', Object(Main_Controller)) #13 [internal function]: Factory->runModuleControllerBySeoName('vehicles', Object(Main_Controller)) #14 /home/khtr/includes/framework/ServiceLocator.php(62): call_user_func_array(Array, Array) #15 /home/khtr/includes/modules/Abstract/Controller/Base.php(322): ServiceLocator->__call('runModuleContro...', Array) #16 /home/khtr/includes/modules/Abstract/Controller/Base.php(322): ServiceLocator->runModuleControllerBySeoName('vehicles', Object(Main_Controller)) #17 /home/khtr/includes/modules/Abstract/Controller/Base.php(129): Abstract_Controller_Base->__default() #18 /home/khtr/includes/framework/Factory.php(95): Abstract_Controller_Base->run() #19 [internal function]: Factory->runModuleController('main', Object(Application)) #20 /home/khtr/includes/framework/ServiceLocator.php(62): call_user_func_array(Array, Array) #21 /home/khtr/includes/framework/Application.php(222): ServiceLocator->__call('runModuleContro...', Array) #22 /home/khtr/includes/framework/Application.php(222): ServiceLocator->runModuleController('main', Object(Application)) #23 /home/khtr/includes/framework/Application.php(114): Application->_runRootController(Object(Context)) #24 /home/khtr/includes/framework/Factory.php(39): Application->handle(Object(request)) #25 [internal function]: Factory->runApplication('main') #26 /home/khtr/includes/framework/ServiceLocator.php(62): call_user_func_array(Array, Array) #27 /home/khtr/public_html/index.php(8): ServiceLocator->__call('runApplication', Array) #28 /home/khtr/public_html/index.php(8): ServiceLocator->runApplication('main') #29 {main}"