englishchrissy Posted March 28, 2006 Posted March 28, 2006 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. Quote Webmaster www.SexoticToys.co.uk
jefs.42 Posted March 29, 2006 Posted March 29, 2006 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. Quote
englishchrissy Posted March 29, 2006 Author Posted March 29, 2006 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!!! Quote Webmaster www.SexoticToys.co.uk
Recommended Posts
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.