Welcome, guest Sign In

Troubleshooting Your Application

This section describes some of the errors you might encounter when running the mysocial.php application.

  1. Error: HTTP Code 404 Not Found

    Cause: The application was not found or could not be loaded.

    Fix: Make sure you entered the correct URL in the Application URL field of the Application Editor. Check that you copied the the mysocial.php file to the correct directory on your Web server.

  2. Error: Cannot get yahoo_session.

    Cause: This error message is specific to mysocial.php. It usually occurs if you have changed a setting on the Permissions tab of the Application Editor, but did not update the Consumer Key and Shared Secret values in the PHP source code. Whenever you save a change on the Permissions tab, the Application Editor generates new values for the Consumer Key and Shared Secret.

    Fix: Change the source code of your application. Make sure that the values for the Consumer Key and Shared Secret in the source code match those displayed by the Application Editor.

  3. Error: Class 'YahooLogger' not found in ...

    Warning: include_once(.../Yahoo.inc) [function.include-once]: failed to open stream: No such file or directory in ...

    Cause: The Yahoo.inc file, which contains the Yahoo! Social SDK for PHP, could not be found.

    Fix: Make sure you installed the PHP SDK on your Web server. If the SDK is installed, check your source code, and make sure that the path for Yahoo.inc in the include_once or require_once statement is correct.

  4. Error: Cannot get object-name, where object-name is one of the following: user_profile, user_updates, user_contacts, connections, presence.

    Cause: This error message is specific to mysocial.php. It occurs if the settings on the Permissions tab of the Application Editor are incorrect. For example, if the error message is "Cannot get user_contacts", the permission setting for Yahoo! Contacts is "No Access Needed", but it should be "Read".

    Fix: Specify the correct settings on the Permissions tab of the Application Editor. Note that when you save a change on the Permissions tab, new values for the Consumer Key and Shared Secret are generated, so you must update the source code with the new values.

Table of Contents

Copyright © 2009 Yahoo! Inc. All rights reserved. Copyright | Privacy Policy

Help us continue to improve the Yahoo! Developer Network: Send Your Suggestions