0

Fatal error: Call to a member function getSessionedUser()

Fatal error: Call to a member function getSessionedUser() on a non-object in /var/www/html/yahoo/index.php on line 26

PHP SDK
sampleapp.php
line 26
$user = $session->getSessionedUser();

How do you resolve the above Fatal error?

I notice the first time I load the smapleapp.php on Canvas View and the page ask for permission Agree Not Agree. I couldn't click on the button. I skip the page and reload the app. Then I keep getting this same error. Even after I refresh the page, delete the cache, cookie. Same error.

by
23 Replies
  • Usually this error is caused by a wrong application and secret key being used in the application or lack of permissions to access profile data (in the scopes). Sometimes when copy / pasting keys there are some underscores or dashes that remain or don't get picked up, I would start by checking for those. There are a few people that are reporting the issue even if that information is correct, so please let us know if it continues.

    Jonathan LeBlanc

    QUOTE (vivaty.menlopark @ Nov 24 2008, 07:40 PM) <{POST_SNAPBACK}>
    Fatal error: Call to a member function getSessionedUser() on a non-object in /var/www/html/yahoo/index.php on line 26

    PHP SDK
    sampleapp.php
    line 26
    $user = $session->getSessionedUser();

    How do you resolve the above Fatal error?

    I notice the first time I load the smapleapp.php on Canvas View and the page ask for permission Agree Not Agree. I couldn't click on the button. I skip the page and reload the app. Then I keep getting this same error. Even after I refresh the page, delete the cache, cookie. Same error.
    0
  • Confirmed. Everytime you make any changes on your app permission, your consumer key and secret will change. Be sure you use the latest consumer key/secret. This note is to help other developers.
    0
  • QUOTE (vivaty.menlopark @ Nov 24 2008, 07:40 PM) <{POST_SNAPBACK}>
    Fatal error: Call to a member function getSessionedUser() on a non-object in /var/www/html/yahoo/index.php on line 26

    PHP SDK
    sampleapp.php
    line 26
    $user = $session->getSessionedUser();

    How do you resolve the above Fatal error?

    I notice the first time I load the smapleapp.php on Canvas View and the page ask for permission Agree Not Agree. I couldn't click on the button. I skip the page and reload the app. Then I keep getting this same error. Even after I refresh the page, delete the cache, cookie. Same error.


    I am getting the same error message as mentioned above but never get prompted to verify access.

    I have checked and quadruple checked keys, taking them directly from my Dashboard under My Projects. I assume that the 3 requested keys are all the ones listed under "OAuth Applications"?

    I gather from the SDK that sampleapp.php should be ready to go (with the right keys and on the registered domain).

    This my first steps into APIs & would appreciate any help on this matter.

    Thanks in advance.
    0
  • QUOTE (Tsunami R @ Dec 26 2008, 07:32 AM) <{POST_SNAPBACK}>
    I am getting the same error message as mentioned above but never get prompted to verify access.

    I have checked and quadruple checked keys, taking them directly from my Dashboard under My Projects. I assume that the 3 requested keys are all the ones listed under "OAuth Applications"?

    I gather from the SDK that sampleapp.php should be ready to go (with the right keys and on the registered domain).

    This my first steps into APIs & would appreciate any help on this matter.

    Thanks in advance.
    0
  • After installing Apache, PHP, Curl and tackling all kind of installation problem to get the sample php code running (for which not documentation exists on Yahoo website so far as I could find) I finally got the sample code running, but I got the same error as the author here above.Any help on this problem would be very nice. This is also my first application. Is this so made so difficult on purpose to use the soccial API or is it just me?
    0
  • Hi guys,

    If the keys and permissions are correct, let's try a few other things. First off, is the PHP SDK reporting back errors to your error log? If so, can someone please post your error logs to see what the issue is?

    Next, it may help to create another open application and trying your code in that (in case there was an application error). I'm not seeing this issue when I'm creating applications so unfortunately I can't tell you exactly what's going on here...but if it's a bug we'll get it worked out.

    Another option, let's try just stripping down that sample code into the elements that are causing the issue here. Try implementing just this code when testing (this is what I'm using that works well for one of my applications):
    CODE
    require_once('/your/path/Yahoo.inc');
    $containerSession = YahooSession::requireSession(Config::$YAP_APPLICATION_KEY, Config::$YAP_APPLICATION_SECRET);
    $userSession = $containerSession->getSessionedUser();


    If that succeeds then you can try echoing out the user guid by using echo $userSession->guid;.

    If there is a bug here the error logs should help us identify it. Then we can work on getting it fixed for all users.

    Thanks and happy holidays.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network

    QUOTE (martin u @ Dec 29 2008, 05:49 AM) <{POST_SNAPBACK}>
    After installing Apache, PHP, Curl and tackling all kind of installation problem to get the sample php code running (for which not documentation exists on Yahoo website so far as I could find) I finally got the sample code running, but I got the same error as the author here above.Any help on this problem would be very nice. This is also my first application. Is this so made so difficult on purpose to use the soccial API or is it just me?
    0
  • Hi,
    This is the code. Error :

    Fatal error: Call to a member function getSessionedUser() on a non-object in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yahoo.php on line 8

    which is: $user = $session->getSessionedUser();

    Note: I created a new open application. (I removed the key details belo). After I created this new Open application I did not get an Application ID, only a consumer and secret key. I used the application ID given created by a General Access application. ( I have no general.
    App ID, I can't remove them).

    <?php
    ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . 'c:\program files\PHP\ext');
    require("Yahoo.inc");
    $consumerKey= "dj0....--";
    $consumerKeySecret = "1a1a...";
    $applicationId = "3Wfxd...";
    $session = YahooSession::requireSession($consumerKey, $consumerKeySecret, $applicationId);
    $user = $session->getSessionedUser();
    $profile = $user->loadProfile();
    $presence = $user->getPresence();
    $start = 0; $count = 100; $total = 0;
    $connections = $user->getConnections($start, $count, $total);
    $updates = $user->listUpdates();
    $connectionUpdates = $user->listConnectionUpdates();
    header("Content-Type: text/html; charset=utf-8");

    etc...
    0
  • ( I have two general App ID's, I can't remove them).
    0
  • The app id will not be necessary when creating the session. You just need to pass in your keys as the first and second arguments for the function. What happens when you use that small code sample I added to a PHP file on a server? Do you get the same error?

    - Jon
    0
  • There are a few debug variables you can set in the sdk to print out errors that will definitely help in debugging issues like this. It'll tell you if a token was rejected.

    Debug to the page:
    CODE
    include "lib/Yahoo.inc";

    $GLOBAL_YAHOO_LOGGER_DEBUG = true;
    $GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION = "CONSOLE";


    Debug to the error log:
    CODE
    include "lib/Yahoo.inc";

    $GLOBAL_YAHOO_LOGGER_DEBUG = true;
    $GLOBAL_YAHOO_LOGGER_DEBUG_DESTINATION = "LOG";
    0
  • Hi Jon -

    I tried your suggestion to work up to:

    CODE
    $userSession->guid;


    This worked -- however my program is failing on this line:

    CODE
    $user_profile = $yahoo_user->loadProfile();


    I am getting this error message in my error log - I put it in a codebox b/c it was messing up the post ...:

    CODE
    [25-Jan-2009 20:47:34] DEBUG - YAP AT: A=vTnW5kfsjzl4Zmz97msev1.YY5MDAh.wohbpoRwOSvGI2nkbrH4_r8AMflkK749f..FmjDFzTD6xmj
    mWcJ2ZMAFaa2sKq9cmgS5dV3E.EvBC355I2Iu3A1x9CcAa2UVTCMwOr6tkdRFflLU.hyNz.P8XgnxA3b
    a
    av77KuF44Hk6qiH6ybcSVp.XRfV4uXypiceY1TPAzsIHV1OoxfCpHKDE86WjpDkIz2a7qS5K7JTJCQff
    I
    Q4GIrCbmqTfNCnLkb0RsVJnWC.ZFW.Jtl6oV7UnQZj9SW9r0vDzlxfp3UWvCIM6HuQEU9kFYhSYs1kCw
    h
    CCLY_XmnD0r.kOjjnfmo.03Q_6WXHfRynvWQSVe2t58j2CAVuqY2d6TI7Y7ayhewJXvVPRSO_GT.d7lQ
    K
    IbktZ3EXk9ch3haahXXgb130LyW33nKIjfmvfHh3GFoQIWnGxtDBxQXc0E_MRjyoC4wvGn66QxwPOXTA
    8
    FPKqxUgAOuNv8R8h6adXINCYTgf3BP6jwouPDmMrAak9guUZle6Qymk8.rRSvaeZ_ivnjB2oEB.CPoV7
    5
    CnijwW7q.2mE3HJbN6i2bjucBf5s9jX501YshDvSbJkNkroSl9K7oSjDqz.5pqio3__6.CU3wEtZswnZ
    n
    Utny2ptyTYWGOiWLaorN9Zl7WBnRzBcProCOgpc0EA22WWSpVOFz3NkSe1PpPRJEHhzgHr4ukddhPD2Q
    m
    KS0hsOWWc0keIEtgwIIH4- ATS: 7031781feffeef5f9d9ce91750dc71caaf018609
    [25-Jan-2009 20:47:34] ERROR - HTTP request failed
    [25-Jan-2009 20:47:34] ERROR OBJECT - Array
    (
    [method] => GET
    [url] => http://social.yahooapis.com/v1/user/PGIWJFSUWHL55JBUNZCUPNI6WE/profile
    [code] => 401
    [requestHeaders] => Array
    (
    [0] => Accept: application/json
    [1] => Authorization: OAuth oauth_version="1.0",oauth_nonce="fbdd4d51cec8c178b04f4d9fcece4d08",oauth_timestamp="1232934454",oauth_consumer_key="dj0yJmk9WWFkTjZ0RFpteTFlJmQ9WVdrOVYxWjBZWHBoTldFbWNHbzlOakUwT0RZMk1EZ3kmcz1j
    b25zdW1lcnNlY3JldCZ4PTRj",oauth_token="A%3DvTnW5kfsjzl4Zmz97msev1.YY5MDAh.wohbpoRwOSvGI2nkbrH4_r8AMflkK749f..FmjDFzTD6xmj
    mWcJ2ZMAFaa2sKq9cmgS5dV3E.EvBC355I2Iu3A1x9CcAa2UVTCMwOr6tkdRFflLU.hyNz.P8XgnxA3b
    a
    av77KuF44Hk6qiH6ybcSVp.XRfV4uXypiceY1TPAzsIHV1OoxfCpHKDE86WjpDkIz2a7qS5K7JTJCQff
    I
    Q4GIrCbmqTfNCnLkb0RsVJnWC.ZFW.Jtl6oV7UnQZj9SW9r0vDzlxfp3UWvCIM6HuQEU9kFYhSYs1kCw
    h
    CCLY_XmnD0r.kOjjnfmo.03Q_6WXHfRynvWQSVe2t58j2CAVuqY2d6TI7Y7ayhewJXvVPRSO_GT.d7lQ
    K
    IbktZ3EXk9ch3haahXXgb130LyW33nKIjfmvfHh3GFoQIWnGxtDBxQXc0E_MRjyoC4wvGn66QxwPOXTA
    8
    FPKqxUgAOuNv8R8h6adXINCYTgf3BP6jwouPDmMrAak9guUZle6Qymk8.rRSvaeZ_ivnjB2oEB.CPoV7
    5
    CnijwW7q.2mE3HJbN6i2bjucBf5s9jX501YshDvSbJkNkroSl9K7oSjDqz.5pqio3__6.CU3wEtZswnZ
    n
    Utny2ptyTYWGOiWLaorN9Zl7WBnRzBcProCOgpc0EA22WWSpVOFz3NkSe1PpPRJEHhzgHr4ukddhPD2Q
    m
    KS0hsOWWc0keIEtgwIIH4-",oauth_signature_method="HMAC-SHA1",oauth_signature="dRxfvDc7tzGHL0Vzq1wOKI9QYhw%3D"
    )

    [requestBody] =>
    [responseHeaders] => Array
    (
    [Date] => Mon, 26 Jan 2009 01:59:56 GMT
    [WWW-Authenticate] => OAuth oauth_problem="timestamp_refused", realm="yahooapis.com"
    [Vary] => Accept-Encoding
    [Content-Type] => application/json
    [Age] => 0
    [Transfer-Encoding] => chunked
    [Connection] => keep-alive
    [Via] => HTTP/1.1 r1.ycpi.a2s.yahoo.net (YahooTrafficServer/1.17.9 [c s f ])
    [Server] => YTS/1.17.9
    )

    [responseBody] => {"error":{"lang":"en-US","description":"Please provide valid credentials"}}
    )


    I've verified my keys about 20 times and started from scratch about 5 ... I am following Yahoo's tutorial at: http://developer.yahoo.com/yos/tutorials/m...l_tutorial.html. All my efforts have ended with this error ... something about "Please provide valid credentials" which I am sure are correct.

    I have not pushed my application "Live" so this error is generated when I push "Preview" from the Yahoo devtool.

    Thanks in advance for the help!

    -geoff.
    0
  • Geoff,

    The 'timestamp_refused' error occurs when the oauth_timestamp parameter is outside a permissible range (I believe 3600 seconds) compared to the system time of the oauth servers. I would make sure that your server clock is accurate, as that timestamp is generated from OAuthRequest::generate_timestamp(), which returns the current time() value.
    0
  • hi , i face the same question ,
    Fatal error: Call to a member function getSessionedUser() on a non-object
    i go to look the error log,
    ERROR - Error making libcurl request(https://api.login.yahoo.com/oauth/v2/get_request_token): SSL certificate problem, verify that the CA cert is OK. Details:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    ERROR - OAuth call to get request token failed
    ERROR - Failed to create request token


    my php version : 5.2.6
    so, can u tell me what's the answer to solve it ?
    0
  • From the error it looks like there's an issue with the certificate - have you verified that your certificate is valid?

    - Jon

    QUOTE (小馬 @ Apr 16 2009, 02:43 AM) <{POST_SNAPBACK}>
    hi , i face the same question ,
    Fatal error: Call to a member function getSessionedUser() on a non-object
    i go to look the error log,
    ERROR - Error making libcurl request(https://api.login.yahoo.com/oauth/v2/get_request_token): SSL certificate problem, verify that the CA cert is OK. Details:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    ERROR - OAuth call to get request token failed
    ERROR - Failed to create request token


    my php version : 5.2.6
    so, can u tell me what's the answer to solve it ?
    0
  • This is the error I am getting.
    [Thu Oct 15 11:40:17 2009] [error] [client 10.66.75.99] ERROR - Error making libcurl request(https://api.login.yahoo.com/oauth/v2/get_request_token): SSL certificate problem, verify that the CA cert is OK. Details:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    [Thu Oct 15 11:40:17 2009] [error] [client 10.66.75.99] ERROR - OAuth call to get request token failed
    [Thu Oct 15 11:40:17 2009] [error] [client 10.66.75.99] ERROR - Failed to create request token
    [Thu Oct 15 11:40:17 2009] [error] [client 10.66.75.99] ERROR - Failed to create authorization URLs

    Please help me.
    0
  • I am getting a similar error - I checked both the keys, and have them exactly as rendered in the page between the <code> tags.
    I am doing this on a development server that is not publicly available, does the OAUTH mechanism require being able to call the requesting page? Or is there something else at issue here?

    DEBUG - HTTP request details
    DEBUG OBJECT - Array
    (
    [method] => POST
    [url] => https://api.login.yahoo.com/oauth/v2/get_request_token
    [code] => 401
    [requestHeaders] => Array
    (
    [0] => Accept: application/json
    [1] => Content-Type: application/x-www-form-urlencoded
    )

    [requestBody] => oauth_callback=http%3A%2F%2Fdev.newsroom.newser.com%2F~bmcinturff%2Fyahoo%2Ftest.php&oauth_consumer_key=dj0yJmk9SjRhMkk2ZUloWTZNJmQ9WVdrOWNuTnNlRXgyTjJjbWNHbzlNV
    FU0TlRZMk56SXlPQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD03MA--&oauth_nonce=ed6c5074785b4c9d178cfc8a359f75cd&oauth_signature=rvBGVvEGp3cQoZIQvULaBpEarv0%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1255624824&oauth_version=1.0
    [responseHeaders] => Array
    (
    [Date] => Thu, 15 Oct 2009 16:40:24 GMT
    [P3P] => policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
    [WWW-Authenticate] => OAuth oauth_problem=signature_invalid
    [Connection] => close
    [Transfer-Encoding] => chunked
    [Content-Type] => application/x-www-form-urlencoded
    )

    [responseBody] => oauth_problem=signature_invalid
    )

    ERROR - Failed to create request token: signature_invalid
    ERROR - Failed to create request token
    ERROR - Failed to create authorization URLs
    0
  • QUOTE (Manmada Reddy @ Oct 14 2009, 10:13 PM) <{POST_SNAPBACK}>
    This is the error I am getting.
    [Thu Oct 15 11:40:17 2009] [error] [client 10.66.75.99] ERROR - Error making libcurl request(https://api.login.yahoo.com/oauth/v2/get_request_token): SSL certificate problem, verify that the CA cert is OK. Details:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    [Thu Oct 15 11:40:17 2009] [error] [client 10.66.75.99] ERROR - OAuth call to get request token failed
    [Thu Oct 15 11:40:17 2009] [error] [client 10.66.75.99] ERROR - Failed to create request token
    [Thu Oct 15 11:40:17 2009] [error] [client 10.66.75.99] ERROR - Failed to create authorization URLs

    Please help me.



    The curl certificate error looks like you do not have the curl ca certificate bundle installed. You can find more information here to update/install the certificates - http://curl.haxx.se/docs/caextract.html
    0
  • Hi

    I get the following error:

    ERROR - HTTP request failed
    ERROR OBJECT - Array
    (
    [method] => POST
    [url] => https://api.login.yahoo.com/oauth/v2/get_request_token
    [code] => 401
    [requestHeaders] => Array
    (
    [0] => Accept: application/json
    [1] => Content-Type: application/x-www-form-urlencoded
    )

    [requestBody] => oauth_version=1.0&oauth_nonce=7fc22214d95b77f5d1a5b8ca6bd8f9a7&oauth_timestamp=1262775667&oauth_consumer_key=myKey&oauth_signature_method=PLAINTEXT&oauth_signature=mySign
    [responseHeaders] => Array
    (
    [Date] => Wed, 06 Jan 2010 11:02:37 GMT
    [P3P] => policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
    [WWW-Authenticate] => OAuth oauth_problem=parameter_absent&oauth_parameters_absent=oauth_callback
    [Connection] => close
    [Transfer-Encoding] => chunked
    [Content-Type] => application/x-www-form-urlencoded
    )

    [responseBody] => oauth_problem=parameter_absent&oauth_parameters_absent=oauth_callback
    )

    ERROR - OAuth call to get request token failed
    ERROR - Failed to create request token
    aadj0yJmk9TTlIQnMzRGpCbGtHJmQ9WVdrOVdHSlRibWhQTm1VbWNHbzlNakl5TXpBMk5EQXomcz1jb2
    5zdW1lcnNlY3JldCZ4PTEy<br />
    <b>Fatal error</b>: Call to a member function getSessionedUser() on a non-object in <b>/home/msociali/public_html/mysocial.php</b> on line <b>21</b><br />


    which says oauth_callback is missing, What's the need of this param in initial request which redirects you to the yahoo login page?
    Moreover, does this URL work https://api.login.yahoo.com/oauth/v2/get_request_token??, I tried it from browser too


    Please suggest.
    0
  • The oauth_callback parameter is required in the request to get the request_token as of OAuth version 1.0A to patch a security hole in V 1.0. After the user is sent on to the verification step (to sign in) the callback is used to forward the user back to the application so that the application may exchange the validated request token for the access token. The callback needs to match the application URL that you specified when creating the application or else you'll most likely get an error stating that the callback is not registered with the keys.

    Jonathan LeBlanc
    Technology Evangelist
    Yahoo! Developer Network
    Twitter: jcleblanc
    0
  • apache error log:

    ERROR - Failed to create request token: unknown problem

    very odd.
    why ??!!

    here is the php code :

    <?php
    // Include the PHP SDK to access library
    include_once("./lib/Yahoo.inc");
    // Define constants to store your API Key (Consumer Key) and Shared Secret (Consumer Secret)
    define("API_KEY", "xxxxxx");
    define("SHARED_SECRET", "xxxxx");


    // Initializes session and redirects user to Yahoo! to sign in and then authorize app
    $yahoo_session = YahooSession::requireSession(API_KEY, SHARED_SECRET);
    ................
    0
  • Can you please check to make sure that your keys are correct? That would be the first step I could see.

    - Jon
    0
  • Hello, <br><br>I tried all the things mentioned in the forum earlier but nothing seems to work for me,<br>Also, when i tried to get the access token using get_request_token I got an error that the address is not exist.<br><br>can anybody help me with this?<br><br><br><div class="quote"><div class="quotetop">QUOTE<cite>(Jonathan LeBlanc @ 29 Jan 2010 11:35 AM)</cite></div><blockquote class="quotemain">Can you please check to make sure that your keys are correct? That would be the first step I could see.<br><br>- Jon</blockquote></div>
    0
  • Hi fiend this method does not work. I need help this is my code.require dirname(__FILE__).&#39;/lib/Yahoo.inc&#39;;error_reporting(E_ALL | E_NOTICE); # do not show notices as library is php4 compatableini_set(&#39;display_errors&#39;, true);YahooLogger::setDebug(false);YahooLogger::setDebugDestination(&#39;CONSOLE&#39;);// Your Consumer Key (API Key) goes here. define(&#39;CONSUMER_KEY&#39;, &quot;dj0yJmk9SFF3cnJGdW83MXZLJmQ9WVdrOVNUY3lialp1TXpJbWNHbzlPVFV6TWpjek5EWXkmcz1jb25zdW1lcnNlY3JldCZ4PTk4&quot;); // Your Consumer Secret goes here. define(&#39;CONSUMER_SECRET&#39;, &quot;591a37c72632aa5a18f6d1106e9e871424e5fcc4&quot;); // Your application ID goes here. define(&#39;APPID&#39;, &quot;I72n6n32&quot;);/*define(&quot;API_KEY&quot;,&quot;dj0yJmk9SFF3cnJGdW83MXZLJmQ9WVdrOVNUY3lialp1TXpJbWNHbzlPVFV6TWpjek5EWXkmcz1jb25zdW1lcnNlY3JldCZ4PTk4&quot;);define(&quot;SHARED_SECRET&quot;,&quot;591a37c72632aa5a18f6d1106e9e871424e5fcc4&quot;);*/$auth_url = &#39;&#39;;$session = YahooSession::requireSession(CONSUMER_KEY, CONSUMER_SECRET, APPID);RESULT:ERROR - Failed to create request token: timestamp_refused ERROR - Failed to create request token ERROR - Failed to create authorization URLs :(<br/><br/><div class="quote"><div class="quotetop">QUOTE<cite>(Jonathan LeBlanc @ 29 Dec 2008 12:46 PM)</cite></div><blockquote class="quotemain">Hi guys,<br /><br />If the keys and permissions are correct, let&#39;s try a few other things. First off, is the PHP SDK reporting back errors to your error log? If so, can someone please post your error logs to see what the issue is?<br /><br />Next, it may help to create another open application and trying your code in that (in case there was an application error). I&#39;m not seeing this issue when I&#39;m creating applications so unfortunately I can&#39;t tell you exactly what&#39;s going on here...but if it&#39;s a bug we&#39;ll get it worked out. <br /><br />Another option, let&#39;s try just stripping down that sample code into the elements that are causing the issue here. Try implementing just this code when testing (this is what I&#39;m using that works well for one of my applications):<br /><!--c1--><div class='code generic'><div class='codetop'>CODE</div><pre class='codemain'><code><!--ec1-->require_once(&#39;/your/path/Yahoo.inc&#39;);<br />$containerSession = YahooSession::requireSession(Config::$YAP_APPLICATION_KEY, Config::$YAP_APPLICATION_SECRET);<br />$userSession = $containerSession-&gt;getSessionedUser();<!--c2--></code></pre></div><!--ec2--><br /><br />If that succeeds then you can try echoing out the user guid by using echo $userSession-&gt;guid;. <br /><br />If there is a bug here the error logs should help us identify it. Then we can work on getting it fixed for all users.<br /><br />Thanks and happy holidays.<br /><br />Jonathan LeBlanc<br />Senior Software Engineer<br />Yahoo! Developer Network <br /><br /><!--quoteo(post=1591:date=Dec 29 2008, 05:49 AM:name=martin u)--><div class='quote'><div class='quotetop'>QUOTE <cite>(martin u @ Dec 29 2008, 05:49 AM) <a href="index.php?act=findpost&pid=1591">&lt;{POST_SNAPBACK}&gt;</a></cite></div><blockquote class='quotemain'><!--quotec-->After installing Apache, PHP, Curl and tackling all kind of installation problem to get the sample php code running (for which not documentation exists on Yahoo website so far as I could find) I finally got the sample code running, but I got the same error as the author here above.Any help on this problem would be very nice. This is also my first application. Is this so made so difficult on purpose to use the soccial API or is it just me?<!--QuoteEnd--></blockquote></div><!--QuoteEEnd--></blockquote></div><br/>
    0

Recent Posts

in YAP