Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have a problem with checkout_payment.php after installing ccgv 5.16. When I follow the code through with my NuSphere PhpEd debugger i get the following message:-

 

Error: E_PARSE

syntax error, unexpected $end

at checkout_payment.php line 573

 

There are only 572 lines of code in checkout_payment.php.

 

I'm using php5 mysql5 and apache2 and oscommerce-2.2ms2-051113 on localhost. Although its not a new installation, I have not changed any of the 'checkout' programs. I copied the new versions straight over to my htdocs folder. Any ideas would be greatly appreciated. Thanks.

Webmaster www.SexoticToys.co.uk

Posted

That message sounds not much different from PHP's default which would be just something like

'Unexpeted $ on line 573'.

 

Usually means a missing/unclosed { so it keeps going throught the rest of the file but never finds it so it figures the error is at the end (the $). PHP can't really tell what's wrong since and can't assume how much you want between a { and a }. Although, this won't solve the problem, try just adding a } at the end of the file. It may or may not be the right place, but might at least help PHP and you're program track it down a little better.

 

Also, try the main CCGV support thread (not sure the link offhand - sorry), I think I remember seeing a similar issue in there somewhere.

Posted

Thanks to those who responded. I have now found and sorted out the error in checkout_payment.php

I replaced lines 195 - 198 from

 

}<? } else { $coversAll=false;?>

function clearRadeos(){

document.checkout_payment.cot_gv.checked=!document.checkout_payment.cot_gv.checked;

}<? } ?>

 

with

 

}<?php } else { $coversAll=false;?>

function clearRadeos(){

document.checkout_payment.cot_gv.checked=!document.checkout_payment.cot_gv.checked;

}<?php } ?>

 

NOTICE the error is in the openning php syntax, was <? so I replaced it with <?php and it WORKED!!!

Webmaster www.SexoticToys.co.uk

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...