Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session issue #22

Open
BorisKourt opened this issue Feb 3, 2015 · 0 comments
Open

Session issue #22

BorisKourt opened this issue Feb 3, 2015 · 0 comments

Comments

@BorisKourt
Copy link

Sorry a tad new to this, I installed Flickering via composer and everything was going well until I tried:

Flickering::handshake($apiKey, $apiSecret);
$photos = Flickering::getResultsOf('people.getPhotos', array('user_id' => '31667913@N06'));
var_dump($photos);

I then got:

PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'Failed to start the session because headers have already been sent by "/Applications/wordpress-4.0-1/apps/wordpress/htdocs/wp-admin/menu-header.php" at line 132.'  ...

I am using flickering from within a WordPress plugin structure, just wondering if there is a way around having to start this symfony session? (or if there is something else wrong?)

as a note that the following:

Flickering::handshake($apiKey, $apiSecret);

does not produce any errors.

Thanks


complete test file:

<?php namespace agg\flickr;

use Flickering\Facades\Flickering;

$apiKey = <redact>;
$apiSecret = <redact>;

function fetch()
{
    Flickering::handshake($apiKey, $apiSecret);
    $photos = Flickering::getResultsOf('people.getPhotos', array('user_id' => '31667913@N06'));
    var_dump($photos);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant