1
lapsa2000
mxdirectory 3.01 RC1 problem with coupon !
  • 2009/1/14 22:17

  • lapsa2000

  • Quite a regular

  • Posts: 247

  • Since: 2006/10/27


when the option of showing coupons, when you click on them and then print, I get this error:

Fatal error: Can not redeclare class xdirectorycouponhandler in C: \ Inetpub \ vhosts \ misitio.com \ httpdocs \ site \ modules \ mxdirectory \ class \ coupon.php on line 79

If the option of showing off coupons, everything returns to normal.

Idea?

Note: not compatible with XOOPS 2.3.x. ... there will be a new version?

Thanks!

xoops 2.0.18.2
PHP 5.2.6
Persevera...y seguiras
Perseverando !!!

2
jlm69
Re: mxdirectory 3.01 RC1 problem with coupon !
  • 2009/1/15 12:30

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


Try going to printcoupon.php around line 40 and change:

include "./class/coupon.php";

to:

include_once "./class/coupon.php";

That should help.

John

3
zyspec
Re: mxdirectory 3.01 RC1 problem with coupon !
  • 2009/1/15 19:36

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


lapsa2000,

There are some additional things that need to be done to get the module to behave properly with PHP5. See this thread to see the changes. The module will work with XOOPS 2.3 series but you will get some notices if you have PHP debug turned on. These won't interfere with correct operation, they're just notices to the developer that the XOOPS core functions are changing and may not work properly in future releases.

4
lapsa2000
Re: mxdirectory 3.01 RC1 problem with coupon !
  • 2009/1/16 12:52

  • lapsa2000

  • Quite a regular

  • Posts: 247

  • Since: 2006/10/27


Quote:

jlm69 wrote:
Try going to printcoupon.php around line 40 and change:

include "./class/coupon.php";

to:

include_once "./class/coupon.php";

That should help.

John


you're a master! Fixed ... thanks! thank you very much!

Persevera...y seguiras
Perseverando !!!

5
lapsa2000
Re: mxdirectory 3.01 RC1 problem with coupon !
  • 2009/1/16 12:54

  • lapsa2000

  • Quite a regular

  • Posts: 247

  • Since: 2006/10/27


Quote:

zyspec wrote:
lapsa2000,

There are some additional things that need to be done to get the module to behave properly with PHP5. See this thread to see the changes. The module will work with XOOPS 2.3 series but you will get some notices if you have PHP debug turned on. These won't interfere with correct operation, they're just notices to the developer that the XOOPS core functions are changing and may not work properly in future releases.


Thanks for your response !!!!...

My English is not very good,

1 - say that in future version of XOOPS, mxdirectory not going to work?
Persevera...y seguiras
Perseverando !!!

6
zyspec
Re: mxdirectory 3.01 RC1 problem with coupon !
  • 2009/1/17 18:00

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Quote:
Thanks for your response !!!!...

My English is not very good,

1 - say that in future version of XOOPS, mxdirectory not going to work?


The notice means that at some time in the future the XOOPS core developers will remove the function. Any modules that use that core function will not work correctly when the function is removed from the core without modification to the module. Unfortunately the XOOPS roadmap isn't clear as to exactly that will occur so the module works "for now" but may stop working in future releases unless the module is updated.

Login

Who's Online

240 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 240


more...

Donat-O-Meter

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

Latest GitHub Commits