kousik / simple-linkedinphp

Automatically exported from code.google.com/p/simple-linkedinphp
0 stars 0 forks source link

Library works on localhost, but when I upload to the server demo.php doesn't load and I get 500 Internal Server Error #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Upload 3.1.1 library to server along with OAuth.php
2. Load demo.php (either directly or via ajax)
3.

What is the expected output? What do you see instead?

Expect to see a page similar to http://www.simplelinkedin.com/

Instead I get nothing.  Chrome console log says:
Failed to load resource: the server responded with a status of 500 (Internal 
Server Error)

The server error log says:
[12-Feb-2012 20:35:09] PHP Parse error:  syntax error, unexpected T_STRING in 
/pathtofile/46LIAPIwrappertest/linkedin_3.1.1.class.php on line 1

What version of the product are you using? On what operating system?

3.1.1.  Server is running PHP 5.2.17 with cURL library installed
        localhost is Win7 running PHP 5.2.17 with cURL

Please provide any additional information below.

Other php scripts run fine and I've used the $_SESSION array before without any 
problems.  I guess it's something to do with php.ini?  Maybe something to do 
with write access?

Original issue reported on code.google.com by ed.peciu...@gmail.com on 13 Feb 2012 at 3:15

GoogleCodeExporter commented 8 years ago
I logged this on stackoverflow: http://goo.gl/tOQif

I'm able to get v3.1.0 of the library to work, even though v3.1.1 and v3.2.0 
both result in a parse error (in different parts of the script: line 1 and line 
259, respectively).

I'm going to work with v3.1.0 for now, but I'm curious why the newer versions 
are breaking.

Cheers,

Ed

Original comment by ed.peciu...@gmail.com on 14 Feb 2012 at 3:40

GoogleCodeExporter commented 8 years ago
I hacve this error when i search people 

Array ( [linkedin] => { "errorCode": 0, "message": "Access to people search 
denied.", "requestId": "6Q43I7N8A8", "status": 403, "timestamp": 1353796297166 
} [info] => Array ( [url] => 
https://api.linkedin.com/v1/people-search?keywords=testep [content_type] => 
application/json;charset=UTF-8 [http_code] => 403 [header_size] => 214 
[request_size] => 474 [filetime] => -1 [ssl_verify_result] => 20 
[redirect_count] => 0 [total_time] => 0.889 [namelookup_time] => 0 
[connect_time] => 0.203 [pretransfer_time] => 0.655 [size_upload] => 0 
[size_download] => 144 [speed_download] => 161 [speed_upload] => 0 
[download_content_length] => 144 [upload_content_length] => 0 
[starttransfer_time] => 0.889 [redirect_time] => 0 [certinfo] => Array ( ) ) 
[oauth] => Array ( [header] => Authorization: OAuth 
realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="ec695ce8a
cc80d94da1d977b5821073c",oauth_timestamp="1353796290",oauth_consumer_key="0j1hdq
96hq1p",oauth_token="fd0a0569-29b6-4d88-be86-861f43527ee8",oauth_signature_metho
d="HMAC-SHA1",oauth_signature="1Lg1ApD1ppPcb3usxifNrP7E6%2Fg%3D" [string] => 
GET&https%3A%2F%2Fapi.linkedin.com%2Fv1%2Fpeople-search&keywords%3Dtestep%26oaut
h_consumer_key%3D0j1hdq96hq1p%26oauth_nonce%3Dec695ce8acc80d94da1d977b5821073c%2
6oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1353796290%26oauth_token
%3Dfd0a0569-29b6-4d88-be86-861f43527ee8%26oauth_version%3D1.0 ) [success] => 
[error] => HTTP response from LinkedIn end-point was not code 200 ) Error 
retrieving people search results:

Original comment by ayoub.be...@gmail.com on 24 Nov 2012 at 10:32

GoogleCodeExporter commented 8 years ago
I have same issue. That's seems newest library not work with PHP 5.2.*. I 
downgrade to 3.1.0 and It's works fine.

Original comment by anhem2012 on 17 Oct 2013 at 2:07