Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
Shopping Cart Software Forum for Ecommerce Templates
Home | Profile | Register | Active Topics | Members | Search | FAQ
Click Here To Login
Forgot your Password?



Find us on Facebook

Follow us on Twitter

View our YouTube channel

Ecommerce Templates on Google Plus


 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 register_globals is enabled
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

asela
New Member

USA
73 Posts

Pre-sales questions only
(More Details...)

Posted - 08/22/2012 :  18:59  Show Profile

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

Posted - 08/22/2012 :  19:55  Show Profile  Click to see insight's MSN Messenger address
Does this help at all? http://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=88432

You should not enable register_globals.

Peter

ServeLink
Professional ecommerce web hosting for ASP & PHP
http://servelink.com

Take a look at our image upload/resize tool for the ASP cart
https://servelink.com/cart?gid=7
Go to Top of Page

asela
New Member

USA
73 Posts

Pre-sales questions only
(More Details...)

Posted - 08/22/2012 :  19:58  Show Profile
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
Go to Top of Page

Andy
Administrator

69140 Posts

Posted - 08/23/2012 :  03:22  Show Profile
I think that probably is the issue with the way files are being uploaded. You can test yourself using a program like Filezilla http://filezilla-project.org/

Andy

Ecommerce templates

ECT newsletter
ECT hosting suggestions

Dreamweaver templates

Follow us on Twitter, Facebook, Google + and YouTube



Go to Top of Page

asela
New Member

USA
73 Posts

Pre-sales questions only
(More Details...)

Posted - 08/23/2012 :  04:53  Show Profile
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
Go to Top of Page

Andy
Administrator

69140 Posts

Posted - 08/23/2012 :  05:48  Show Profile
Have you made any edits to admin or inc files? if not there's no need to compare, just upload them using "auto" and the error message should go away.

Andy

Ecommerce templates

ECT newsletter
ECT hosting suggestions

Dreamweaver templates

Follow us on Twitter, Facebook, Google + and YouTube



Go to Top of Page

dewers
Ecommerce Template Guru

USA
1047 Posts

Posted - 08/23/2012 :  10:17  Show Profile
Asela,

You mentioned First Data as your card processor... What payment method are you using for this? Are you using the customer payment provider files, and if so, where did you obtain them?

Daniel Ewers

Ecom-Mods.com - Rate Our products & services

PHP 100m Product Search Assistant NEW!

View all available PHP extensions from Ecom-Mods.com
Go to Top of Page

asela
New Member

USA
73 Posts

Pre-sales questions only
(More Details...)

Posted - 08/23/2012 :  12:32  Show Profile
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
Go to Top of Page

Andy
Administrator

69140 Posts

Posted - 08/23/2012 :  13:05  Show Profile
Did you upload the files using Filezilla though?

Andy

Ecommerce templates

ECT newsletter
ECT hosting suggestions

Dreamweaver templates

Follow us on Twitter, Facebook, Google + and YouTube



Go to Top of Page

asela
New Member

USA
73 Posts

Pre-sales questions only
(More Details...)

Posted - 08/23/2012 :  13:06  Show Profile
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
Go to Top of Page

asela
New Member

USA
73 Posts

Pre-sales questions only
(More Details...)

Posted - 08/23/2012 :  18:45  Show Profile
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
Go to Top of Page

dewers
Ecommerce Template Guru

USA
1047 Posts

Posted - 08/23/2012 :  18:54  Show Profile
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
Go to Top of Page

asela
New Member

USA
73 Posts

Pre-sales questions only
(More Details...)

Posted - 08/23/2012 :  21:08  Show Profile
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
Go to Top of Page

dewers
Ecommerce Template Guru

USA
1047 Posts

Posted - 08/24/2012 :  01:27  Show Profile
Have you contacted the payment provider to see what response, if any, they are getting on their end?

Daniel Ewers

Ecom-Mods.com - Rate Our products & services

PHP 100m Product Search Assistant NEW!

View all available PHP extensions from Ecom-Mods.com
Go to Top of Page

asela
New Member

USA
73 Posts

Pre-sales questions only
(More Details...)

Posted - 08/24/2012 :  03:46  Show Profile
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
Go to Top of Page

dewers
Ecommerce Template Guru

USA
1047 Posts

Posted - 08/24/2012 :  12:53  Show Profile
You said it works when you use the First Data Demo account? When using the demo account, are you making any other changes in the cart admin payment provide section besides account number?

Daniel Ewers

Ecom-Mods.com - Rate Our products & services

PHP 100m Product Search Assistant NEW!

View all available PHP extensions from Ecom-Mods.com
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2013 ecommercetemplates.com Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000