Closed (duplicate)
Project:
SimpleAds
Version:
7.x-1.8
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2012 at 22:29 UTC
Updated:
30 May 2012 at 06:33 UTC
I am getting the below error on the latest update... any ideas how to fix?
The following updates returned messages
simpleads module
Update #7005
Failed: FieldException: Attempt to create field name field_ad_status which already exists and is active. in field_create_field() (line 85 of /home/site/public_html/modules/field/field.crud.inc).
Comments
Comment #1
minnur commentedIt says that you already have field_ad_status in the system. Please make sure that field_ad_status doesn't exists before running update.
Thanks.
Comment #2
virtuali1151 commentedWhere do I go to remove that..??? In the DB..??
I tried to rename this field_data_field_ad_status to field_data_field_ad_status_old and it still gave me the same error...
Cheers.
Comment #3
minnur commentedOpen this page http://yoursite/admin/reports/fields and confirm that the "field_ad_status" exists/doesn't exists.
Comment #4
virtuali1151 commentedAh... got it... thanks for your help mate..
Cheers.
Comment #5
minnur commentedno problem
Comment #6
virtuali1151 commentedUGGG... Spoke to soon... now I am getting this..??
Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'tid' cannot be null: INSERT INTO {simplenews_newsletter} (nid, tid, status) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 81 [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => 0 ) in simplenews_newsletter_save() (line 2012 of /home/site/public_html/sites/all/modules/simplenews/simplenews.module).
Comment #7
minnur commentedPHP error comes from SimpleNews not from SimpleAds.
Comment #8
virtuali1151 commentedAhh.. yup.. just noticed that one.. Cheers.
Comment #9
Sk1Zy commentedI got the same error, i checked the field report and it isn't there. I also checked the views field report and it was there, i removed the field from the view so it doesn't show up in the report anymore but i still get the same error.
Comment #10
xlyz commenteddefinetely something is broken with #7005 update.
in my case the field field_data_field_ad_status is present in the db, but it does not shows up neither in the fields list (/admin/reports/fields) nor in the manage fields page of the simple ad content (/admin/structure/types/manage/simpleads/fields).
drush updb ends with an ok, but if I try it again the 7005 update shows up again:
Comment #11
minnur commentedWhich version of SimpleAds you were trying to upgrade? ( for instance 1.5 => 1.8)
Comment #12
xlyz commented1.7 => 1.8
Comment #13
minnur commentedSee #1594798: Reinstalling the module does not create the content type fields