By cinquetooty on
Hi,
I've been trying to get emailed transactions to include details of the transaction - I looked in the store module - that's where a lot of the problems seem to source from. Without changing a thing my site is now damaged - producing the following error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/inspecto/public_html/sites/default/modules/ecommerce/store/store.module on line 398
Looking at the store module - (after replacing it to no avail) the problem centres around these lines:
function store_admin() {
$op = $_POST['op'];
$edit = $_POST["edit"];
Comments
...continued
(why cut my post in half Drupal?)
No matter what I do to these lines, the error persists - standardise the punctuation, change the order etc. Removing them just tranfers the error message to a different line number.
How on earth can I diagnose this?
I'm no dummy and it's so frustrating to be powerless to diagnose and fix this.
Please help
Ian
syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_
try
$edit = $_POST['edit'];
single quotes
if does not help google T_STRING or see www.php.net
possible problem if using this $edit in sql
Sorted
I tried changing those quotes - it made no difference no matter what way they were entered!
The only thing that fixed this was to re-install the ecommerce module. Then this irrational-loooking error stopped (though I had to redo some of the 'forks' that I'd put in place - though these weren't in the store module). I can only guess that something that I'd done elsewhere was causing Drupal to create a parse error when it came to looking at the store.module.
Hopefully my hair will grow back!
Thanks werty