PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 19th, 2006, 08:31 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 59
MySql errors / Spam robots

Hi,

I get 100+ mails of these errors every day. Is there anything I can do about this?

I set $debug=0; in my config file, but still get the mails.

!! The url in the error is chanced every time !!

I use version 5.3 (VB).

------------------------

An error was encountered during execution of the query:

SELECT c.id,c.username,c.userid,c.date,c.rating,c.comment,c.cat,c.photo,p.bigimage,p.cat,p.userid FROM pp_comments c
LEFT JOIN pp_photos p ON p.id=c.photo WHERE c.comment != '' AND c.cat IN (http://xxxempire.net/viagra/3/lowest_prices_viagra.html) OR ((c.comment LIKE "% http://xxxempire.net/viagra/3/lowest_prices_viagra.html%") OR (c.comment LIKE "http://xxxempire.net/viagra/3/lowest_prices_viagra.html%")) AND (c.username LIKE '%lowest prices viagra%')

The query returned with an errorcode of:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '://xxxempire.net/viagra/3/lowest_prices_viagra.html) OR ((c.comment LIKE "% htt' at line 2

If you need assistence or feel this is a 'bug'; please report it to our support forums at: http://www.photopost.com/members/forum/f66/index.html

To turn off these emails, set $debug=0 in your config-inc.php file.


---------------
cpmike is offline   Reply With Quote
Old June 21st, 2006, 11:17 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 59
Hi,

The problems getting bigger. The search requests are every few minutes now. The server performance is not so good the last couple of days.


SELECT c.id,c.username,c.userid,c.date,c.rating,c.comment,c.cat,c.photo,p.bigimage,p.cat,p.userid FROM pp_comments c
LEFT JOIN pp_photos p ON p.id=c.photo WHERE c.comment != '' AND c.cat IN (http://xxxempire.net/viagra/vaquerax...pplements.html) OR ((c.comment LIKE "% http://xxxempire.net/viagra/vaquerax_viagra_supplements.html%") OR (c.comment LIKE "http://xxxempire.net/viagra/vaquerax_viagra_supplements.html%")) AND (c.username LIKE '%vaquerax viagra supplements%')

What can I do about this?
cpmike is offline   Reply With Quote
Old June 21st, 2006, 02:47 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
well I would need to do some extensive testing but you can try adding the code in bold in search.php

Code:
Content visible to verified customers only.
the easiest thing is to do a search on the net and place a robots txt file on your site to now allow robots
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 3rd, 2006, 02:20 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 59
Sorry for my late reaction.

The extra code in search.php is working fine. No more errors.

After i tested the extra code i also create a robot.txt file just to make sure
cpmike is offline   Reply With Quote
Old July 3rd, 2006, 08:30 AM   #5 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
There is a better way that won't break searching multiple categories; I've updated the build with a new search.php which you can download and upload to your site which has a minor tweak to deal with malformed URLs as to not pop up an error message.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql errors jaffy Photopost Pro Installation & Upgrades 1 November 18th, 2005 06:29 PM
mySQL errors robinsf Photopost Pro Installation & Upgrades 4 May 26th, 2005 01:27 PM
Your robots.txt techfreak General Discussion 0 January 15th, 2005 04:56 PM
MYSQL Errors garybrun Photopost Pro Installation & Upgrades 7 December 18th, 2004 05:37 AM


All times are GMT -5. The time now is 03:26 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0