1
awarrior
mxdirectory - coupons won't print
  • 2007/9/19 13:36

  • awarrior

  • Just popping in

  • Posts: 48

  • Since: 2006/10/9


In mxdirectory I get this error when trying to print a coupon


Parse error:
syntax error, unexpected T_VARIABLE in
/modules/mxdirectory/printcoupon.php on line 41



The line concerned, line 41 in printcoupon.php
$coupon_handler = new XdirectoryCouponHandler($GLOBALS['xoopsDB']);

Any ideas as to cure the problem??

Using
Xoops Version 2.0.15
MySQL - 4.0.21
phpMyAdmin - 2.8.2.4
I'm smarter than the average bear boo boo......

2
zyspec
Re: mxdirectory - coupons won't print
  • 2007/9/19 14:23

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


You can see a thread that discusses this on the development site but basically if you will do the following it should work:

in /modules/xdirectory/templates/xdir_print_savings.html
comment out line 16. Change it from:
onLoad="window.print()">

to:
// onLoad="window.print()">


and see if that fixes your problem.

3
awarrior
Re: mxdirectory - coupons won't print
  • 2007/9/19 17:55

  • awarrior

  • Just popping in

  • Posts: 48

  • Since: 2006/10/9


Cheers zyspec

Unfortunately this has not made the slightest bit of difference.

Removed that tag 'onLoad="window.print()' completely and put in a different body tag where the code was, just giving the page background colour.

Deleted any existing coupons, replaced with new coupons emptying the 'templates_c' folder every time and still getting the same Parse Error.

There must be something else causing this, but what ??
I'm smarter than the average bear boo boo......

Login

Who's Online

330 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 330


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits