| Author |
Topic  |
asela
New Member
USA
73 Posts Pre-sales questions only (More Details...)
|
Posted - 08/22/2012 : 18:59
|
My server gives this error code and returns a BAD request to my card processor, First Data. So fater baeting around the bush for many days my webhost has found the following error in ghe error logs.
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0.
My host say this is some bad code on the ECT cart. How can I fix this?How can I enable register globals?
Asela |
|
insight
ECT Moderator
USA
2989 Posts |
|
asela
New Member
USA
73 Posts Pre-sales questions only (More Details...)
|
Posted - 08/22/2012 : 19:58
|
Nope. I looked at that. I am using Dreamweaver so that is not an issue. Any other ideas? There has got to be a file that can be modified.
The funny thing there are 5-6 posts with the same error message and they all suddently stop without an answer.
Asela |
Edited by - asela on 08/22/2012 20:10 |
 |
|
Andy
Administrator
69140 Posts |
|
asela
New Member
USA
73 Posts Pre-sales questions only (More Details...)
|
Posted - 08/23/2012 : 04:53
|
OK did that. I mean used File Zilla to upoad the files. What I see the file sizes are lower on the site. For example the file admin.php is 5632 bytes and on the server it is 5533 bytes. But if I delete the file on the local server and downoad the file on the server, the file size again becomes 5632. So that does not prove anything.
The transfer mode is auto.
So I really can't tell any difference. So what do I look for? How do I compare?
Asela |
Edited by - asela on 08/23/2012 05:01 |
 |
|
Andy
Administrator
69140 Posts |
|
dewers
Ecommerce Template Guru
USA
1047 Posts |
|
asela
New Member
USA
73 Posts Pre-sales questions only (More Details...)
|
Posted - 08/23/2012 : 12:32
|
Hi Andy and Dewers,
Nope I have not made any changes EXCEPT to the incart.php file where I had to insert " TRUE " at line 3378 (For the relay response which First Data requests a CAPITAL " TRUE ". If I don't use CAPITAL " TRUE what I get is " x_relay_response : Parameter x_relay_response must be empty or TRUE ". Just to make sure I put back the original incart.php file back and sure enough it won't even get the part where you can enter the credit card number. Just says there is an error fomr submission.
Dewers I am using Authorise.net SIM with First Data. Not sure what you mean by customer payment provider files?
So gentleman I am back to square one. Any new ideas? So seven days and counting to integrate ECT with First Data.
Asela |
Edited by - asela on 08/23/2012 12:55 |
 |
|
Andy
Administrator
69140 Posts |
|
asela
New Member
USA
73 Posts Pre-sales questions only (More Details...)
|
Posted - 08/23/2012 : 13:06
|
Oh yes. I didn't make that mistake again.
The thing is I never got these error using the First Data Demo cart using their test cards.
Asela |
Edited by - asela on 08/23/2012 13:08 |
 |
|
asela
New Member
USA
73 Posts Pre-sales questions only (More Details...)
|
Posted - 08/23/2012 : 18:45
|
I have uploaded every single page including cart.php and wpcponfirm.php using Firezilla and the results are the same.
Could it be an error with my website codes. I find that hard to believe. Checked every single bit of code and still the problem remains.
Any more ideas guys?
Asela |
 |
|
dewers
Ecommerce Template Guru
USA
1047 Posts |
Posted - 08/23/2012 : 18:54
|
Try this:
1. Open vsadmin/inc/inccart.php
2. Replace the following lines (starts at line 56):
$_SESSION['commercialloc_'] = $commercialloc_ = (@$_POST['commercialloc']=='Y');
$_SESSION['wantinsurance_'] = $wantinsurance_ = (@$_POST['wantinsurance']=='Y');
$_SESSION['saturdaydelivery_'] = $saturdaydelivery_ = (@$_POST['saturdaydelivery']=='Y');
$_SESSION['signaturerelease_'] = $signaturerelease_ = (@$_POST['signaturerelease']=='Y');
with these lines:
//ecom-mods.com - START - DRE - 2012-08-23
/*
$_SESSION['commercialloc_'] = $commercialloc_ = (@$_POST['commercialloc']=='Y');
$_SESSION['wantinsurance_'] = $wantinsurance_ = (@$_POST['wantinsurance']=='Y');
$_SESSION['saturdaydelivery_'] = $saturdaydelivery_ = (@$_POST['saturdaydelivery']=='Y');
$_SESSION['signaturerelease_'] = $signaturerelease_ = (@$_POST['signaturerelease']=='Y');
*/
$_SESSION['commercialloc'] = $commercialloc_ = (@$_POST['commercialloc']=='Y');
$_SESSION['wantinsurance'] = $wantinsurance_ = (@$_POST['wantinsurance']=='Y');
$_SESSION['saturdaydelivery'] = $saturdaydelivery_ = (@$_POST['saturdaydelivery']=='Y');
$_SESSION['signaturerelease'] = $signaturerelease_ = (@$_POST['signaturerelease']=='Y');
//ecom-mods.com - END - DRE - 2012-08-23
2. Replace the following line (line 69 after previous step):
$_SESSION['willpickup_'] = $willpickup_ = (@$_POST['willpickup']=='Y');
With these lines:
//ecom-mods.com - START - DRE - 2012-08-23
/*
$_SESSION['willpickup_'] = $willpickup_ = (@$_POST['willpickup']=='Y');
*/
$_SESSION['willpickup'] = $willpickup_ = (@$_POST['willpickup']=='Y');
//ecom-mods.com - END - DRE - 2012-08-23
3. Save and upload.
4. Open vsadmin/shipservice.php
5. Replace the following lines (starts at line 35):
$commercialloc_ = @$_SESSION['commercialloc_'];
$wantinsurance_ = @$_SESSION['wantinsurance_'];
$saturdaydelivery_ = @$_SESSION['saturdaydelivery_'];
$signaturerelease_ = @$_SESSION['signaturerelease_'];
$willpickup_ = @$_SESSION['willpickup_'];
With these lines:
//ecom-mods.com - START - DRE - 2012-08-23
/*
$commercialloc_ = @$_SESSION['commercialloc_'];
$wantinsurance_ = @$_SESSION['wantinsurance_'];
$saturdaydelivery_ = @$_SESSION['saturdaydelivery_'];
$signaturerelease_ = @$_SESSION['signaturerelease_'];
$willpickup_ = @$_SESSION['willpickup_'];
*/
$commercialloc_ = @$_SESSION['commercialloc'];
$wantinsurance_ = @$_SESSION['wantinsurance'];
$saturdaydelivery_ = @$_SESSION['saturdaydelivery'];
$signaturerelease_ = @$_SESSION['signaturerelease'];
$willpickup_ = @$_SESSION['willpickup'];
//ecom-mods.com - END - DRE - 2012-08-23
6. Save and upload.
7. Test checkout.
Daniel Ewers
 Ecom-Mods.com - Rate Our products & services
PHP 100m Product Search Assistant NEW!
View all available PHP extensions from Ecom-Mods.com |
 |
|
asela
New Member
USA
73 Posts Pre-sales questions only (More Details...)
|
Posted - 08/23/2012 : 21:08
|
dewers,
That didn't work. Yes I used Forezilla still to upload. Same erroras before which is Payment shows on my credit card as pending.
I don't think it is any defective code on my website html page or the cart.php page.
Still don't understand there are no errors reported when I use the First Data Demo Account.
I was so hoping that would work.
Gentleman anymore ideas?
Asela |
 |
|
dewers
Ecommerce Template Guru
USA
1047 Posts |
|
asela
New Member
USA
73 Posts Pre-sales questions only (More Details...)
|
Posted - 08/24/2012 : 03:46
|
Yes I have contacted the payment provider and this is what I got. Obviously I have edited the actual email address and the payment Merchant Page ID
1345669021-24935-147606 unexpected response: #<HTTP::Message::Headers:0xb6a54d74 @is_request=false, @reason_phrase="Bad Request", @request_uri=nil, @chunk ed=false, @body_date=nil, @status_code=400, @dumped=false, @request_method=nil, @body_charset=nil, @request_via_proxy=nil, @header_item=[["Date", "Wed, 22 Aug 2012 20:57:00 GMT"], ["Server", "Apache"], ["Content-Length", "345"], ["Connection", "close"], ["Content-Type", "text/html; charset=iso-8859-1"]], @b ody_size=0, @http_version="1.1", @body_type=nil, @request_query=nil> 1345669021-24935-147606 ---------------------------------------------------------------------------------------------------- 1345669021-24935-147606 The parameters are 1345669021-24935-147606 ---------------------------------------------------------------------------------------------------- 1345669021-24935-147606 {"x_email"=>"myname@gmail.com", "commit"=>"Pay With Your Credit Card", "x_exp_date"=>"0913", "x_card_code"=>"[FILTERED]", "actio n"=>"cc_payment", "exact_cardholder_name"=>"John Doe", "controller"=>"payment", "servdt5"=>"1", "merchant"=>"WDD-JINNA-pc5L3QADDQ", "cvd_presenc e_ind"=>"1", "x_card_num"=>"[FILTERED]"} 1345669021-24935-147606 ---------------------------------------------------------------------------------------------------- 1345669021-24935-147606 The session is 1345669021-24935-147606 ---------------------------------------------------------------------------------------------------- 1345669021-24935-147606 ---------------------------------------------------------------------------------------------------- 1345669021-24935-147606 The environment is 1345669021-24935-147606 ---------------------------------------------------------------------------------------------------- 1345669021-24935-147606 CONTENT_LENGTH: 219 1345669021-24935-147606 CONTENT_TYPE: application/x-www-form-urlencoded 1345669021-24935-147606 HTTP_ACCEPT: text/html, application/xhtml+xml, */* 1345669021-24935-147606 HTTP_ACCEPT_ENCODING: gzip, deflate 1345669021-24935-147606 HTTP_ACCEPT_LANGUAGE: en-US 1345669021-24935-147606 HTTP_CACHE_CONTROL: no-cache 1345669021-24935-147606 HTTP_CONNECTION: close 1345669021-24935-147606 HTTP_COOKIE: lang=en; _fd_hco_id=91ee517896972ed0ca5a5d4ac9ddeb02; __utma=269008486.1582473811.1345588529.1345588529.1345588529.1; __utmz=269008486.1345588529.1.1.utmccn=(organic)|utmcsr=google|utmctr=|utmcmd=organic 1345669021-24935-147606 HTTP_REFERER: https://checkout.globalgatewaye4.firstdata.com/collect_payment_data?ant=91ee517896972ed0ca5a5d4ac9ddeb02&merchant=WDD-JINNA-pc5L3QADDQ&order=c892cd2386dab6c7f48f563363eb759da2c2a2d5607025da4e5500cecd646532&t=1 1345669021-24935-147606 HTTP_USER_AGENT: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) 1345669021-24935-147606 HTTP_X_FORWARDED_FOR: 76.95.141.132 1345669021-24935-147606 HTTP_X_FORWARDED_HOST: checkout.globalgatewaye4.firstdata.com 1345669021-24935-147606 HTTP_X_FORWARDED_PROTO: https
Asela |
Edited by - asela on 08/24/2012 03:49 |
 |
|
dewers
Ecommerce Template Guru
USA
1047 Posts |
|
Topic  |
|