Error message encounter in beta7

Posts: 6
Joined: 02/24/2008

warning: Missing argument 1 for t(), called in /home/xxx/public_html/webpage/modules/ubercart/uc_catalog/uc_catalog.module on line 304 and defined in /home/xxx/public_html/webpage/includes/common.inc on line 734.

This is the error message i get when i upload an image to uc catalog term.
I am using drupal5.7 with uc beta7.

Any idea how to solve it?
Thank you

Posts: 1
Joined: 03/20/2008

I am seeing the same thing on my site. Using the same, drupal 5.7 with uc beta 7.

Posts: 1850
Joined: 08/07/2007
AdministratoreLiTe!

I don't see anything in the latest code that could cause this problem. What's the part around line 304 of uc_catalog.module look like? I may just not be seeing it right.

Posts: 3744
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

This appears to be a non-critical bug that affected beta 7 but is no longer an issue. You can download the most recent code that has this solved through the download link at the top of http://bazaar.ubercart.org.

Posts: 6
Joined: 02/24/2008

Thanks problem solved. But there isn't a ver for this bazaar ver, is this consider beta7? Is the delete node error solve as well? I haven't have a chance to try it Smiling

Posts: 6
Joined: 02/24/2008

Oops it is not. When i delete any product and i still get this message

"user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN uc_product_adjustments AS pa ON sl.model = pa.model W' at line 2 query: DELETE FROM uc_stocklevels AS sl LEFT JOIN uc_product_adjustments AS pa ON sl.model = pa.model WHERE pa.nid = 112 in /home/raqkwbr/public_html/finepuer/includes/database.mysql.inc on line 172."

Is there a problem?

Posts: 3744
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Something about DELETEs and JOINs... but it's an issue with the simple stock levels module which isn't part of core, so I don't really have a way to debug it.

Posts: 33
Joined: 02/20/2008

I'm getting the same issue, even with the most current download from Bazaar. When I attempt to upload an image for a term under the Category vocabulary, I get this error message:

warning: Missing argument 1 for t(), called in /home/deadfish/public_html/shbark/sites/all/modules/ubercart/uc_catalog/uc_catalog.module on line 304 and defined in /home/deadfish/public_html/shbark/includes/common.inc on line 734.

Line 304 in uc_catalog.module is (highlighted)

$help = t();

In context, it's this:

    if ($image){
      if (module_exists('imagecache')){
        $image_display = theme('imagecache', 'category', $image->filepath);
        $help = t();
      }

If I read the api docs properly at http://api.drupal.org/api/function/t/5, the $string parameter is not optional for t(). Could that be the problem?

Thanks.

Posts: 3744
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

I'd double check which file you've got on there. When I browse the Bazaar repository, I don't see that line anywhere. Search for "image_display" at http://bazaar.ubercart.org/drupal5/ubercart/uc_catalog/uc_catalog.module and you'll see what I mean.

Posts: 33
Joined: 02/20/2008

You're right. I downloaded the current files from the uc_catalog directory, and the line isn't there. The image attachment works fine. I guess I just downloaded from Bazaar the wrong way. I just went to http://bazaar.ubercart.org/ and clicked on the Download .tar.gz link last time. Is that not the most current version of all the Ubercart files?

Thanks.