Closed (fixed)
Project:
Ubercart Addresses
Version:
5.x-2.1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Jan 2009 at 11:54 UTC
Updated:
20 Apr 2009 at 15:57 UTC
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
Comment #1
freixas commentedHave 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.
Comment #2
freixas commentedClosed due to lack of response.
Comment #3
rmyoung commentedSorry, 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.
Comment #4
vivianspencer commentedI 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:
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
Comment #5
rmyoung commentedI'd say that' a different issue. The 'address name' column is there in my database so it has nothing to do with that.
Comment #6
hedgefrog commentedHi , 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.
Comment #7
rmyoung commentedfrogdog, are you using php4 as well?
Comment #8
hedgefrog commentedi'm using PHP 5.2.8
Comment #9
freixas commentedClosed due to lack of follow-up information.