I 'm getting this error if I try to add a new address or update an address. What can be the problem? I'm using current dev of ubercart.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_addresses.patch | 736 bytes | checker |
I 'm getting this error if I try to add a new address or update an address. What can be the problem? I'm using current dev of ubercart.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_addresses.patch | 736 bytes | checker |
Comments
Comment #1
checker commentedThe problem is that the module does not check if _address_pange_data() results a function name or blankness. Here is a little patch.
Comment #2
megachrizDo you have any modules installed that depend on or integrate with Ubercart Addresses?
What is outputted if you add
after
$func = _address_pane_data($pane_id, 'callback');(before the error occurs)?
Comment #3
checker commentedOutput of $form_state['values']['panes']:
Result of _address_pane_data($pane_id, 'callback'):
-uc_addresses_pane_addres
- (empty)
I'm not using directly another module for Ubercart Addresses but I'm not sure if there is a module that is working with it.
Comment #5
megachrizHm, it's possible a payment module is causing this. Do you know which module adds the field 'current_total' to the form? If not, can you tell me which payment modules you have installed?
I'm also curious what is outputted if you add
print_r($panes);after
$panes = module_invoke_all('address_pane', NULL);in file uc_addresses_address_pane.inc (± line 273)
If this is the output:
then it's probable a form alter function is causing this. And then it's the trick to find out which one.
Comment #6
checker commentedIt's the module 'uc_checkout_preview' that uses a form_alter causing this fatal error:
You have to visit checkout page first to get this error after it.
Nevertheless you should do some checks before you call functions from a variable, isn't it more robust programming code?
Comment #7
megachrizI couldn't reproduce this error yet. I have installed:
- Token 6.x-1.14
- Ubercart 6.x-2.x-dev (2010-sep-29)
- Ubercart Addresses 6.x-1.0
- Ubercart checkout order preview pane 6.x-1.1
I had enabled all modules of Ubercart.
What modules do you have enabled?
It's up to the maintainer to decide if a check is required. It still looks like the error occurs because of an other module. Maybe UC Addresses should give an error message when it discovers the callback function it expects does not exists?
Comment #8
grub3 commentedPleas apply http://drupal.org/node/931998, it could be a duplicate.
Comment #9
megachriz@jmpoure
Can you explain in which way this issue is related to #931998: Various fixes for PostgreSQL & all, please review and apply?
Comment #10
checker commentedWho sould help this message? A simple check before calling a non existent function would be enough.
Comment #11
haagendazs commentedChecker: I am helping out freixas with some of the issues for Ubercart Addresses. Ideally, I'd like to reproduce this error to find out what causes the error instead of just making sure the callback function exists.
Can you attach a list of all your installed modules, so I can use your setup to find the error? If you have the Devel module installed, you can go to this path: 'www.yoursite.com/devel/php' and run the following command to get the list of installed modules (please also provide the version number for the modules that aren't the most recent stable version of the module):
If none of this works, we'll add the patch to a dev version.
Comment #12
megachrizI close this issue now as I was not able to reproduce it.