Martialdelastic / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
Apache License 2.0
0 stars 0 forks source link

SSL fatal protocol error when running in CGI mode #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I can not use the 'PHP Client Library for AdWords API v2009' on a server
that is running PHP in 'CGI mode' instead of 'Apache module' mode.

I have two servers with the same configuration, the only difference is that
one is running PHP in CGI mode and the other like en apache module. It
works on the server where PHP runs like an Apache module, with the same
sources and settings.

When PHP runs in CGI mode, and when I try to use the example
'GetAllCampaigns' by an example, I have this error:
Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: SSL:
fatal protocol error in
*********/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php  on line 143

Configuration of the working server (PHP in Apache module mode):

cURL support : enabled
cURL Information : libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3 

OpenSSL support : enabled
OpenSSL Version : OpenSSL 0.9.8l 5 Nov 2009 

PHP Version 5.2.12, Apache module mode

OS : Gentoo

Host : in my enterprise

configuration of the bad server (PHP in CGI mode):

cURL support : enabled
cURL Information : libcurl/7.19.6 OpenSSL/0.9.8n zlib/1.2.3 

OpenSSL support  : enabled
OpenSSL Version  : OpenSSL 0.9.8n 24 Mar 2010 

PHP Version : 5.2.1, CGI mode

OS : Gentoo

Host : OVH (french host)

What steps will reproduce the problem? --> install the PHP client library
on server that runs PHP on CGI mod. (unless it comes from my host)

Original issue reported on code.google.com by imageads...@gmail.com on 20 Apr 2010 at 7:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I made a mistake by putting the title, I did not correctly filled it. Can you 
change it?

It is:
SSL fatal protocol error when running in CGI mode

Apologize.

Original comment by imageads...@gmail.com on 20 Apr 2010 at 8:51

GoogleCodeExporter commented 8 years ago
I have some precisions, now.

Although I have this SSL fatal error, I still have the request answer when I 
just ask
some informations from the API (like with GetAllCampaigns.php). But, to be able 
to
treat the answer, I have to comment the classmaps corresponding to the client 
Object
presents in the request, in the associated file (*****Service.php).

So, the classmap is'nt working in this configuration.

When instanciated objects exist and are present in the classmap array, there is 
a bug
when AdsSoapClient->__soapCall() is called (soapCall at line 177, in 
AdsSoapClient.php).

When I use any object declared in classmap, the script is just stopping when an
object in the soap answer is declared in the classmap array. No bug, no warning,
nothing. If I comment the classmap declaration for the object in the answer, the
script continues. (but, for sure, the needed objects are not generated...)

Original comment by imageads...@gmail.com on 20 Apr 2010 at 3:44

GoogleCodeExporter commented 8 years ago
It looks like this is a bug that was only fixed in PHP 5.2.4:

"Fixed bug #41770 (SSL: fatal protocol error due to buffer issues)."
http://php.net/ChangeLog-5.php#5.2.4

However, this appears to only be a warning and not an error, so you should be 
able to 
ignore it.

I believe the classmap issue is separate, so please open another bug for it.

Original comment by api.ekol...@gmail.com on 20 Apr 2010 at 5:54

GoogleCodeExporter commented 8 years ago
I am effectively able to ignore the warning. (with a '@' before the call of the
SoapClient constructor)

I will open a new issue for the classmap issue. Thanks

Original comment by imageads...@gmail.com on 21 Apr 2010 at 9:02

GoogleCodeExporter commented 8 years ago
Issue 25 has been merged into this issue.

Original comment by api.ekol...@gmail.com on 21 Apr 2010 at 7:09

GoogleCodeExporter commented 8 years ago
Hi,
I get the same error - The script has been working fine 
for quite some time (about 3 months or so )and started to fail all of a sudden 
(since 
Apr 17th) .As far as I know, nothing has been changed on the server. I am very 
new to 
PHP and adwords and any help is appreciated. If you need more details, please 
let me 
know. Thanks.

Error Message:-
Warning: SoapClient::SoapClient(): SSL: fatal protocol error in 
/google_adwords/Common/Lib/AdsSoapClient.php on line 126 
/google_adwords/getcampaignstats.sh: line 9: 31344 Segmentation fault      
/usr/bin/php -c php.ini getcampaignstats.php

Original comment by jeya.sur...@gmail.com on 14 May 2010 at 3:26

GoogleCodeExporter commented 8 years ago
What version of PHP are you using?

Original comment by api.ekol...@gmail.com on 14 May 2010 at 4:20

GoogleCodeExporter commented 8 years ago
Hi,

I have the same problem.

My php version is : 5.2.0-8+etch16

Original comment by tom...@gmail.com on 26 May 2011 at 9:48