Website response broken when first sign up

Hello. I just signed up, but I got an issue. I think I should report it here.

When I got the email verification link, I clicked it, and a new page came out and told me “VERIFICATION SUCCESSFUL”, but the next thing, I click the link which redirect to the main page, something wrong happened:

snap1267

Then I cleared the chrome’s cookie and tried to log in again and everything worked.

I think this is a bug, so I resigned up using another email, and I’m sure this problem always came up when somebody signs up.

Here is some information I collected. I wish those would help.

Response Header:

Cache-Control: no-store, no-cache, must-revalidate
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 1492
Content-Type: text/html; charset=UTF-8
Date: Sun, 26 Aug 2018 07:34:33 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive: timeout=5, max=97
Pragma: no-cache
Server: Apache
Vary: Accept-Encoding

Response Body:

{"page":"Home | Gensokyo Radio","content":"\r\n\r\n<div id=\"mediacontainer\">\r\n    <img src=\"\/images\/assets\/gr7-video-cover.png\" style=\"position: absolute; top:0px; left: 0px; object-fit:cover;\" \/>\r\n    <video autoplay src=\"\/images\/assets\/DSC_0319_4.webm\" loop=\"true\" \/>\r\n<\/div>\r\n\r\n<div id=\"buffer-full\">\r\n\r\n    <div class=\"subheading\">places to find us<\/div>\r\n\r\n    <div class=\"home_container3short\">\r\n        <a target=\"_blank\" href=\"https:\/\/twitter.com\/GensokyoRadio\"><img class=\"cover\" src=\"\/images\/assets\/gr7-twitter.png\" \/><\/a>\r\n    <\/div>\r\n    <div class=\"home_container3short\">\r\n        <a target=\"_blank\" href=\"https:\/\/discord.gg\/fqXcs9b\"><img class=\"cover\" src=\"https:\/\/discordapp.com\/api\/guilds\/95657260969103360\/embed.png?style=banner2\" \/><\/a>\r\n    <\/div>\r\n    <div class=\"home_container3short\">\r\n        <a target=\"_blank\" href=\"https:\/\/www.facebook.com\/gensokyoradio\/\"><img class=\"cover\" src=\"\/images\/assets\/gr7-facebook.png\" \/><\/a>\r\n    <\/div>\r\n\r\n    <div class=\"subheading\">featured articles<\/div>\r\n\r\n    \r\n                <a href=\"\/news\/2018\/05\/a-touhou-concert-event-in-america\/\" class=\"anav\" title=\"A Touhou Concert Event in America?\">\r\n                    <div id=\"story_1-1-1\" class=\"home_container3\">\r\n                        <img class=\"cover\" src=\"\/images\/assets\/news\/blur\/jp-fan-circles-in-america-sm.jpg\">\r\n                        <div class=\"home_storyoverlay\">\r\n                            <div class=\"home_storytype\">news<\/div>\r\n                            <div class=\"home_storycontent heading\">A Touhou Concert Event in America?<\/div>\r\n                        <\/div>\r\n                    <\/div><\/a>\r\n                \r\n                <a href=\"\/news\/2018\/02\/artwork-search-2018\/\" class=\"anav\" title=\"Artwork Search 2018\">\r\n                    <div id=\"story_1-1-1\" class=\"home_container3\">\r\n                        <img class=\"cover\" src=\"\/images\/assets\/news\/blur\/gr_artwork_search_2018_sm.jpg\">\r\n                        <div class=\"home_storyoverlay\">\r\n                            <div class=\"home_storytype\">news<\/div>\r\n                            <div class=\"home_storycontent heading\">Artwork Search 2018<\/div>\r\n                        <\/div>\r\n                    <\/div><\/a>\r\n                \r\n                <a href=\"\/news\/2018\/01\/top-100-touhou-songs-of-2017\/\" class=\"anav\" title=\"Top 100 Touhou Songs of 2017\">\r\n                    <div id=\"story_1-1-1\" class=\"home_container3\">\r\n                        <img class=\"cover\" src=\"\/images\/story\/blur\/20170905_155332.jpg\">\r\n                        <div class=\"home_storyoverlay\">\r\n                            <div class=\"home_storytype\">news<\/div>\r\n                            <div class=\"home_storycontent heading\">Top 100 Touhou Songs of 2017<\/div>\r\n                        <\/div>\r\n                    <\/div><\/a>\r\n                \r\n                <a href=\"\/news\/2018\/01\/new-shirts-mugs-available-for-pre\/\" class=\"anav\" title=\"New Shirts & Mugs Available for Pre-Order\">\r\n                    <div id=\"story_1-1-1\" class=\"home_container3\">\r\n                        <img class=\"cover\" src=\"https:\/\/gensokyoradio.net\/images\/assets\/store\/blur\/digital-miko-shirt-mug-combo.png\">\r\n                        <div class=\"home_storyoverlay\">\r\n                            <div class=\"home_storytype\">news<\/div>\r\n                            <div class=\"home_storycontent heading\">New Shirts & Mugs Available for Pre-Order<\/div>\r\n                        <\/div>\r\n                    <\/div><\/a>\r\n                \r\n                <a href=\"\/news\/2017\/12\/journey-to-gensokyo\/\" class=\"anav\" title=\"Journey to Gensokyo\">\r\n                    <div id=\"story_1-1-1\" class=\"home_container3\">\r\n                        <img class=\"cover\" src=\"\/images\/story\/blur\/20170905_155332.jpg\">\r\n                        <div class=\"home_storyoverlay\">\r\n                            <div class=\"home_storytype\">news<\/div>\r\n                            <div class=\"home_storycontent heading\">Journey to Gensokyo<\/div>\r\n                        <\/div>\r\n                    <\/div><\/a>\r\n                \r\n                <a href=\"https:\/\/www.patreon.com\/lunarspotlightmedia\" target=\"_blank\" title=\"LunarSpotlight Media on Patreon\">\r\n                    <div id=\"story_1-1-1\" class=\"home_container3\">\r\n                        <img class=\"cover\" src=\"\/images\/assets\/lsm-ad-1.png\">\r\n                    <\/div><\/a>\r\n    <br \/><br \/>\r\n\r\n    <!--\r\n    <div class=\"home_stats3\">\r\n        <div class=\"topic\" style=\"padding-bottom:10px;\">top countries this week<\/div>\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_flag\" src=\"\/images\/assets\/flags-large\/us.png\" \/>\r\n                <div class=\"stats_rank\">#1<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">United States<\/div>\r\n            <div class=\"stats_time\">2 days, 10 hr, 33 min<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_flag\" src=\"\/images\/assets\/flags-large\/ru.png\" \/>\r\n                <div class=\"stats_rank\">#2<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">Russia<\/div>\r\n            <div class=\"stats_time\">2 days, 2 hr, 52 min<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_flag\" src=\"\/images\/assets\/flags-large\/jp.png\" \/>\r\n                <div class=\"stats_rank\">#3<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">Japan<\/div>\r\n            <div class=\"stats_time\">1 day, 23 hr, 24 min<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_flag\" src=\"\/images\/assets\/flags-large\/gb.png\" \/>\r\n                <div class=\"stats_rank\">#4<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">United Kingdom<\/div>\r\n            <div class=\"stats_time\">1 day, 4 hr, 13 min<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_flag\" src=\"\/images\/assets\/flags-large\/ca.png\" \/>\r\n                <div class=\"stats_rank\">#5<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">Canada<\/div>\r\n            <div class=\"stats_time\">23 hr, 09 min<\/div>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <div class=\"home_stats3\">\r\n        <div class=\"topic\" style=\"padding: 0px 0px 10px 10px;\">top listeners this week<\/div>\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/19SiJLDGCs.jpg\" \/>\r\n                <div class=\"stats_rank\">#1<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">Wanamingo<\/div>\r\n            <div class=\"stats_time\">10 hr, 53 min<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/ap13ZNSfFE.png\" \/>\r\n                <div class=\"stats_rank\">#2<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">DMJ654<\/div>\r\n            <div class=\"stats_time\">9 hr, 24 min<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/21Wly0KG3b.jpg\" \/>\r\n                <div class=\"stats_rank\">#3<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">Kissone Kinoma<\/div>\r\n            <div class=\"stats_time\">6 hr, 19 min<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/AZKeHPpzcs.jpg\" \/>\r\n                <div class=\"stats_rank\">#4<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">Pimgd<\/div>\r\n            <div class=\"stats_time\">5 hr, 47 min<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/jGYwGMcWh.png\" \/>\r\n                <div class=\"stats_rank\">#5<\/div>\r\n            <\/div>\r\n            <div class=\"stats_name\">Eliteazn<\/div>\r\n            <div class=\"stats_time\">5 hr, 21 min<\/div>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <div class=\"home_stats3\">\r\n        <div class=\"topic\" style=\"padding: 0px 0px 10px 10px;\">recent song ratings<\/div>\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/UUPV2vWJbl.jpg\" \/>\r\n            <\/div>\r\n            <div class=\"stats_song\">Song name here<br \/>Album name here<br \/>4 stars<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/UUPV2vWJbl.jpg\" \/>\r\n            <\/div>\r\n            <div class=\"stats_song\">Song name here<br \/>Album name here<br \/>4 stars<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/UUPV2vWJbl.jpg\" \/>\r\n            <\/div>\r\n            <div class=\"stats_song\">Song name here<br \/>Album name here<br \/>4 stars<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/UUPV2vWJbl.jpg\" \/>\r\n            <\/div>\r\n            <div class=\"stats_song\">Song name here<br \/>Album name here<br \/>4 stars<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"home_container2\">\r\n            <div class=\"stats_image\">\r\n                <img class=\"stats_avatar\" src=\"\/images\/assets\/avatars\/UUPV2vWJbl.jpg\" \/>\r\n            <\/div>\r\n            <div class=\"stats_song\">Song name here<br \/>Album name here<br \/>4 stars<\/div>\r\n        <\/div>\r\n    <\/div>\r\n    -->\r\n\r\n<\/div>"}

See that body? Html is expected but a json string is received.

Cookie:

Cookie: PHPSESSID=1m0dot21km82h22e15s8fefns0; _ga=GA1.2.1417740818.1535268755; _gid=GA1.2.1105147502.1535268755; _gat_gtag_UA_4885042_5=1

Wrong cookie is sent, and this caused the problem.

I’m a Web Engineer so I know what to do: ‘Clear the cookie and try to re-login’, and I think not everyone knows what to do. Please fix it.

Hi there, catscarlet!

Thanks for taking the time to report this issue.

I took a look at the link that you click on to get back to the homepage from the success page. For most of the inner-website navigation, there is a class which tells the next page where the user came from. That class was missing from the link, and once it was added, the issue was resolved.

Using Referrer to choose which type to generate, that is a fascinating idea.

Anyway, good job.