I have only just installed this module. When I add an address it does not save the address. I have tried adding through user account settings and also by comleting a transaction but neither saves the address. I have checked the database and they have not been stored in the table.

I am running drupal 5.14 with mySQL 4.1.22 and php 4.3.9

Many thanks for the module.

Comments

freixas’s picture

Assigned: Unassigned » freixas
Status: Active » Postponed (maintainer needs more info)

Have you checked the watchdog log? Are any relevant error messages being reported?

I've only tested the system with PHP 5 and MySQL 5. It's possible there is some compatibility problem. Even your version of PHP 4 is ancient—the latest version is PHP 4.4.9.

If there are no error messages, do you know how to debug a PHP module? You could start by tracking the database calls, which are in uc_addresses.module and are pretty easy to find (if you are a programmer). If you don't know how to debug PHP code, it's going to be more difficult to find the problem.

freixas’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closed due to lack of response.

rmyoung’s picture

Status: Closed (fixed) » Active

Sorry, was busy with building the site. I have now transferred this to my local server to debug. There are no watchdog entries for it.

It is definitely a php4 issue. My local server has php 4.4.8 and the module doesn't work on it but if I switch to php5 the module works as expected.

I'm not a php expert but I will have a go and see what I can do.

vivianspencer’s picture

I get the same problem, I just installed the module and added a new address to my profile but after submitting the form there was no address to be seen

In my watchdog file I found the following error:

Unknown column 'address_name' in 'field list' query: INSERT INTO uc_addresses (aid, uid, first_name, last_name, phone, company, street1, street2, city, zone, postal_code, country, address_name, created, modified) VALUES (...) in /home/default/acl101.net/user/htdocs/includes/database.mysql.inc on line 174.

I've looked at the install file and the address_name field is there, I'm not sure why this wouldn't have been created when I installed the module

After adding the field to the table the module works fine

rmyoung’s picture

I'd say that' a different issue. The 'address name' column is there in my database so it has nothing to do with that.

hedgefrog’s picture

Hi , I am having a similar problem and I think i have tracked it down to being caused by the address setttings.

When the box "Require that an address be entered during registration" is UNchecked (as I prefer on my site) then if a customer enters a new address at checkout, that new address is not saved in the uc_addresses table.

However when that settings box is checked, the address will save fine.

I assume this is a bug then?

Edit: after more testing, it seems that even with the above setting checked, if a logged in user pays via Paypal, and enters a new address at checkout, that address will not be saved into uc_addresses.

rmyoung’s picture

frogdog, are you using php4 as well?

hedgefrog’s picture

i'm using PHP 5.2.8

freixas’s picture

Status: Active » Closed (fixed)

Closed due to lack of follow-up information.