Zen Cart Logo
Forums / General Questions / Strange PARSE error viewing orders, please help

Strange PARSE error viewing orders, please help

Locked

Views: 1,222

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
13 Sep 2007, 11:08 PM
#1
nullmind avatar

nullmind

Zen Follower

Join Date:
Jul 2007
Posts:
129
Plugin Contributions:
0

Strange PARSE error viewing orders, please help

When I am on Admin and click on any of the "orders" links I get

Parse error: syntax error, unexpected T_CASE in orders.php on line 195
```I check line 195 and it's this

```php
      case 'doRefund':
```Any ideas what is goign on here ? :(
13 Sep 2007, 11:49 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Strange PARSE error viewing orders, please help

What version of Zen Cart are you using?
What addons/contributions have you installed?
I might suggest renaming /admin/orders.php and re-uploading the original.

1 Oct 2007, 6:33 PM
#3
lio avatar

lio

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Strange PARSE error viewing orders, please help

I'm having the same porblem using 1.3.7 and I just added the How did you hear about us Mod. Please help!!!

-Lio

1 Oct 2007, 6:34 PM
#4
lio avatar

lio

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Strange PARSE error viewing orders, please help

I tried putting my old file back in a it's still not working. Ughhhh! I have 15 orders since I added this mod and I can't go back to my backup now!

26 Oct 2007, 2:47 PM
#5
becfret avatar

becfret

New Zenner

Join Date:
Jan 2006
Posts:
3
Plugin Contributions:
0

Re: Strange PARSE error viewing orders, please help

I was having this problem too, I think it was caused by the 'How did you hear about us' module. I was able to solve the problem by using the solution suggested at http://www.zen-cart.com/forum/showpost.php?p=430387&postcount=183

Just replace the orders.php file with the new one. (It will remove any mods that show in the orders page though.)

6 Nov 2007, 10:26 PM
#6
wdeuter avatar

wdeuter

New Zenner

Join Date:
Nov 2004
Posts:
5
Plugin Contributions:
0

Re: Strange PARSE error viewing orders, please help

I was receiving the same error during testing of a move of data from server to server. I removed the 'How did you hear about us' module, and all seems well.

We tested pretty well with the module in, but it all of a sudden appeared. Why? I'm not real sure, but as soon as I removed it - going back to the 1.3.7 code - whalla fixed.