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 16th, 2009, 11:59 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2007
Posts: 70
Cannot create a new category

When I try to create a new category I get this error

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

Thanks
jimjam is offline   Reply With Quote
Old June 16th, 2009, 12:22 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,653
Please in admin => global options set your debug setting to display errors and then try again and post the real mysql error so we may assist.
__________________
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 June 17th, 2009, 03:00 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2007
Posts: 70
Quote:
Originally Posted by Chuck S View Post
Please in admin => global options set your debug setting to display errors and then try again and post the real mysql error so we may assist.

After doing the above the error reads

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

Script: adm-cats

Query: INSERT INTO pp_categories (id,catname,description,catorder,thumbs,parent,header,footer,headtags,password,ugnoview,ugnoupload,ugnopost,ugnoanno,ugnovote,watermark,sortorder,frames,maximages,ratingtype,ismember) VALUES(NULL,'Newbury','','3','yes',584,'','','','', '', '1,3,4,8,9,10,11,13', '1,2,3,4,5,7,8,9,10,11,13,14', '1,2,3,4,5,6,7,8,9,10,11,13,14', '2', '2', '0', '0', '', '', '')

Result: Incorrect integer value: '' for column 'maximages' at row 1

Database handle: Resource id #20
jimjam is offline   Reply With Quote
Old June 17th, 2009, 07:59 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,653
In Layman's terms MySQL in strict mode can not allow query inserts with null values to be entered.

Workaround

There are several workarounds

1. Replace in my.ini the current sql-mode line with sql-mode="MYSQL40"
2. Start MySQL with the option --sql-mode="MYSQL40"
3. Execute the query SET GLOBAL sql_mode='MYSQL40'

MySQL needs to be restarted before changes in my.ini have an effect. My.ini can be found in the MySQL installation directory or the Windows directory, depending on your configuration.
__________________
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 June 17th, 2009, 12:45 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jul 2007
Posts: 70
Thanks Chuck, I have found the line

Quote:
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
What are the implications, if any for changing from what it is currently to MYSQL40

Thanks
jimjam is offline   Reply With Quote
Old June 17th, 2009, 12:48 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,653
There should none most servers run in compatiblity mode and not strict mode.

You can also try just removing this and remember to restart the server

STRICT_TRANS_TABLES
__________________
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
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
Users create own category 6.22 asder Photopost Pro How Do I...? 3 April 28th, 2009 09:07 AM
Create Galleries in a Different Category? mambo78 Photopost Pro How Do I...? 4 September 12th, 2008 05:51 PM
PP 6.0.2 Create new Category JLuerken Photopost Pro Bug Reports 1 February 15th, 2008 06:40 AM
Users cant create category A Geek Installs and Upgrade - vBulletin 3.0.X 16 December 28th, 2007 07:01 AM
PP 5.3: How to create a text-only category? snoopy5 Photopost Pro How Do I...? 3 November 15th, 2006 02:06 PM


All times are GMT -5. The time now is 06:08 PM.

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