| Verifique os erros abaixo: | -
actionview::templateerror (pg::connectionbad: connection is closed: select * from "web banner" where (web banner.secao id = 1536 and web banner.publicado = 't' and web banner.exibir somente logado = 'f') order by ordem, web banner.descricao limit 10000) on line #2 of app/views/home/construtor/ secao.html.erb:
1: <% if secao.numero secoes.zero? -%>
2: <%= processar componentes(:secao id => secao.id) -%>
3: <% else -%>
4: <% secao.secoes.each do |secao| -%>
5: <% if not secao.somente pagina inicial? or params[:url].eql? 'index' %>
config/initializers/01 postgres improved.rb:147:in `rescue in select'
config/initializers/01 postgres improved.rb:137:in `select'
app/models/web/banner.rb:442:in `select'
lib/fusion/web/helpers/componentes helper.rb:5:in `processar componentes'
app/views/home/construtor/ secao.html.erb:2
app/views/home/construtor/ conteudo.html.erb:3:in `block in run erb app47views47home47construtor47 conteudo46html46erb locals conteudo fundo object'
app/views/home/construtor/ conteudo.html.erb:1
app/views/home/construtor/ fundo.html.erb:3:in `block in run erb app47views47home47construtor47 fundo46html46erb locals fundo object tipo'
app/views/home/construtor/ fundo.html.erb:1
lib/fusion/web/helpers/construtor helper.rb:19:in `processar corpo'
app/views/layouts/home.html.erb:55
lib/fusion/web/construtor pagina.rb:121:in `block in processar pagina responsivo'
lib/fusion/web/construtor pagina.rb:120:in `processar pagina responsivo'
lib/fusion/web/construtor pagina.rb:12:in `carregar pagina'
app/controllers/home controller.rb:377:in `model transactions'
lib/fusion/rack encoding.rb:10:in `call'
puma (2.8.2) lib/puma/configuration.rb:71:in `call'
puma (2.8.2) lib/puma/server.rb:490:in `handle request'
puma (2.8.2) lib/puma/server.rb:361:in `process client'
puma (2.8.2) lib/puma/server.rb:254:in `block in run'
puma (2.8.2) lib/puma/thread pool.rb:92:in `call'
puma (2.8.2) lib/puma/thread pool.rb:92:in `block in spawn thread'
| |
Verifique os erros abaixo:
ActionView::TemplateError (PG::ConnectionBad: connection is closed: SELECT * FROM "web_banner" WHERE (web_banner.secao_id = 1536 AND web_banner.publicado = 't' AND web_banner.exibir_somente_logado = 'f') ORDER BY ordem, web_banner.descricao LIMIT 10000) on line #2 of app/views/home/construtor/_secao.html.erb:
1: <% if secao.numero_secoes.zero? -%>
2: <%= processar_componentes(:secao_id => secao.id) -%>
3: <% else -%>
4: <% secao.secoes.each do |secao| -%>
5: <% if not secao.somente_pagina_inicial? or params[:url].eql? 'index' %>
config/initializers/01_postgres_improved.rb:147:in `rescue in select'
config/initializers/01_postgres_improved.rb:137:in `select'
app/models/web/banner.rb:442:in `select'
lib/fusion/web/helpers/componentes_helper.rb:5:in `processar_componentes'
app/views/home/construtor/_secao.html.erb:2
app/views/home/construtor/_conteudo.html.erb:3:in `block in _run_erb_app47views47home47construtor47_conteudo46html46erb_locals_conteudo_fundo_object'
app/views/home/construtor/_conteudo.html.erb:1
app/views/home/construtor/_fundo.html.erb:3:in `block in _run_erb_app47views47home47construtor47_fundo46html46erb_locals_fundo_object_tipo'
app/views/home/construtor/_fundo.html.erb:1
lib/fusion/web/helpers/construtor_helper.rb:19:in `processar_corpo'
app/views/layouts/home.html.erb:55
lib/fusion/web/construtor_pagina.rb:121:in `block in processar_pagina_responsivo'
lib/fusion/web/construtor_pagina.rb:120:in `processar_pagina_responsivo'
lib/fusion/web/construtor_pagina.rb:12:in `carregar_pagina'
app/controllers/home_controller.rb:377:in `model_transactions'
lib/fusion/rack_encoding.rb:10:in `call'
puma (2.8.2) lib/puma/configuration.rb:71:in `call'
puma (2.8.2) lib/puma/server.rb:490:in `handle_request'
puma (2.8.2) lib/puma/server.rb:361:in `process_client'
puma (2.8.2) lib/puma/server.rb:254:in `block in run'
puma (2.8.2) lib/puma/thread_pool.rb:92:in `call'
puma (2.8.2) lib/puma/thread_pool.rb:92:in `block in spawn_thread'