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

freixas’s picture

Assigned: Unassigned » freixas

This may be a silly question, but: Did you install Ubercart first? The uc_address_field_enabled() function comes with Ubercart.

butler360’s picture

Yes, I had the RC2 version of Ubercart installed first, then added Addresses, then updated to RC3 and got that error.

freixas’s picture

I 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.

butler360’s picture

Unfortunately 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?

butler360’s picture

Well 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.

freixas’s picture

Status: Active » Closed (fixed)

Thanks for taking the time to look into this.

freixas’s picture

Oh, and I can't edit the bug description, sorry. You'll need to check with someone who runs the site.

butler360’s picture

The whole site? Meaning Drupal.org? Yikes, haha. Can it be deleted instead?

freixas’s picture

Sorry, same answer as before. I don't have the ability to edit or delete (if I do, it's not obvious).

butler360’s picture

Oh well, thanks for your help anyways.