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 Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 29th, 2007, 07:16 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2002
Location: Belgium
Posts: 395
Send a message via ICQ to Interdit Send a message via AIM to Interdit Send a message via MSN to Interdit Send a message via Yahoo to Interdit
Lightbulb Mysql 5.X problem by adding a cat ?

Hello,

I'm getting this:

"Error adding new category to the database. Returned id was 0"

and the details is:

We're sorry, but the system experienced an unrecoverable error. Please try again later.

Script:

Query: INSERT INTO categories (id,catname,description,catorder,thumbs,parent,header,footer,headtags,password,ugnoview,
ugnoupload,ugnopost,ugnoanno,ugnovote,watermark,sortorder,frames,maximages,ratingtype,ismember)
VALUES(NULL,'Hog Doggin'','Hog Dogging Photos','4','yes',510,'','','','', '', '', '', '5,1,3,4,2', '', '', '1', '', '', '', '')

Result: 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 'Hog Dogging Photos','4','yes',510,'','','','', '', '', '', '5,1,3,4,2', '', '', ' at line 2

Database handle: Resource id #6
================================================================

When adding a cat. I read that there was some problem with Mysql 5.X, did you fix it ? The autoincrement seems correct.

Thanks,

Best regards,
Francois
Interdit is offline   Reply With Quote
Old March 29th, 2007, 07:53 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Are you intentionally entering a cat name of this

Hog Doggin'

Try entering this

Hog Doggin
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 29th, 2007, 08:24 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2002
Location: Belgium
Posts: 395
Send a message via ICQ to Interdit Send a message via AIM to Interdit Send a message via MSN to Interdit Send a message via Yahoo to Interdit
Yes, I can not ?

Thanks,
Francois
Interdit is offline   Reply With Quote
Old March 29th, 2007, 09:40 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
what do you mean you can not
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 1st, 2007, 06:18 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jul 2002
Location: Belgium
Posts: 395
Send a message via ICQ to Interdit Send a message via AIM to Interdit Send a message via MSN to Interdit Send a message via Yahoo to Interdit
Can i name my category Hog Doggin' ? Should it work normally ?
Interdit is offline   Reply With Quote
Old April 2nd, 2007, 10:07 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Well you can try adding this line in bold in adm-cats.php your mysql flips out using the semi colon

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; April 2nd, 2007 at 06:12 PM.
Chuck S is offline   Reply With Quote
Old April 2nd, 2007, 05:33 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Please use
$ncatname = mysql_real_escape_string($ncatname);
or at least addslashes() to escape the value.
htmlentities() should be used for output escaping not for input escaping that will be inserted into the database.
Astaran is offline   Reply With Quote
Old April 2nd, 2007, 06:11 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
mysql_real_escape_string thats one I had not thought of
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S 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
Member Cat creation Problem Rhyze Photopost Pro Bug Reports 5 February 13th, 2007 05:09 PM
Assigned to additional cat problem mjm Photopost Pro How Do I...? 4 July 10th, 2006 07:29 AM
show category parents when adding sub cat? DefenceTalk.com Photopost Pro How Do I...? 2 November 28th, 2005 12:27 PM
Adding a bunch of cats at a time with mysql query? Johnny Doomo Photopost Pro How Do I...? 2 August 29th, 2005 10:42 AM
adding a prefix to the mysql tables Coastie Photopost Pro Installation & Upgrades 5 October 10th, 2004 04:36 PM


All times are GMT -5. The time now is 02:57 AM.

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