Switching design "502 Bad Gateway" error

When i try to switch design i get 

502 Bad Gateway

any advise?

  • 557
  • More
Replies (20)
    • Don’t switch! 😬

        • I believe 502 is a server issue so maybe the server isn't reading a file for design correctly

          • Hello Will, do you have this problem on all designs, or only on a custom design?

            • Hello Will, do you have this problem on all designs, or only on a custom design?

              I can only use one design

              • Hello Will Monte !

                It may not relate to UNA directly. You need to check it with another Internet-connection. Also, remind me your UNA studio access via Messenger.

                • Hello Will Monte !

                  It may not relate to UNA directly. You need to check it with another Internet-connection. Also, remind me your UNA studio access via Messenger.

                  Sending it now

                  • upstream sent too big header while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: xxxxxx.com, request: "GET /index.php?skin=protean&mix=3 HTTP/1.1"

                    • So in this case usually advised to ad the buffer site. It will look like:

                      server {

                        listen        80;

                        server_name   host.tld;

                        location / {

                          proxy_pass       http://upstream;

                          ...

                          proxy_buffer_size          128k;

                          proxy_buffers              4 256k;

                          proxy_busy_buffers_size    256k;

                        }

                      }

                      • So in this case usually advised to ad the buffer site. It will look like:

                        server {

                          listen        80;

                          server_name   host.tld;

                          location / {

                            proxy_pass       http://upstream;

                            ...

                            proxy_buffer_size          128k;

                            proxy_buffers              4 256k;

                            proxy_busy_buffers_size    256k;

                          }

                        }

                        Will this code fix my switching of designs?

                        • For the mentioned error in your log, this is the first fix.

                          • For the mentioned error in your log, this is the first fix.

                            I observed that if user is logged out of site the changing of templates works, however if user logs in, switching of templates don't work. They still receive 502 gateway error, any idea? 

                            • What info in log do you have on these cases?

                              • PHP Notice:  Undefined index: disable_comments in /home/xxxxxx/public_html/modules/boonex/posts/classes/BxPostsModule.php on line 60" while reading response header from upstream, client: xx.xx.xx.xx, server: xxxxxx.com, request: "GET /cmts.php?sys=bx_posts&id=302&cmt_id=246/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xxxxxx.com"

                                PHP Notice:  Undefined index: content_id in /home/xxxxxx/public_html/modules/boonex/albums/classes/BxAlbumsCmtsMedia.php on line 31" while reading response header from upstream, client: xx.xx.xx.xx, server: xxxxxx.com, request: "GET /cmts.php?sys=bx_albums_media&id=394&cmt_id=8/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xxxxxx.com"

                                upstream sent too big header while reading response header from upstream, client: xx.xx.xx.xx, server: xxxxxx.com, request: "GET /?skin=protean&mix=3 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xxxxxx.com"

                                • Question: what is different between switching templates for guest versus member?

                                  • There is no difference - the "switch" only sends to the new URL with the proper design. Also, the logged user has more connected blocks and info etc. But it should be OK if you have enough memory_limit param and applied changes in your config of Nginx.

                                    • I increased the buffer size from 128 to 256 and i'm still getting 502 error. Please advise before i snap

                                      • My hosting provider fixed the issue and it is now working.

                                        • By what way they did it?

                                          • Geek Girl said she added fast cgi buffers to the http block; whatever that means 😀

                                            Login or Join to comment.