dbotts1 Posted August 27, 2013 Share Posted August 27, 2013 (edited) I get this error code on my page and need help resolving. Parse error: syntax error, unexpected T_ECHO, expecting T_FUNCTION in /home/t****/public_html/override/classes/Cart.php on line 4 Line 4 for of my cart.php 1 <?php 2 class Cart extends CartCore 3 { 4 echo "11111111111111"; 5 public function getProducts($refresh = false, $id_product = false, $id_country = null) 6 { I am a php newbie and need help fixing as my site is down. Thanks, Dennis Edited August 27, 2013 by dbotts1 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 28, 2013 Share Posted August 28, 2013 just remove the echo "11111111111111"; you've got override and someone add this there. echoes in places like this will not work. Link to comment Share on other sites More sharing options...
NemoPS Posted August 28, 2013 Share Posted August 28, 2013 You cannot perform any operation outside a class method Link to comment Share on other sites More sharing options...
Recommended Posts