No Comment! (Now Fixed!)

Friday · 21 Sep 07 · 09:37 AM IST | Posted by Karthik | Category: Tech

UPDATE [22 Sep / 18:58]: Thanks to Varun's experimentation, the problem is fixed.  Go ahead, post as many comments as you want now...  For some reason, whenever a http:// specifier was present in any of the text boxes in the form, it wouldn't get passed.  So Varun wrote a small script to take out the characters even if they were present.  So that fixed the problem, and the upside is that there is no difference in the way users interact with the site.

There's been a weird problem the past few days on the site — that is, the inability to post comments!  This really is an irritating situation, more so, because I am not sure where exactly the problem is (going to have to try debugging tonight).

Any comment on this site is captured in a form which sends the data to a PHP script via the POST method.  For the past few days, any attempt to do this results in a HTTP 403 error, and the form doesn't get submitted.  This is strange because the same script has been working fine for over a year now (and works on the local computer just fine).  I thought it was a permissions problem, and changed permissions on the script, but that didn't work either.  On raising a helpdesk ticket on my host's site, I got a response saying that it is a scripting error, as the script was accessible through the browser.  And yes, if you try that, it does work, which leads me to think that there is some problem with submitting POST data.

After coming home from work tonight I am going to try to handle the form via GET and see if that works (most likely, it will — but it's not a good way of doing things).  I'll also try uploading some dummy forms and try to find out what exactly is causing the problem.  It seems like such a simple thing, but as of now I can't figure out what is wrong (the installation of phpMyAdmin on the site, which also submits POST data to PHP scripts works fine).  If anyone reading this can help me out on this, it would be greatly appreciated!  In the mean time, please bear with this bug.

Oh, and the response I got on helpdesk ticket advised me to "contact the programmer of the site", which is funny considering that I am the programmer...

2 comment(s) for this post.

Comments for this News Post

#1
22 Sep 07 · 05:47 PM
Comment by user Karthik
Thanks to a bit of tinkering that Varun did, the comments problem should be fixed now. This is a test :)
#2
23 Sep 07 · 09:18 AM
Comment by user Pablo
hehe, awesome that its fixed now :-)
Recent Comments
Recent Posts
Latest Doom Map
Dark Fate 2 — a Doom II map by Karthik Abhiram

Dark Fate 2 is a singleplayer level for Doom II, replacing MAP01.  It's a small-sized hellish level — and there's a walkthrough video as well.

Popular Videos
Other Destinations
Favourite Posts
Some Statistics
  • news posts two · 173
  • news posts one · 301
  • comments · 1168
  • drawings · 77
The Author
Karthik

Karthik Abhiram

27-year old Taurean (birthday 15-May-82), Assistant Manager - HR at Tata Consultancy Services Ltd in Hyderabad, India.  Previously, did Post Graduate Diploma in Management from T A Pai Management Institute (2003-05) and before that, Computer Science Engineering from Sree Nidhi Institute of Science and Technology (1999-2003).

Email: karthik82 -AT- gmail -DOT- com
orkut profile
Facebook profile
YouTube channel
deviantART page
Google Reader Shared Items

Disclaimer: The views expressed on this site are purely my own.

Warning: This site occasionally contains profanity.

Creative Commons License