Error in query number 1
We are sorry, but an error occurred while generating this page. You should contact the site's administrator.
Error in function call sqlpage.run_sql('_post_meta.sql').
Expected sqlpage.run_sql(sql_file_path, variables)
Backtrace
run_sql: unable to run "_post_meta.sql"
In "_post_meta.sql": The following error occurred while executing an SQL statement:
error communicating with database: connection aborted
The SQL statement sent by SQLPage was:
SELECT get_translation(CAST($1 AS TEXT), 'meta.spoken_languages') AS title, 'microphone-2' AS icon, COALESCE((SELECT string_agg(COALESCE(get_translation(CAST($1 AS TEXT), lang), lang), ', ') FROM (SELECT jsonb_array_elements_text(meta_value -> 'spoken_languages') AS lang FROM post_meta AS pm WHERE pm.post_id = CAST($2 AS TEXT)::INT AND pm.meta_key = 'meta' AND jsonb_typeof(pm.meta_value -> 'spoken_languages') = 'array') AS "spoken languages"), get_translation(CAST($1 AS TEXT), 'table.language_not')) AS description FROM post_meta WHERE post_id = CAST($2 AS TEXT)::INT AND meta_key = 'meta' AND meta_value ? 'spoken_languages' AND jsonb_typeof(meta_value -> 'spoken_languages') = 'array' HAVING COUNT(*) > 0;
Note: You can hide error messages like this one from your users by setting the 'environment' configuration option to 'production'.