Closed (fixed)
Project:
Addresses
Version:
6.x-1.05
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2009 at 22:15 UTC
Updated:
2 Jan 2010 at 16:09 UTC
I upgraded to the latest version of this module and am still getting this error.
* user warning: Table 'churchxx_drupal2.addresses_user' doesn't exist query: INSERT INTO addresses_user (eid, aname, street, additional, city, province, country, postal_code, is_primary) VALUES (1, '', '', '', '', '', '', '', 0) in /home/churchxx/public_html/includes/common.inc on line 3425.
* user warning: Table 'churchxx_drupal2.addresses_user' doesn't exist query: SELECT * FROM addresses_user WHERE eid = 1 ORDER BY is_primary DESC in /home/churchxx/public_html/sites/all/modules/addresses/addresses_user/addresses_user.inc on line 40.
Comments
Comment #1
brmassa commentedted,
i just installed the module in a fresh site without problems. I need to know how i can replicate your problem.
Anyway, I guess uninstalling and then reinstalling the module will fix it.
regards,
massa
Comment #2
ctmiller commentedWhat do you mean by uninstall. I deleted it reuploaded and ran drupals update function and I am still getting the same error messages.
Comment #3
ctmiller commented* user warning: Table 'churchxx_drupal2.addresses_user' doesn't exist query: UPDATE addresses_user SET is_primary = 0 WHERE is_primary = 1 AND eid = 1 in /home/churchxx/public_html/sites/all/modules/addresses/addresses_user/addresses_user.inc on line 74.
* user warning: Table 'churchxx_drupal2.addresses_user' doesn't exist query: INSERT INTO addresses_user (eid, aname, street, additional, city, province, country, postal_code, is_primary, phone, fax) VALUES (1, 'Home', '2821 South Lake Drive', '', 'Prestonsburg', 'KY', 'us', '41653', 1, '606-886-3628', '') in /home/churchxx/public_html/includes/common.inc on line 3425.
* user warning: Table 'churchxx_drupal2.addresses_user' doesn't exist query: SELECT * FROM addresses_user WHERE eid = 1 ORDER BY is_primary DESC in /home/churchxx/public_html/sites/all/modules/addresses/addresses_user/addresses_user.inc on line 40.
Is their a database not being created that needs manually created. If I knew the data structure I could try creating the database manually to see if that fixes it.
Comment #4
gopagoninarsing commentedHi,
When u enable addresses module it will creates addresses_user table. Disable addresses module and enable it again.
Looking at the above errors it seems like that tables are not created.
Enable the module and check whether the table addresses_user is created in your database.
Comment #5
ctmiller commentedHave done that multiple times. There is an addresses table in the drupal mysql database but no table addresses_user.
I would love to get this bugger working before I open the registration form up for users. Is there a table structure for the addresses_user database that I could implement it manually.
Comment #6
ctmiller commentedGot this working. I deleted it again. I tried the dev version again and this time it worked.
Comment #7
codycraven commentedI know this bug report is very old but...
Sometimes Drupal modules will fail to create tables during an install. This rarely ever happens, but it does happen and from what I can tell is not the fault of the module.
For future reference if you have a module that does not create the table(s) that it was supposed to during install you need to do the following:
To uninstall a module you need to click the Uninstall module tab on the modules page which takes you to admin/build/modules/uninstall.
Uninstalling the module will attempt to remove the tables that should have been created and on your next install will allow the tables to be created.