Closed (fixed)
Project:
Ubercart Addresses
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
9 May 2009 at 00:03 UTC
Updated:
17 May 2009 at 23:21 UTC
Just downloaded UC6 rc3 and when I run update.php I get:
Fatal error: Call to undefined function uc_address_field_enabled() in /home/.jojo/improvesales/southcountyhoops.com/sites/all/modules/uc_addresses/uc_addresses_address_pane.inc on line 48
Comments
Comment #1
freixas commentedThis may be a silly question, but: Did you install Ubercart first? The uc_address_field_enabled() function comes with Ubercart.
Comment #2
butler360 commentedYes, I had the RC2 version of Ubercart installed first, then added Addresses, then updated to RC3 and got that error.
Comment #3
freixas commentedI just updated to Ubercart 6.x-2.0-rc3. I ran update.php. No errors.
I added an address. To display the address form, uc_address_field_enabled() needs to be called. Again, no problems.
I did a grep for uc_address_field_enabled(). It is defined in ubercart/uc_store/uc_store.module.
I'm afraid you're going to have to do some debugging before I can help. Start by checking that the uc_store.module exists and has uc_address_field_enabled(). Was this your first install of uc_addresses or were you updating an earlier version? Is the error repeatable?
If you can repeat it and know how to write PHP code, a backtrace just before line 48 of uc_addresses_address_pane.inc could be useful.
Comment #4
butler360 commentedUnfortunately I'm not a coder of any sort, so I was only able to do one thing you asked, which (I think) was to make sure "uc_address_field_enabled()" is found in uc_store.module and it is.
Basically, I had UC_Addresses installed and working with Ubercart RC2 and then upgraded to Ubercart RC3. After running update.php, I got the error message. If I run update.php again it seems to work but the page it redirects to gives the error message. If I even go to build/modules I get that error message. It seems really strange that this happened and I have no idea how or why it did.
Also, am I not able to edit the original post? It was late and I didn't intend to leave the domain in the error message. Is that somethign you can remove for me?
Comment #5
butler360 commentedWell I've mucked around a bit and somehow it's all working now. After deleting the Addresses module directory I was able to get to build/modules and somehow every module I tried to update when I ran update.php and got the error message had been turned off! Even the core "Cart" module in Ubercart was off, and so all of the dependent modules were off, too. I've never seen that before. Very strange. So I re-enabled the required modules, reuploaded Addresses and now everything is working fine.
Comment #6
freixas commentedThanks for taking the time to look into this.
Comment #7
freixas commentedOh, and I can't edit the bug description, sorry. You'll need to check with someone who runs the site.
Comment #8
butler360 commentedThe whole site? Meaning Drupal.org? Yikes, haha. Can it be deleted instead?
Comment #9
freixas commentedSorry, same answer as before. I don't have the ability to edit or delete (if I do, it's not obvious).
Comment #10
butler360 commentedOh well, thanks for your help anyways.