Release Candidate Coming - Preview Available

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

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

AttachmentSize
ubercart-5.x-1.0-rc1.tar.gz462.59 KB
Posts: 118
Joined: 12/28/2007
Uber DonorBug Finder

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?

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

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.

Posts: 118
Joined: 12/28/2007
Uber DonorBug Finder

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?

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

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

Posts: 118
Joined: 12/28/2007
Uber DonorBug Finder

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)

Posts: 20
Joined: 01/28/2008

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

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

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

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

Posts: 20
Joined: 01/28/2008

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 !

Posts: 118
Joined: 12/28/2007
Uber DonorBug Finder

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

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

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;
    }
  }
}
?>

Posts: 13
Joined: 11/15/2007

@Lyle - that worked great for me...

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

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

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.

Posts: 3
Joined: 04/02/2008

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

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

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.

Posts: 18
Joined: 02/29/2008
Bug Finder

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;
    }
  }
}
?>

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

Correct.