PDA

View Full Version : problem with publishing hardware review


syzygy
28th August 2002, 11:29 PM
I'm having a problem publishing a hardwrae review.

I completed my review but missed out the developer URL - I then got an error message and had to go back and start again from scratch (can you fix it so that the original content is retained when there is an error liek this?)

When I rewrote my review and submitted it, including the URL, I got this error:

Warning: Variable passed to each() is not an array or object in /home/sites/home/web/_includes/search.php on line 70

There are now two blank hardware reviews that I assume are the result of my two failed attempts...

Thanks for any help with this.

SyZyGy

hamageddon
29th August 2002, 09:54 AM
hiyagain, mate.

that was a scanny, right?
i can't edit or erase it, that'll be exhale job i fear....

syzygy
29th August 2002, 02:07 PM
yep - the two null reviews are for a Askey scan converter

I tried to delete them but they are in a limbo state (they exist as links but when you click them it tells you they don't exist...)

SyZyGy

eXhale
29th August 2002, 03:39 PM
OK I deleted them, "invisible" links are normal when there is an error during submission. The error on the submission isn't normal though :) Been looking at the code and I see nothing wrong, besides other members have been successfully submitting hardware reviews... Did you copy/save your review before posting it? If so, could you email it to me so that I try to post it myself?

syzygy
29th August 2002, 04:22 PM
I think the problem was that I missed the URL field out. I then got an error page saying that required information was missing.

When I clicked my back button there was a new blank review and when I filled this in, I got another error.

I suspect the problem has to do with how you handle required fields being empty. It seemed like it half submitted my review, creating an entry for it but not populating it and then when I went back and tried again it failed because the entry had already been created once...

I don't know your scripts so I'm not sure how much work would be involved in in doing this (I also don't know PHP as my work currently requires me to use MS technologies) but the way I would handle required fields being empty is to return the user to entry form, with the missing fields marked with an error message.

I have the review saved on my home machine, so I'll try to submit it again when I get home. If it fails again, I'll email it to you.

Cheers,

SyZyGy

eXhale
29th August 2002, 05:40 PM
Originally posted by syzygy
I don't know your scripts so I'm not sure how much work would be involved in in doing this (I also don't know PHP as my work currently requires me to use MS technologies) but the way I would handle required fields being empty is to return the user to entry form, with the missing fields marked with an error message.
Yeah that's the best way to handle forms and that's how I do it on some of my sites... Unfortunately this require much more code so it's something I avoided for now (until I find a way to automate this process). In the meanwhile, it's best to always save the text before submitting it... just in case.

syzygy
29th August 2002, 09:45 PM
The review has not been successfully posted

Cheers,

SyZyGy