Diving in to D6

Posts: 2
Joined: 08/29/2008

Hi everyone,

I'm hoping for some advice from some Ubercart and Drupal developers. I'm starting work on a new eCommerce site and am planning for a couple of months to develop it. I'm the kind of guy who likes to dive head first into the newest technology some times, and from everything I can see, the release of Ubercart for Drupal 6 is well on it's way to completion.

I'm very interested in helping out where I can, and no matter what I hope to further the development in that direction. What I'm trying to decide though, is that if I were to start developing with D6 and UC2, what are the odds it would be stable enough for a launch around the beginning of November?

I know it's impossible to give firm answers on this type of thing, so I'm just looking for opinions from anyone who has some experience with the D6 upgrade path.

Thanks a lot, and I hope to be working with all of you some more soon.

-Dave

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

It really depends on what you need to do with taxes and shipping quotes. Those will be the two final things to come in as we finalize the UI for them. Everything else should be fine, and we'd welcome another set of eyes testing the code. Smiling

fwiw, UC 1.0 has been in use since its alpha releases. We try to make sure all our releases are stable, so ideally even our first beta for D6 will work fine for you. I won't make any promises of course, but chances are good we'll have a 2.0 before November.

Posts: 176
Joined: 08/08/2007
Early adopter... addicted to alphas.Getting busy with the Ubercode.

I might be able to lend a hand too (I'm back for more!). I'm looking at a job for an international company thats selling in 4+ currency's and shipping from possibly 4 warehouse locations, so I would be keen to help on the shipping quotes (i.e. if its going to be international and for multiple warehousing type setups).

--

suffering from too much information

Posts: 2
Joined: 08/29/2008

Hi Ryan,

Thanks for the straight answer. I definitely have no problem that there might still be some bugs to work out. Hopefully I can even help with that some. It's just awesome that you guys have put so much work into it in the first place, and if there's anything I can do to help get it completely ready then I'm all in. The thought of trying to do all of this from scratch.. well.. actually I just won't think about that at all right now.

Taxes won't be a complex issue for us, but down the road I may have some contributions to make in the shipping area.

The store I'm working on sells vintage furniture of all different sizes, which makes shipping a large enough issue that we basically won't try to do it directly through the web site at this point. All the shipping arrangements will be made post sale to start out with, but I will likely be working on some freight shipping integration and we also do a lot with moving companies.. there may be some type of module that comes out of both of those.

For now it will just be the products that are sold on the site and then the shipping worked out later though. More to come later on.

Thanks again!

Dave

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

CpILL wrote:
I might be able to lend a hand too (I'm back for more!).

Awesome news. Welcome back. Cool

Also, @both of you - there's a group on http://support.ubercart.org where we've been trying to keep up to date information on the migration work. A little bit of discussion has been going on in there, too.

One thing that I'm still a little stumped on is how to make the forums and handbooks ready to accommodate both UC 1.x and 2.x... it'll probably be a nightmare no matter what, but I'm all ears. Eye-wink

Posts: 176
Joined: 08/08/2007
Early adopter... addicted to alphas.Getting busy with the Ubercode.

humm, ya, I wonder how they separate out the documentation on Drupal.org... oh they don't really do they (well, only for the API docs). I guess you'd be forced to have each as a separate book or you could write some module which managed multipule copied of the same doc in parllel, sort of like the content translation module in D6 but not based on langauge. It think it a problem that the Drupal hasn't figured out how to tackle yet (judging from the anarchy of the documentation on drupal.org).

As for community development, have you opened up a community CVS or bzr repository? I'll have a look at the community site and see whats what Smiling

--

suffering from too much information

Posts: 9
Joined: 05/10/2008

I am in the process of creating my wife's website and been struggling with D5 or D6, well I too will be going with D6, she is primary looking at allowing digital downloads at first, but we will have to charge state sales tax residents. I have signed up at your support site, but I keep getting access denied.

Posts: 10
Joined: 09/12/2008

I'm playing with the D6 version of the module and having a heck of a time with it. The whole "conditional actions" part of things seems to be pretty buggy, and I'm not sure where to start with debugging it since there's little documentation and I'm not sure what the correct behavior is supposed to be. So this means no auto-decrementing of stock levels…

I'll set that aside for now and focus on trying to code an auction product module. Please keep us up to date, Übercart crew - it's reassuring to hear about progress being made on this.

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

fwiw, the power outages this morning afforded me some time to work on the conditional actions UI, but it's basic status is incomplete and not ready for testing. I'll be sure to post when it's ready for scrutiny.

Posts: 4
Joined: 06/18/2008

I'm curious about the progress, too. I'm starting a new site and it feels like I'm right between D5 and D6 as far as Ubercart goes. I'd prefer to use D6 since it seems like Ubercart is just about there. It sounds like conditional actions is the main problem at this point? Is there anything else in the way?

Any idea on when we will get a 100% usable (not necessarily 1.0, though) Ubercart 6?

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

I'm using Ubercart 2 on a drupal 6 installation on 2 developpment site, and it works pretty good. I still have a random php error :

<?php
warning
: file_get_contents(sites/all/modules/ubercart/uc_cart/uc_cart_block.js?93660) [function.file-get-contents]: failed to open stream: No error in drupal6includeslocale.inc on line 1642.
?>

And, as conditionnal actions isn't usable ATM, I cannot configure some shipping quotes or taxes rules (about that, as the deadline of my 2 project comes to the end, I hesitate to develop a shipping quote module to handle that or if conditionnal actions will become usable soon ? (with a little api documentation ? Eye-wink )

Another recent issue : The views2 integration is broken. I had some views field, arguments, and product views on the begining of my test, and, the 2 latest dev release posted on drupal.org made the views integration broken (no errors at all, but no, filters, no arguments, no fields, etc...)

Posts: 10
Joined: 08/05/2008

zmove wrote:
I'm using Ubercart 2 on a drupal 6 installation on 2 developpment site, and it works pretty good. I still have a random php error :

<?php
warning
: file_get_contents(sites/all/modules/ubercart/uc_cart/uc_cart_block.js?93660) [function.file-get-contents]: failed to open stream: No error in drupal6includeslocale.inc on line 1642.
?>

And, as conditionnal actions isn't usable ATM, I cannot configure some shipping quotes or taxes rules (about that, as the deadline of my 2 project comes to the end, I hesitate to develop a shipping quote module to handle that or if conditionnal actions will become usable soon ? (with a little api documentation ? Eye-wink )

Another recent issue : The views2 integration is broken. I had some views field, arguments, and product views on the begining of my test, and, the 2 latest dev release posted on drupal.org made the views integration broken (no errors at all, but no, filters, no arguments, no fields, etc...)

How do you deal with "This version is incompatible with the 6.x..." in some modules?

Posts: 10
Joined: 08/05/2008

Error while install the latest version of UC2 on D6

Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/mubiecom/public_html/ifd/modules/ubercart/payment/uc_payment/uc_payment.module on line 534

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

That sounds like you're using PHP4, but we're not going to support it any more for UC 2.0. We haven't put that requirement in the info files yet, but it will be there soon.

Posts: 10
Joined: 08/05/2008

Hi Lyle,

Thank you for the answer, but there are 3 options from the hosting provider, when I chose (3), another error occured...Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1186734 bytes) in /home/mubiecom/public_html/IFDMdev/includes/database.mysql-common.inc on line 41

Any suggestion?

(1)PHP5
All files with the extension .php will be handled by the PHP5 engine.
Current, most reliable and best performing version of PHP

(2)PHP5 (Single php.ini)
Same as PHP5, but all subdirectories will use ~/public_html/php.ini

(3)PHP5 (FastCGI)
All files with the extension .php will be handled by PHP5 FastCGI processes.
FastCGI for PHP makes all your PHP applications run through mod_fastcgi instead of mod_suphp. This eliminates the overhead of loading the PHP interpretor on every hit. Since it is always in memory ready for the next hit, the responses will be generated faster.

Posts: 10
Joined: 08/05/2008

2 more problems found in the status report...

user warning: Table 'mubiecom_ssdrp07.uc_payment_credit' doesn't exist query: DELETE upc.* FROM uc_orders AS uo LEFT JOIN uc_payment_credit AS upc ON uo.order_id = upc.order_id WHERE uo.modified <= 1222173965 AND uo.order_status = 'in_checkout' in /home/mubiecom/public_html/IFDMdev/modules/ubercart/payment/uc_credit/uc_credit.module on line 130.

user warning: Table 'mubiecom_ssdrp07.uc_payment_credit' doesn't exist query: DELETE upc.* FROM uc_orders AS uo LEFT JOIN uc_payment_credit AS upc ON uo.order_id = upc.order_id WHERE uo.modified <= 1190565965 AND uo.order_status = 'completed' in /home/mubiecom/public_html/IFDMdev/modules/ubercart/payment/uc_credit/uc_credit.module on line 143.

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

Those last 2 errors were cron errors leftover from a table present in D5 but removed in D6. I just updated the credit module to fix this.

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

Well, we're going to keep requiring PHP 5, but I've reworked that code in uc_payment.module. It should be valid code in PHP 5, though. Maybe it's something specific to the CGI version? I dunno.

Posts: 10
Joined: 08/05/2008

Ryan wrote:
Those last 2 errors were cron errors leftover from a table present in D5 but removed in D6. I just updated the credit module to fix this.

I had downloaded the latest version UC2 6.x-2.x-dev dated 2008-Sep-23 yesterday (as i remembered), but now it was dated back to 2008-Sep-22, http://drupal.org/project/ubercart, is it the latest with credit module updated?

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

I doubt my change has been pushed to CVS... it was a quick, small change. It would be in the Bazaar repo.

Posts: 10
Joined: 08/05/2008

Another warning...

warning: file_get_contents(modules/ubercart/uc_cart/uc_cart_block.js?81471) [function.file-get-contents]: failed to open stream: No such file or directory in /home/mubiecom/public_html/IFDMdev/includes/locale.inc on line 1642.

Posts: 8
Joined: 09/11/2007

My logs are filling up with thesePHP errors:
file_get_contents(sites/all/modules/ubercart/uc_cart/uc_cart_block.js?81749) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in /home/mambear/www/includes/common.inc on line 2261.

And these 404 messages, in various incarnations:
http://www.mamabearproductions.com/sites/default/files/js/)))1e(-d.2e,-d.2c);G(42&&1g(d,

This has all begun after upgrading to the latest 6-dev version. I seemed to get rid of the second error by dumping everything in my cart, therefore my cart block is not showing.

I updated a few other modules, but I'm pretty sure CCK and Views aren't doing this.

Posts: 2
Joined: 09/13/2008

It appears this is happening in uc_cart/uc_cart.module on line 266. I'm not sure why this file can't be cached, but this is at least a temp patch to stop the errors:

Change line 266 to read:
uc_add_js(drupal_get_path('module', 'uc_cart') .'/uc_cart_block.js', 'module', 'header', FALSE, FALSE);

I'd like to hear from the Ubercart ninjas if this is a good solution or not.

Thanks,
Shawn

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

Hmm... I'm not entirely sure if a recent commit by Lyle will fix this or not, but we had to revert our usage of uc_add_js() to drupal_add_js(). They've added a new method for caching .js files based on the query string (the data after the ? in the URL), and our previous solution was conflicting with it.

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

http://drupal.org/node/298331

In Drupal 6, the JavaScript caching was changed a little bit, making uc_add_js() obsolete, and thus breaking locale.module. Either stop using uc_add_js() or locale and the problem goes away. The latest code in the Bazaar repo changes uc_add_js() back to drupal_add_js().

Edit: Bah, just a little late.