Download & Extend

Call-time pass-by-reference has been deprecated at line 241

Project:Ubercart Barclays EPDQ payment gateway
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Hi,

I've tried installing the EPDQ module on my test server and as soon as it installed I get the following warning message appearing twice before the page loads.

Call-time pass-by-reference has been deprecated ........ payment/uc_epdq/uc_epdq.module on line 241

In the admin pages I'm also getting the following error messages:

warning: Cannot modify header information - headers already sent by (output started at /......../sites/all/modules/ubercart/payment/uc_epdq/uc_epdq.module:241) in /......./includes/session.inc on line 99.
warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /......../includes/session.inc on line 102.

I'm new to debugging modules so really haven't got a clue where to start here, any ideas?

Thanks very much in advance

Andrew

Comments

#1

Status:active» needs review

After a little digging around in some other websites I found that removing the & characters on line 241 so it reads:

$fp = fsockopen( $host, 80, $errno, $errstr, 60 );

cured the error message.

That's about the limit of my PHP so can someone explain this for me and is that going to cause any other problems elsewhere?

Thanks

Andrew

#2

Hi Kalm, sadly the guy that first write this module (or half a module) posted it and then disappeared. I to have just start learning module development but I am aiming all my learning at D7. My plan is to build a fully functioning EPDQ module. If you fancy getting involved or just testing please let me know... That goes for everyone, especially those that already know how to build simple modules!

Thanks.
Jon

#3

Hi Jon,

That would be a shame for this module to not go forward. It does the job though does take some setting up.

I haven't really started looking into D7 yet but will certainly help out where I can though I've never worked on module development before, so far I've just been building sites with modules that were already available.

Andrew

nobody click here