I don't know if anyone else had had this problem or not, but I had not been able to get commenting to work properly for the user. If someone submitted a comment, it would get put into moderation correctly. BUT, after clicking the Submit button, the user wouldn't be taken anywhere useful -- instead, the browser would display a message saying "Too many redirects" or some variation thereof. (Firefox helpfully explained that the page was trying to reload itself over and over.)
After quite a bit of clumsy poking (remember, I am NOT a programmer!) in the "plog-comment.php" file, I isolated the problem . It's in the following line of code, which is supposed to build a URL that directs the user back to the original picture page:
Later on, a "location:$redirect" statement sends the user to the URL built and stored in the $redirect variable.
By including an "echo" statement farther down the page, I was able to find that the URL wasn't being built correctly; it was linking back to the comment module instead of the original picture page.
As it happens, though, all picture pages within Plogger have the same URL format:
where the "000" is replaced with the ID number of the individual picture. In the original line of code, that ID number is stored within the "$parent_id" variable.
Now, if Mike were fixing this, he'd have to make it all sanitary and location-independent and so on. But I don't! Instead, I just commented out the original "problem" line in the "plog-comment.php" file, which you'll recall was...
(The . between the URL text and the $parent_id variable is you combine text strings together in PHP. Something new I learned today!)
So now, when a user submits a comment, the line above builds a URL which points to the original picture page by combining my hard-coded base URL and the picture's ID number.
I've been having this issue for awhile now. Saw several posts referencing the issue but no fix. Implemented your suggestion and now I'm problem free. Thanks!
Although this thread is a tad old: this tip worked great for me. Somehow comments on my site stopped working the other day, perhaps it's due to my webhost upgrading from PHP4 to PHP5. This workaround fixed it for me. Thank you very much :)
Very cool, jlw. I noticed that most of the sites around the internet - that are using Plogger - are experiencing this problem. I don't know how this problem got by the developers, but I thank you for this temporary, interim fix.
Great stuff for this it seems to work - or partly work. When the url reloads the image doesnt reload back up unless you manually refresh the page. is that correct? In fact it seems that if you navigate away from the page and go back to it it still doesnt show the image unless you refresh a few times. Any ideas?