Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[57P01]: Admin shutdown: 7 FATAL: terminating connection due to administrator command CONTEXT: SQL statement "select n.title, t.name rubric_name, tp.name parent_rubric_name, sp.title project_title, s.title story_title ,coalesce(viewed,0)::bigint --views -- ,coalesce(cmt.cmts,0) -- comments ,api.get_article_comments_count(p_nid) ,coalesce(lk,0) ,coalesce(dslk,0) ,paid_range is not null and current_timestamp <@ paid_range -- is_paid ,coalesce(ptni.tarif_name,ptn.tarif_name) -- tarif_name ,nt.price -- cost numeric , (not (paid_range is not null and current_timestamp <@ paid_range) or --current_timestamp <@ ns.valid_range or exists ( select 1 from paid.news_subscribes where universal_id=p_universal_id and current_timestamp <@ valid_range and activated) or nsaf.universal_id is not null or nsa.universal_id is not null ) from node n -- left join paid.paid_nodes pn on pn.nid=n.nid and n.type='article' left join paid.news_tarif_names ptn on ptn.id=pn.tarif_name_id left join paid.news_tarif_names_i18n ptni on ptni.id=ptn.id and ptni.lang=n.language left join paid.news_tarifs nt on nt.tarif_name_id=ptn.id and nt.valid_range @> pn.paid_range -- --left join (select 'ru'::varchar p_lang) l on 1=1 left join field_data_field_rubric r on r.entity_id=n.nid and r.language='und' and r.deleted=0 and r.bundle=n.type and r.delta=0 left join field_data_field_projects p on p.entity_id=n.nid and p.bundle='article' and p.entity_type='node' and p.language='und' and p.deleted=0 and p.delta=0 left join node sp on sp.nid=p.field_projects_value and sp.type='projects' left join field_data_field_story fs on fs.entity_id=n.nid and fs.bundle='article' and fs.entity_type='node' and fs.language='und' and fs.deleted=0 and fs.delta=0 left join node s on s.nid=fs.field_story_value and s.type='stories' left join api.get_taxonomy_i18n(2,v_language) t on t.tid=r.field_rubric_tid left join ( select td.tid,coalesce(t.translation,td.name)::varchar "name",mn.field_menu_name_value menu_name from taxonomy_term_data td left join locales_source s on s.textgroup='taxonomy' and s.location=format('taxonomy:term:%s:name',td.tid) left join locales_target t on t.lid=s.lid and t.language=v_language left join taxonomy_term_hierarchy h on h.tid=td.tid left join field_data_field_rubric_type rt on rt.entity_id=td.tid and rt.language='und' and rt.deleted=0 and rt.bundle='rubrics' and rt.delta=0 left join field_data_field_menu_name mn on mn.entity_id=td.tid and mn.language='und' and mn.deleted=0 and mn.bundle='rubrics' and mn.delta=0 ) tp on tp.tid=t.ptid left join node_views nv on nv.nid=n.nid left join ( select nid, sum(likes) lk, sum(dislikes) dslk from ap_node_likes group by 1 ) nl on nl.nid=n.nid -- left join paid.news_subscribes ns on ns.universal_id=p_universal_id left join paid.news_special_access nsaf on nsaf.universal_id=p_universal_id and nsaf.nid is null left join paid.news_special_access nsa on nsa.universal_id=p_universal_id and nsa.nid = p_nid where n.type='article' and n.status>0 and n.nid=p_nid -- select * from node_views" PL/pgSQL function api.get_article_info(bigint,integer) line 9 at RETURN QUERY SSL connection has been closed unexpectedly: select :nid p_nid, ai.*,api.get_likes_stat(:uid,:nid) p_liked from api.get_article_info(:nid,:uuid) ai; Array ( [:nid] => 312154 [:uid] => 0 [:uuid] => ) in ap_utils_get_article_info() (line 227 of /var/www/asia-dev/sites/all/modules/asiaplus/asiaplus_utils/asiaplus_utils.module).

Additional

PDOException: SQLSTATE[HY000]: General error: 7 no connection to the server: SELECT column_name, data_type, column_default FROM information_schema.columns WHERE table_schema = :schema AND table_name = :table AND (data_type = 'bytea' OR (numeric_precision IS NOT NULL AND column_default LIKE :default)); Array ( [:schema] => public [:table] => watchdog [:default] => %nextval% ) in dblog_watchdog() (line 163 of /var/www/asia-dev/modules/dblog/dblog.module).