1
alyussiu
xdonations 1.9- Call to undefined function: getinstance() in...
  • 2006/8/28 7:50

  • alyussiu

  • Not too shy to talk

  • Posts: 119

  • Since: 2004/4/9 9


Hello.

I wanted to change the donation module and use the version 1.9 so I uninstalled old version and install the new one.

It seemed to be ok but I actually get an error when I try to test the ipn:

Fatal errorCall to undefined function: getinstance() in /home/modules/xdonations/includes/common.php on line 36


Can someone help me out?

Thanks in advance!

2
jensclas
Re: xdonations 1.9- Call to undefined function: getinstance() in...

You can search for an FAQ on 'undefined function' as an error message. If this doesn;t help more information is required - see the read before you post link below.

3
alyussiu
Re: xdonations 1.9- Call to undefined function: getinstance() in...
  • 2006/8/28 8:29

  • alyussiu

  • Not too shy to talk

  • Posts: 119

  • Since: 2004/4/9 9


Oops, sorry, I think I wrote my post too quickly >_<.

I've searched the net and XOOPS website without really find a reply.

I'm using XOOPS 2.0.14 and the module is xdonations 1.9.

PHP version 4.4.2
MySQL version 4.1.21-standard

About the part of the code which seems to be the problem at line 35 - 36, it's the following:

include_once XOOPS_ROOT_PATH '/class/errorhandler.php';
$xoopsErrorHandler =& XoopsErrorHandler::getInstance();

4
LucaNet
Re: xdonations 1.9- Call to undefined function: getinstance() in...
  • 2006/11/7 16:08

  • LucaNet

  • Friend of XOOPS

  • Posts: 90

  • Since: 2006/5/25


I have the same problem.

XOOPS Version: 2.0.15
Module Name/Version: xdonations 1.9 beta
PHP Version: 4.3.11
MySQL Version: 4.0.27-standard-log
Web Server Software (Apache/IIS/Other): Apache/1.3.37 (Unix)
Operating System: Linux
Theme you are using: obscene_v3_3c
Custom template: Yes


Has anyone found a solution?

5
LucaNet
Re: xdonations 1.9- Call to undefined function: getinstance() in...
  • 2006/11/8 1:11

  • LucaNet

  • Friend of XOOPS

  • Posts: 90

  • Since: 2006/5/25


I have just tried xdonations with 2.2.3a-Final version installed on local server and IPN works properly!

So, I think that in my 2.0.15 version installed on remote server, IPN doesn't work because of changes made by me in some files for installing new modules or features.

But I don't understand which file or which module could be the cause of malfunctioning.


EDIT: Also, I have tried on new local installed 2.0.15 version, with only system and xdonations modules installed. Unfortunately, IPN doesn't work.

So, I think there are some problems with 2.0.15 version.

6
LucaNet
Re: xdonations 1.9- Call to undefined function: getinstance() in...
  • 2006/11/8 13:47

  • LucaNet

  • Friend of XOOPS

  • Posts: 90

  • Since: 2006/5/25


Since I think I cannot use this module in my web site, could anyone suggest me an alternative system working in a similar manner as xdonations?

7
LucaNet
Re: xdonations 1.9- Call to undefined function: getinstance() in...
  • 2006/11/8 16:42

  • LucaNet

  • Friend of XOOPS

  • Posts: 90

  • Since: 2006/5/25


How should I set /xdonations/ipnppd.php permissions?

They are 644 by default. It is correct?

8
LucaNet
Re: xdonations 1.9- Call to undefined function: getinstance() in...
  • 2006/11/11 21:16

  • LucaNet

  • Friend of XOOPS

  • Posts: 90

  • Since: 2006/5/25


Is there a way to solve this issue?

9
intel352
Re: xdonations 1.9- Call to undefined function: getinstance() in...
  • 2006/11/13 16:21

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


Okay:

#1 - the instance error is due to the module being unable to find the XOOPS error handler. I have no clue what has changed in 2.0 series, as I haven't kept up with the development of XOOPS for well over a year. Something tells me that I was probably developing xDonations specifically for the 2.2 series...

#2 - xDonations was verified as working with XOOPS 2.2.3 RC1 (http://dev.xoops.org/modules/xfmod/project/?xdonations) last year, by me. If you see a "notice" error, notices in PHP are typically nothing worth worrying about.

If you want to use this module, I suggest using XOOPS 2.2.3. Additionally, the module is in use here on Xoops.org (note the right-hand side of this page), so you might want to check with the current maintainers of Xoops.org to get THEIR copy of xDonations (in case there were any changes that they had to make)

10
davidl2
Re: xdonations 1.9- Call to undefined function: getinstance() in...
  • 2006/11/13 16:31

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Good to see you about bd_csmc!

Login

Who's Online

326 user(s) are online (266 user(s) are browsing Support Forums)


Members: 0


Guests: 326


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