Alpha 8 Released

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

Per this news post, Alpha 8 is out the door. It's been driving the new version of the Livetest quite admirably, and I trust it will perform well for your sites. Please take notice of the installation instructions from the news post... and in case you're too lazy to read it all, you must get Workflow-ng to run the latest version.

Feel free to give Lyle a pat on the back for investigating and leading the effort to integrate Ubercart with Workflow-ng and Shawn for pumping out two excellent modules for this release for file downloads and role promotions. While you're at it, give yourselves a pat on the back for all the bug reports, usability feedback, and suggestions you've been giving us that are helping to continually improve the project.

Enjoy! Cool

(Post bug reports up here... any installation/update errors will be addressed by a minor release as soon as possible. None turned up during testing, but we all know how reliable that is...)

Posts: 328
Joined: 08/07/2007
Administrator

...and for those wanting to use the UberInstaller it is now updated to the latest alpha as well. There was a bug with workflow-ng that had to patched, but everything seems to be running smooth now. If any error messages occur with the UberInstaller post them up here as well.

--

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Posts: 101
Joined: 09/07/2007
Uber Donor

Nice work guys!

I notice that on the livetest you only have UPS running. Do we know the status of how the FedEx and USPS modules perform with Alpha 8? Since my site is live I've got to make sure they're ready for the big stage before I upgrade.

Posts: 45
Joined: 10/07/2007
InternationalizationizerNot Kulvik

while it is not a show stopper, i believe that ubercart is missing the .info file that will allow system updates module to check for updates.
also linked to this, is the fact that the version number is not listed on the admin/modules page

thanks

Mohammed Arafa

--

Mohammed Arafa

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

Mohammed, I believe that's because you've checked out your copy from the Bazaar repository. It doesn't do the keyword substitution that CVS does for releases packaged up on Drupal.org. If you were to get the .info files from d.o, it would show up properly.

Posts: 45
Joined: 10/07/2007
InternationalizationizerNot Kulvik

yes that fixed it but will this affect later bzr updates? well guess i will find out tomorrow Eye-wink

and what about future releases? will i also have to go through the same process? update from drupal.org for the new info file?

--

Mohammed Arafa

Posts: 95
Joined: 08/07/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Spreading the word - Ubercart for president.

Superb

--
Posts: 454
Joined: 08/13/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer

Successfully upgraded. Finally I wait to launch my website to upgrade ubercart to alpha 8 before..

After upgrading, I noticed that shipping cost are not showing in the checkout pane, I have worldquote and in store pickup module.

Does we have to update these module to be compatible with alpha 8 ?

Any precision would be appreciated.

zmove

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

Yes, you do. Shipping quotes are now using Workflow-ng, and the shipping quote methods need to implement hook_configuration() to be useful. Take a look at uc_ups_configuration() and uc_flatrate_configuration() for examples of the minimum requirements. uc_usps_configuration() shows how to use conditions on two different methods. These configurations are set up as defaults, so users can change them as they need to. Mostly this will be adding conditions so the quote is calculated under specific circumstances.

Posts: 454
Joined: 08/13/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer

I hope shipping module maintainer will make upgrade quicker than me because my website is freezed by waiting these functionnalites Eye-wink

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

It's really just a cut & paste job. Just copy uc_ups_configuration() and change everything from ups to worldquote.

Workflow-ng caches these configurations, though. Once the module is changed, empty the cache_workflow_ng table to see it in the interface.

Posts: 454
Joined: 08/13/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer

True, it's very easy to implement, I tried to update the worldquote module with success, see my last reply

nashvillian (not verified)

Hi. I used to see country-specific shipping methods in 7e. Now with 8 I don't see the option. How would one enable say flat rate for us and canada and by weight for the rest of the world? Thanks in advance

Eric (not verified)

Hi,

I was using ubercart alpha 7e before with file product module.

After update to the alpha 8, my file product keep having this error
on the checkout page as well as the URL.../store/products/files

user warning: Unknown column 'shippable' in 'field list' query: SELECT shippable, model FROM uc_file_products as fp INNER JOIN uc_product_features as pf ON pf.pfid = fp.pfid WHERE nid = 162 in /home2/portabl/public_html/includes/database.mysql.inc on line 172.

Anyone know what the problem is?
I am currently using a workaround by substituting with the old 1.7.4 file products. (which works)

On the Store admin page, I have these error.

Image Click here to create defaults for the following problems:

* The expected Imagecache presets ("") have not been created.
* The Imagecache presets do not contain actions to perform on images. Images may be displayed in their original formats.

I have tried to "click here" but the error persists.

Thanks
Eric

Eric (not verified)

This checkout setting does not work on Alpha 8
"Hide shipping information when possible for carts with no shippable items."

When ticked, it ALWAYS hide the delivery address and shipping quote regardless of whether the item is set to shippable or not.

One extra question
For each item, under shipping settings -> flat shipping rate
How does it work? Any numbers I put in there has no effect on the shipping quote.
I can only change the shipping quote under
Http://../admin/store/settings/quotes/methods/flatrate

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

I'm not entirely sure if this is the issue or not... but did you run update.php on your site after updating?

Posts: 54
Joined: 08/17/2007

Eric, I had this same error when I upgraded to alpha 8.

user warning: Unknown column 'shippable' in 'field list' query: SELECT shippable, model FROM uc_file_products as fp INNER JOIN uc_product_features as pf ON pf.pfid = fp.pfid WHERE nid = 162 in /home2/portabl/public_html/includes/database.mysql.inc on line 172.

I ran update.php and this error went away.

http://www.yoursite.com/update.php

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

nashvillian, the country-specific settings have been taken over by the integration with Workflow-ng. You can see how Übercart sets up the shipping quotes by default on the Workflow-ng page under Site building.

For your example, you would want to edit the configuration for the flatrate method. On the configuration's page you can see space for conditions and actions. It starts out with one action, which is to calculate a quote using flatrate. Quote actions shouldn't really be messed with.

What you want is to add a condition. There are many different conditions available, but we're interested in the order's delivery country. On the condition's setting form, the most important part is the country selection. Select both US and Canada and set the label to something informative like "Order ships to US or Canada". Submit the form, and you're done. Only orders going to US or Canada will see the flat rate quotes.

But we don't really want those orders to see the quotes by weight! The process is the same: add a condition to the weightquote configuration. The difference is that we want to click the "Negate" checkbox when we choose US and Canada. This means that orders NOT in US or CA will see the weightquote. Since an order will be in US or Canada or not, all orders will see one of those quotes and not the other. It's a good idea to make sure that every order you get is eligible for a shipping quote.

Conditions can be combined in all sorts of ways, so Workflow-ng should allow for any kind of business rule for shipping quotes and taxes. Discounts should be able to benefit from this soon, too.

nashvillian (not verified)

thanks for the info lyle, ubercart and you guys are really great.

Posts: 25
Joined: 10/26/2007

I am not sure who to tell this to, but the UbercartInstaller does have one minor problem. On install the user count in sequences is not there. Once you try to add one user the user count is added to the sequence table, after that all is fine. But some newbies may get confused on that...

--

===
Elvis McNeely
Blogging about Drupal: http://www.elvisblogs.org/drupal

Eric (not verified)

Yes, I have run update.php. (I remember seeing 2 things are updated, can't remember what they are.)

I even tried to re-run the database update for the uc-file module but the database re-run fail

One suggestion, I noticed that there is no date printed on the invoice generated by Ubercart. Putting the date there would be useful.

Thanks
Eric

Posts: 86
Joined: 09/24/2007
Getting busy with the Ubercode.

were there any changes made to the hook_order api? The points module has developed some bugs after making the change to alpha 8. I am trying to work them out right now. one that i see right now is when i call delete and pass the order id i get this back "Object id #32" and it used to be just an integer

edit: it looks like things have changed to be arrays instead of just integers as i was seeing at a couple times. another thing is the order delete button shows even when payments have been made?

Posts: 85
Joined: 08/08/2007
Uber DonorEarly adopter... addicted to alphas.Not Kulvik

My UPS shipping quote stopped working and I have been trying to read up on this new Workflow-ng thing but I get a fatal error when I try and enable the Workflow-ng UI...

Fatal error: Call to undefined function cclinks_admin_menu() in .../public_html/catalog/sites/all/modules/workflow_ng/cclinks/cclinks.module on line 35

What did I do wrong?

Update: Works in Checkout but not in View Cart when you put in your zip code.

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

@bmagistro - yeah, there were updates to pass the full order object to hook_update and hook_delete to make them a little better.

@kaizen - you don't need to enable the cclinks module. Just the Workflow-ng and Workflow-ng UI modules.

Posts: 328
Joined: 08/07/2007
Administrator

@mcneelycorp: Thanks for the heads up. I noticed that yesterday when trying out a demo myself with the UberInstaller. The fix has been put in place.

--

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Posts: 25
Joined: 10/26/2007

Shawn, no problem.

--

===
Elvis McNeely
Blogging about Drupal: http://www.elvisblogs.org/drupal

Posts: 85
Joined: 08/08/2007
Uber DonorEarly adopter... addicted to alphas.Not Kulvik

@Ryan - Got ya =) Thanks everything works great! Upgraded to Drupal 5.3 from 5.2, and to Alpha 8 from Alpha 7c.

Posts: 14
Joined: 10/18/2007

I am using Alpha 8 and even for carts that only contain products where the "Product and its derivatives are shippable." flag is not set I am still required to enter shipping information.

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

I noticed a bug where this was happening w/ product features... are you using either role promotions or file downloads on these products, or is it simply happening for every product?

Posts: 14
Joined: 10/18/2007

Its happening with every product regardless of features.

I enabled flat rate shipping and it uses the value of the shipping cost that is set for the product regardless of whether the product is set as shippable or not. So it looks like that flag is just not being honored.

Posts: 60
Joined: 09/04/2007

Well, I just tried to move on to the latest version, but I got a Drupal 'Page not found' error when trying to browse root. I'm testing the upgrade on a subdomain, to avoid problems with the main domain's live site. I had UC Alpha 7c and Drupal 5.1. I uploaded Drupal 5.3 and UC Alpha 8, ran update.php and then got the error. I changed settings.php and checked htaccess, but I can't figure out what's wrong. I'm using a copy of the live site's database. Before I upgraded Drupal and UC, I checked the subdomain test site and it was working fine. I tried yesterday to perform the update locally, but got the same error.

I thought it wouldn't be that difficult, since kaizen upgraded from a similar scenario. Anything that must be changed on the database file or elsewhere(already had changed any occurrences of the main domain with the correct address for the test subdomain)?

Thanks for your help =)

Update: I guess it was a silly mistake. Just changed frontpage to node at 'Site Information'. However, when I first installed Übercart, I didn't know that such modules should be placed at sites/all/modules. Instead, I placed them at the default /modules directory. I tried to change Übercart's location for this upgrade, but I noticed it was not working correctly. When I tried to enable modules, I got too many errors. Can't I change Übercart's location to sites/all/modules without messing up the site's configuration or database or something? Thanks again.

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

The system table in Drupal's database store's the location of the module files. Move the module files to their new location, and then manually change those rows in the system table.

I almost told you to disable the Übercart modules, but that causes CCK to delete the tables it makes for the product node types. You probably have a lot of pictures that you don't want to upload again. They should really have some kind of warning about that.

Posts: 6
Joined: 10/25/2007

I've installed Ubercart Alpha 8 and workflow_ng, but have some problems with tax calculation. Maybe I am using it wrong.

In Store administration > Configuration > tax settings:
I created two items: StateA_tax and StateB_tax

[BTW: I had one item before alpha 8, and it had an entry in the "Area" column. I could not see how to set up this value for the 2nd item, (or even if it important at all), so I deleted item 1 and recreated it, w/o Area value]

In Site building > workflow_ng > StateA_tax:
I created a condition to "check an order's delivery zone", setting the condition to StateA

Similarly for Site building > workflow_ng > StateB_tax: etting the condition to StateB.

Now when I test the Shopping Cart Checkout, when I select StateA, the proper tax appears. When I modify the zone to StateB, the tax for StateB is added, but tax for StateA is NOT removed.

Am I setting it right? What should I do?

Posts: 659
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

That sounds exactly like the issue we're discussing in this thread: http://www.ubercart.org/issue/1560/texes_line_items_are_not_cleared_afte...

If you reload the page in your browser after you modify the zone to StateB, do the taxes now show up properly?

--

<tr>.

Posts: 6
Joined: 10/25/2007

> If you reload the page in your browser after you modify the zone to StateB, do the taxes now show up properly?
Simple reload just clears all the user data and starts with no taxes, as well as no entry in the address at all, so it is not really a useful step. "Review Order" however does clear the old tax and so just the new tax.

However, the expected behavior is that when you change the zone (state), the old tax should go away and the new tax should appear.

Indeed same problem. I am moving my discussion to that thread.

Posts: 6
Joined: 11/25/2007

Under edit of any product nodes, the box which allows you to choose category of the products have disappeared in alpha 8.

Anyone know what happened? I have trouble categorizing my products because the option have disappeared.

Find orphan products does not show the new products I added either..../admin/store/products/orphans
So, I don't know what to do to category the new product node I have added.

If I try to edit the currently categorized products, the box for category can't be found either.

Someone please gives me some advices.

Thanks
Eric

Never mind, found the solution.......need to re-configure ../admin/content/taxonomy
either ubercart or drupal upgrade must have change the settings, I think.

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

What got changed? Übercart shouldn't have done anything to the taxonomy settings, I don't think.

Posts: 95
Joined: 08/07/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Spreading the word - Ubercart for president.

Just wanted to report that I upgraded my store from

Drupal 5.3 and Ubercart Alpha7c

to

Drupal 5.5 and Ubercart Alpha8

in a single stroke, with not a single error anywhere. A couple of small table alterations were made in the DB, but otherwise, a flawless transition.

--
Posts: 13
Joined: 11/09/2007

Hi folks,

We too got the "unknown column 'shippable'" error as a result of upgrading from alpha7e to alpha8, but update.php has no effect on this error.

What do we have to do manually to fix it?

Thanks,
Chuck and Kim

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

You may need to try grabbing the latest version from the Bazaar page and updating against that. Be sure to backup before doing that.

Alternately, you can look in uc_product.module to see what the column should be and add it in manually through phpMyAdmin or something.

Posts: 86
Joined: 09/24/2007
Getting busy with the Ubercode.

I am having an issue with taxes (i just started doing sandbox testing). when i submit orders as a single line item the total is correct but it messes up the tax and product price. if i submit it as individual items it keeps the correct product and shipping costs but tax is modified and makes the total purchase price off. i can provide screen shots and anything else that would be needed.

edit:
I found my problem, i was taxing a line item and that was throwing it off.

Posts: 86
Joined: 09/24/2007
Getting busy with the Ubercode.

Were there additional changes to the api/payments modules? or am I not calling can delete right? I do not want orders to be deleted and I was under the impression that if a payment had been received it would not be deleteable, but i was able to a minute ago.

case 'can_delete':
return false;
break;

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

Check out your access control... I added in a permission called "delete any order" that lets you delete an order even if it has payments. This was primarily to assist folks doing testing on a site. If you're logged in as user 1, this means you'll always be able to delete any order.

Posts: 86
Joined: 09/24/2007
Getting busy with the Ubercode.

I saw that. I wasn't sure if it applied to user 1 or not. Thanks for clearing that up. In production user 1 probably will not be used much.

Posts: 19
Joined: 12/19/2007

Alpha 8 is mostly working with my fresh install. Two things:

  1. Someone already mentioned this, but the option for Delivery pane to not be shown if products are not shippable is not working. I poked around in the code via bazaar and from what I can see the only place that the uc_cart_delivery_not_shippable variable is evaluated is in the billing pane. There are no checks for the Delivery pane for whether the cart is shippable. However, I'm not sure what the patch should be... I did confirm that the shippable variable is set to 0 in the uc_products table for the item in question.
  2. The "Add to cart redirect" is not working. It always goes back to the product page. I'm not sure what the problem is here since I confirmed that the add_to_cart() function is returning the correct redirect value. Anyone else have this problem?
  3. Kind of minor, but worth a mention. The line item taxes calculation isn't being updated if I change the Delivery Zone more than once. What triggers line items to be recalculated?
Posts: 19
Joined: 12/19/2007

Just an update that the issue I mentioned in number one is fixed in bazaar. For those waiting I've attached a patch.

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

Thanks for making the patch on this. Smiling

Posts: 46
Joined: 01/02/2008

Not sure if this is just my install being messed up, but it seems like uc_file.install isnt firing at all.

Drupal 5.5 - clean install of ubercart alpha 8.

I've tried to debug, even putting a " die('this works'); " at the top of the uc_file.install, but it never seems to get called. If you add the tables by hand the module works as expected.

Can anyone else confirm this?

Posts: 328
Joined: 08/07/2007
Administrator

Hmm, odd. Had the module been installed before? If you browse to admin/build/modules/uninstall and see that File Downloads is listed in modules that can be uninstalled, the installation of tables won't fire because Drupal thinks the tables are already installed. That's one guess I have.

--

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Posts: 5
Joined: 01/07/2008

I've been having a bit of trouble with the file download feature in ubercart. I've been starting with a clean install of both drupal (5.5) and ubercart (Cool, and I can't help but feel as though I've left out an important step somewhere. I don't know maybe I have, maybe I haven't.

I'll start by saying that I am pretty new to drupal. A lot of the more complicated bits go right over my head. I'm not completely inept, but I'm more of an artist and a designer than a programmer.

The problem that I have been having is that when I attempt to upload a file at /shop/admin/store/products/files, I get the message "warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/upstre5/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/upstre5/public_html/folksongsingalong.com/shop/sites/all/modules/ubercart/uc_file/uc_file.module on line 763."

When I attempt to set the path in the file download settings, I get the message that whichever folder I select "is not a valid file or directory."

So I think what the problem is is that I haven't the slightest idea where the file download directory is. But I'm not completely sure. I'm almost wondering if this could be a compatibility issue with the two latest versions of drupal and ubercart. Does anybody have any insight into this? What am I doing wrong?

Posts: 950
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Well I see two issues here, one is the open_basedir restriction. This is something that you (if you have Apache knowledge) can change in your vhosts.conf file, or you can ask your hosting provider to do it for you. Chances are they'll have no problem doing it.

The other issue is file permissions, or the file location itself. If you're sure you've setup the File Downloads folder correctly, /admin/store/settings/products/edit/features (File Downloads config), then it's a permissions error.

I would setup your Downloads folder to look for an absolute path, in other words:
/home/upstre5/public_html/folksongsingalong.com/files

(make sure there is a directory here and that you have given it global read/write permissions - you can do this easily in FTP software, such as FileZilla, by creating the directory, right-clicking it and choosing Permissions)

open_basedir restriction basically means that, "PHP is only allowed to access files from within this directory and its subdirectories" and if you try to grab a file from outside that protected directory, you get that restriction error. This is mainly helpful if you are storing your files outside the public_html folder, or "webroot".

I hope this makes sense, feel free to ask more questions if you still need help. You might try searching the forum as well, since your problem is not an uncommon one Smiling Good luck!

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 5
Joined: 01/07/2008

Thanks for the help. I think my real problem was that I was just clueless as to the way in which I needed to write down the absolute path. I'm a little embarrassed to say that, but I'm not too experienced so I guess I shouldn't worry about it. Now that I am sure that I've got the right directory for my file downloads the rest should be alright. Anyway, thanks again

Posts: 4
Joined: 01/03/2008

eric,
I have the same problem - category fileds disappeared after movong the database to live server. Can you please describe your solution? Thanks!

Posts: 6
Joined: 11/25/2007

the solution.......need to re-configure ../admin/content/taxonomy
either ubercart or drupal upgrade must have change the settings, I think.