After upgrading this module, I went into an existing address, I clicked "Edit this address". I changed the "Save as" Name field and clicked the "Update address" button. The change registered but I got the following error message display:

warning: file_get_contents(sites/all/modules/uc_addresses/uc_addresses.js?71698) 
[function.file-get-contents]: failed to open stream: No such file 
or directory in /home/xxxxxxx/public_html/drupal6/includes/locale.inc on line 1686.

I repeated the procedure but could not get the same error again.

Comments

Critical Tinkerer’s picture

I said I couldn't repeat the error but, actually, I can:

Clicked to create a new address, but instead of filling out the fields, I clicked on a different tab whcih triggered the same error message.

freixas’s picture

Assigned: Unassigned » freixas
Status: Active » Fixed

First, I can't reproduce your problem. Which version of Ubercart are you using?

Second, this is related to #298331: JS error when locale module is enabled. The bug is in uc_add_js() (an Ubercart function), but it looks like the fix was to change all calls to uc_add_js() to drupal_add_js().

No one gave me the memo, so I was still calling uc_add_js(). I converted these into drupal_add_js(). Please install the 6,x dev release dated 2/2/09 or later and report back as to whether that fixed your problem.

I don't understand why I don't get the error message. I did a grep of my installed Ubercart and there are no calls to uc_add_js(), but the function is still there and it looks like it still has a bug.

Critical Tinkerer’s picture

Assigned: freixas » Unassigned
Status: Fixed » Active

I'm using Ubercart 6.x-2.0-beta3 with Ubercart Addresses 6.x-1.x-dev (2009-Feb-01).

Feb-02 version seems not to be available yet. I will download it as soon as it appears.

Critical Tinkerer’s picture

Status: Active » Fixed

Upgraded to UB Addresses 6.x-1.x-dev (2009-Feb-03) and, so far, I have not been able to reproduce the problem. :-)

Thanks for the quick response!

freixas’s picture

Status: Fixed » Closed (fixed)