Closed (fixed)
Project:
E-Publish
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2007 at 06:41 UTC
Updated:
23 Jun 2008 at 13:32 UTC
I have installed E-Publish 5.x-1.x-dev on Drupal 5.5. There is a error when I click Add Publication tab:
user warning: Out of range value adjusted for column 'sid' at row 1 query: INSERT INTO epublish_publication (pid, name, description, schedule, current_eid, layout_list, layout_page, sid) VALUES ('7', 'Mag', '', '', '0', '', '', '') in D:\Data\www\banoria\includes\database.mysql.inc on line 172.
It also shows "The publication "Mag" has been added.", but List Publications is empty.
Any fix available for this problem?
Thanks,
Asif
Comments
Comment #1
Asif99 commentedIt seems that mysql 5.0.18 does not accept '' for numerical fields. I inserted if ($edit['sid']=='') {$edit['sid']=0;} in function epublish_form_pub_submit to make it work with mysql 5.0.18:
Comment #2
Yakumo commentedsame for mysql 5.0.51b (this is the current stable win32 build, the b does not denote beta) , thank you for the quick fix asif99.
With the current dev and beta builds this needs to go underneath the following line.
eg :
or it will not work as the values in $edit will be replaced by the $form_state['values'] and the fix will be undone.
Comment #3
gloscon commentedhttp://drupal.org/node/268312
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.