OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS Error :PaymentManager::PaymentManager()

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

OJS Error :PaymentManager::PaymentManager()

Postby iijnl » Thu Mar 22, 2012 7:53 am

I am new to OJS and PHP. I have installed OJS successfully in our environment it is working fine except I am getting the following error message can anyone please suggest what should I do get rid of this message?

ojs2 has produced an error Message: WARNING: Missing argument 1 for PaymentManager::PaymentManager(), called in C:\Inetpub\wwwroot\ojs-2.3.7\classes\payment\ojs\OJSPaymentManager.inc.php on line 35 and defined In file: C:\Inetpub\wwwroot\ojs-2.3.7\lib\pkp\classes\payment\PaymentManager.inc.php At line: 22 Stacktrace: Server info: OS: WINNT PHP Version: 5.3.10 Apache Version: N/A DB Driver: mysql DB server version: 5.5.21


Thanks
Arun
iijnl
 
Posts: 2
Joined: Wed Mar 21, 2012 8:47 am

Re: OJS Error :PaymentManager::PaymentManager()

Postby asmecher » Thu Mar 22, 2012 8:25 am

Hi Arun,

See http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7229 for a Bugzilla entry and a link to a patch. The error is cosmetic.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8470
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS Error :PaymentManager::PaymentManager()

Postby iijnl » Thu Mar 22, 2012 1:38 pm

Alec,
Thank you so much for your help. That took care of the issue.

Regards
Arun
iijnl
 
Posts: 2
Joined: Wed Mar 21, 2012 8:47 am

Re: OJS Error :PaymentManager::PaymentManager()

Postby xbonize » Mon Apr 23, 2012 10:44 pm

Hi,

I've same problem as Arun about that error message. Just now I've see http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7229 for the pacth but I don't know how and what to do with that code. :(

Is it remove and add some code at PaymentManager.inc.php?

REMOVE:
* @param $request PKPRequest
*/
function PaymentManager($request) {
$this->request =& $request;

ADD:
function PaymentManager() {
}

/**
xbonize
 
Posts: 7
Joined: Mon Apr 23, 2012 10:32 pm

Re: OJS Error :PaymentManager::PaymentManager()

Postby JasonNugent » Tue Apr 24, 2012 6:37 am

Hi xbonize,

Yes, that's essentially the idea. The PaymentManager() function shouldn't be given that $request variable. You should remove it and the reference to request within the function.

For what it's worth, to apply patches, you use the 'patch' command line tool available in most Linux distributions. You would normally save that file in the root of your OJS installation and then run:

Code: Select all
patch -p1 < thePatchFile


It is safe to delete the patch file afterwards. 'patch' is also available in other UNIX operating sytems, although the version that ships with Solaris has problems with unified diffs, I believe.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 862
Joined: Tue Jan 10, 2006 6:20 am

Re: OJS Error :PaymentManager::PaymentManager()

Postby xbonize » Tue Apr 24, 2012 6:52 am

Hi Jason,

Thanks for your reply. To solve this problem, should I manually edit PaymentManager.inc.php or using that command line tool? From what I understand, that command line tool is for updating OJS code.
xbonize
 
Posts: 7
Joined: Mon Apr 23, 2012 10:32 pm

Re: OJS Error :PaymentManager::PaymentManager()

Postby JasonNugent » Tue Apr 24, 2012 9:40 am

Hi xbonize,

That command line tool is a generic tool for applying a patch to any type of file -- it is not OJS specific. I mentioned it because the file available for download on the bug report is a patch file. You can modify the PaymentManager.inc.php file by hand, if you find that easier. The result will be the same.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 862
Joined: Tue Jan 10, 2006 6:20 am

Re: OJS Error :PaymentManager::PaymentManager()

Postby xbonize » Tue Apr 24, 2012 5:29 pm

Hi Jason,

Thank you for resolving the problems with detailed explanation. :D
xbonize
 
Posts: 7
Joined: Mon Apr 23, 2012 10:32 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests