I get following error message when I try to install installing Cc Ubercart 6.14 on Drupal 6.19
Parse error: syntax error, unexpected T_STRING in .../sites/all/modules/mutual_credit/extensions/cc_uc.module on line 21
Hope this bug report can be helpful ...

Comments

matslats’s picture

The ubercart module wasn't supposed to be in the package and is not yet supported.
Please contact me privately if you want work done on this.

socialnicheguru’s picture

you need to add a " ' " around silver-01.jpg to the line

line 21:
 $img = theme('img', path_to_theme().silver-01.jpg);

to

 $img = theme('img', path_to_theme().'silver-01.jpg');


line 45:
 'description' => t('Process transactions through internal 'silver' accounting system'),

to
 'description' => t('Process transactions through internal "silver" accounting system'),

line 55:
 if (($order = uc_order_load($order_id)){
to
 if (($order = uc_order_load($order_id))){

line 81
   $options = array('transaction_type' => 'ubercart', state => TRANSACTION_TYPE_COMPLETED)

   $options = array('transaction_type' => 'ubercart', state => TRANSACTION_TYPE_COMPLETED)))

If someone could make a patch it would be great

inteldesk’s picture

I made changes as shown, failed, until I corrected line 80 to: $options = array('transaction_type' => 'ubercart', state => TRANSACTION_TYPE_COMPLETED))) {

the problem was a broken line with code in line 81. All I did was backspaced it up to line 80 and made above correction. Works now.

matslats’s picture

Status: Active » Closed (fixed)