Blank screen on RedSHOP Checkout


  • Your avatar
    seyi    
     5 years ago
    0

    Hey i recently purchased the coupon component for redSHOP and it worked great until final check, where after i click checkout the screen goes completely blank. I thought it was a problem with redSHOP it'self but after talking with the developers they told me this was the error being produced:


    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/content/20/8123920/html/vmsite/administrator/components/com_awocouponrs/helpers/hook_order.php on line 18

    Any assisance would be much appreciated as i been going back and forth with this for a few days now.
  • Your avatar
    seyi    
     5 years ago
    0

    What is your version of php? Is it less than 5.2?
  • Your avatar
    seyi    
     5 years ago
    0

    if so try changing this line in hook_order.php
    <?php
        $parts
    ['filename']::process($order_id);
    ?>


    to
    <?php
        $class 
    $parts['filename'];
        
    $instance = new $class();
        
    $instance->process($order_id);
    ?>


    and see if that fixes the problem.
  • Default avatar
    kblack21    
     5 years ago
    0

    Sorry it took so long to reply, had to work with redSHOP to fix another issue before i could test the code change. My version is PHP 5.2
    but for some reason this fixed it still.

    Thanks