16 replies [Last post]
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422

Alrighty folks, those itching to test the latest development in the Ubersphere can use the attached zip to test-drive the pre-release version of Ubercart 1.0 RC 1. We plan to unveil it in the coming days to the general public after we polish up a few more items. Bugs for the release candidate specifically should be posted in this thread until we get it out as an official release. Cool

PreviewAttachmentSize
ubercart-5.x-1.0-rc1.tar.gz462.59 KB
Abilnet's picture
Offline
Uber DonorBug Finder
Joined: 12/28/2007
Juice: 718
Re: Release Candidate Preview Available

Cool Ryan, thanks a lot. Just installed over my test-shop and everything went smoothly as usual. A change log could be handy, but I did not find one?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Re: Release Candidate Preview Available

We're not good about keeping changelogs, unfortunately. Eye-wink All I can say is, we've squashed the bugs that have been report and tidied up some help text along the way. You can browse the Bazaar logs for a little more info.

Abilnet's picture
Offline
Uber DonorBug Finder
Joined: 12/28/2007
Juice: 718
Re: Re: Re: Release Candidate Preview Available

Problems after updating from latest Beta7 to RC1 preview (also did the Database schema update)... first everything seems to be ok, but when trying to view product(s) node will produce the following error:

Object of class stdClass could not be converted to string in /home/XXXXX/sites/all/modules/ubercart/uc_product/uc_product.module on line 224.

This happens only full node views, not in teaser views. One more thing, the error does not come when logged in as admin (anon and normal logged in user will get the errors... here)

I tried to disable additional modules one by one and saved the products again, but no help.

Any ideas?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Re: Re: Re: Release Candidate Preview Available

For now, you can just open up the product module to that line and comment it out. I'm curious if you're using some sort of contributed access control module, as this issue didn't pop up on our test servers. Puzzled

Abilnet's picture
Offline
Uber DonorBug Finder
Joined: 12/28/2007
Juice: 718
Re: Re: Re: Re: Re: Release Candidate Preview Available

Thanks Ryan, I got rid of the errors by commenting out the line mentioned in the errors... then a second error popped out:

recoverable fatal error: Object of class stdClass could not be converted to string in /home/XXXXX/sites/all/modules/ubercart/uc_product/uc_product.module on line 232.

Commenting also that line out seems to be a temporary error less solution. I tried to double check the modules and settings, but did not see anything strange in permissions etc... (in case Ryan it helps you, please don't hesitate to PM me for log-in to take a look)

PhenX's picture
Offline
Joined: 01/28/2008
Juice: 61
Is it an April's fool ? If

Does this have any relation with the current date ? Eye-wink

If it isn't that a great thing !! Smiling

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Is it an April's fool ? If

heh Nah, it's not an April Fool's joke. And regarding the bug, we know what it is, just waiting on Lyle to post up a fix. Smiling

PhenX's picture
Offline
Joined: 01/28/2008
Juice: 61
Ryan wrote:heh Nah, it's
Ryan wrote:

heh Nah, it's not an April Fool's joke. And regarding the bug, we know what it is, just waiting on Lyle to post up a fix. Smiling

Ok, I'll upgrade my installation when you'll tell us this version is OK.
Keep on the really good work !

Abilnet's picture
Offline
Uber DonorBug Finder
Joined: 12/28/2007
Juice: 718
Re: Ryan wrote:heh Nah, it's

Heh... this is cool guys, thanks for the new badge, it's a great honor to be an official "Bug Finder" Laughing out loud

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6841
Re: Re: Is it an April's fool ? If

Well, even today I found some more problems with uc_product_access(). I'm pretty sure they're fixed now, so this is the version that's in the Bazaar repository:

<?php
function uc_product_access($op, $node) {
  global
$user;
 
$type = is_string($node) ? $node : (is_array($node) ? $node['type'] : $node->type);

  if (

$type == 'product') {
   
$type = '';
  }
  else {
   
$type .= ' ';
  }
  switch (
$op) {
    case
'create':
      return
user_access('create '. $type .'products');
    case
'update':
    case
'delete':
    if (
user_access('edit '. $type .'products') || (user_access('edit own '. $type .'products') && ($user->uid == $node->uid))) {
      return
TRUE;
    }
  }
}
?>
trevorlee_nc's picture
Offline
Joined: 11/15/2007
Juice: 23
that's it!

@Lyle - that worked great for me...

I was noticing this error came up for anonymous users only...not for admin account...

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6841
Re: that's it!

The admin account, and anyone with the "administer nodes" permission won't have an error because this function isn't even called. There's no need, since they will always have access.

seattle_magician's picture
Offline
Bug Finder
Joined: 02/29/2008
Juice: 62
Re: Re: Re: Is it an April's fool ? If

I just replaced the function with the same name, in the uc_product.module file. Is that what I should do to make the fix? I'm making the fix on top of the version I downloaded from here:
http://drupal.org/node/241016
Is that right? Is that all I would need to change?

I haven't seen the bug yet my self, but just trying to prevent it. Smiling

Thanks,
Jacob

Lyle wrote:

Well, even today I found some more problems with uc_product_access(). I'm pretty sure they're fixed now, so this is the version that's in the Bazaar repository:

<?php
function uc_product_access($op, $node) {
  global
$user;
 
$type = is_string($node) ? $node : (is_array($node) ? $node['type'] : $node->type);

  if (

$type == 'product') {
   
$type = '';
  }
  else {
   
$type .= ' ';
  }
  switch (
$op) {
    case
'create':
      return
user_access('create '. $type .'products');
    case
'update':
    case
'delete':
    if (
user_access('edit '. $type .'products') || (user_access('edit own '. $type .'products') && ($user->uid == $node->uid))) {
      return
TRUE;
    }
  }
}
?>
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6841
Re: Re: Re: Re: Is it an April's fool ? If

Correct.

singularbit's picture
Offline
Joined: 04/02/2008
Juice: 6
Europe VAT support

Hello Ryan,

Does this version support VAT per Product per Country?
Also, is it possible to show Price with VAT on the product page?

I'm new to Übercart, I've just upgraded to rc1 and can't find any changes in that area.
Can you, or anyone, help me on this?

Thanks!

Sbit

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Europe VAT support

This hasn't made it into core, though Internationalization improvements is a big one on the to-do list for 2.0. As far as I know, this should be possible through zmove's contrib or a combination of his module with some code posted in the forums.