Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error Messages


Starfyre72

Recommended Posts

Posted

I'm getting an error message for some unknown reason.

 

When I click on orders in the admin panel it comes up with the following.

 

Parse error: parse error, unexpected ';', expecting ')' in /home/httpd/vhosts/allthatglitter.org/httpdocs/catalog/admin/includes/classes/order.php on line 84

 

I've tried adding the ')' and that doesn't seem to work. Any help could be appreciated.

Posted

Hey ,

There could be spaces were there arent suppose to be or if you used the file manager it takes away the / which could lead to the code being corupted. the best way to see is get the original file and compare it on notepad with the one you are using.

Posted

"uknown reason", so you didnt edit the file in anyway?

 

PHP doesnt care about white space

 

you could have this

 

$MyVar                =
"my string value";

and PHP wouldnt care

 

Only time whitespace matters is when it is sent the browser window before trying to send headers

Posted
Hey ,

There could be spaces were there arent suppose to be or if you used the file manager it takes away the / which could lead to the code being corupted. the best way to see is get the original file and compare it on notepad with the one you are using.

 

Actually that will be harder then it sounds. The line in question was added when I installed the Paypal IPN.

 

//begin PayPal_Shopping_Cart_IPN

 

$orders_products_query = tep_db_query("select orders_products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price, products_id from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'");

 

//end PayPal_Shopping_Cart_IPN

 

"uknown reason", so you didnt edit the file in anyway?

Yes sometime ago when I installed the Paypal IPN. Like several months. And I followed their install instructions word for word.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...