PDA

View Full Version : Potential Bug...


familyman
04-21-2006, 01:52 AM
Tonight I received an email from someone having difficulty leaving a comment on one of my images. After some correspondance it turns out that he uses Internet Explorer 7 Beta. The error message said something about a "parent id incorrect". Just wanted to give the developing gurus a heads up.

Bruce
www.smartblur.com

P.S. I use PP 1.5 Beta

Connie
04-21-2006, 06:06 AM
Hi,

thanks for the info!
But as I have no IE 7, can you please give us the detailed error message?

Does the comment works with IE 6? I don't have that also ;=(

raminia
04-21-2006, 07:06 AM
It's not one of the built-in error messages. Where did you get this?
Which template you are using?

Joe[y]
04-21-2006, 07:49 AM
hi. i just made a comment with IE7 on your latest image ;)

GeoS
04-21-2006, 12:14 PM
If you dons send parent_id as hidden field of comment form that means that you have bug but in your template!!

blinking8s
04-21-2006, 12:25 PM
IE 7 beta has some issues, we'll have to watch it carefully, MS already screwed over the lives of half the flash developers out there for the next few weeks at least...

When I get home I'll test on IE7 and see if I recieve the same errors

GeoS
04-21-2006, 12:27 PM
Other reason can be referrer transfer issue.

If there is no parent_id inside form and no correct referrer then it wont work just like it should.

DerPatrick
05-31-2006, 10:45 AM
My browser is Firefox 1.5.0.3 (EN) and in my comment-template is
<input type='hidden' name='parent_id' value='<IMAGE_ID>' />
<input type='hidden' name='parent_name' value='<IMAGE_NAME>' />
corect inside (i hope it is correct)

But after comment i get the following error message " parent_id is not correct! "

Any Idea what could be wrong?

Thank you

EDIT: The Comment are correct written to the Database (i can see them in Admin) - but what about the errormessage (or bug?)

EDIT2: Now it works - i don't know why and dont't know why it sometimes don't work.

imagefixation
01-23-2007, 09:20 PM
I'm having the same error message when people try to make comments "parent_id is not correct!"

it happens in IE7 and firefox, I don't think it's a browser issue. I've reloaded the comment_template and tried a few different versions (right now I am using the simple template version).

www.imagefixation.com

edit: I did a google search and found the following script here (http://www.phpxref.com/xref/pixelpost/nav.html.gz?index.php.source.html.gz)

// $parent_id $parent_id = $_POST['parent_id'];

716 $parent_id = isset($_POST['parent_id']) ? $_POST['parent_id'] : "";
717 if (eregi("\r",$parent_id) || eregi("\n",$parent_id)){ die("No intrusion! ?? :(");}
718 if (!is_numeric($parent_id))
719 die('parent_id is not correct!');

I have no idea what it means can anyone help me translate?

it seems to be associated with v 1.4.3 but I am using 1.5

also, does the fact that the comment screen is a popup maybe have something to do with it?

www.imagefixation.com

Dennis
01-24-2007, 05:59 AM
That code gives the parent_id which is the image_id so the script knows the picture the comment belongs to.

It has to be a number otherwise the script fails with the error message 'parent_id' is not correct. So what is happening is something changed in the parent_id field.

I've tested your blog and was able to comment on your Shell picture using Firefox.

GeoS
01-26-2007, 12:28 PM
It is related to empty referer http header thanks to which probably it fails with correct redirection.