Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

products reviews empty


Recommended Posts

hello there,

for a couple of days is occuring a strange thing in my site. Someone or something is putting reviews on every products (more than 500), but without name neither text neither rating.

The strange thing is that you have to fill those 3 fields (if you don't there is an alert wich prevent to go on). That made me think that it acted directly on the DB so i changed the password but that haven't changed anything.

Other strange thing is that i can see americans IP (i'm based in Spain, the site is in spanish) using the product_reviews_write.php pages but the products_id's doesn't fit the reviews that appear...

This is not really a problem because i have to aprove a review before it can be seen, but it's very annoying because i have plenty of reviews to approve and i could loose a "real" one. Besides it scares me not understanding what's happening.


I still use a older version of OSC, i'm working on changing to the last one, could it be the reason? Does anyone passed through this before? (i made a search in the forum but i haven't found anything)


Any help/comment will be apreciated.


see you



Link to comment
Share on other sites

hello me :P


well, just in case it could help someone one day, here is how i solved it.


The IP appears to be a robot. I guess it works like a non javascript enabled browser that's why it could post reviews without name nor text nor rating.


So to prevent more blank reviews i add a piece of code to check that there is something before putting it in the DB. Here is the code:


Line 25,


if ($valid_product == true) { // We got to the process but it is an illegal product, don't write


i added:

if ((isset($HTTP_POST_VARS["customers_firstname"]))&&(isset($HTTP_POST_VARS["review"]))&&(isset($HTTP_POST_VARS["rating"]))){


and of course close the { on line 37.

that's all folks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...