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

PHP Notice: Undefined offset: 0 in disqus-php/disqusapi/disqusapi.php on line 79 #10

Open
ceefour opened this issue Dec 16, 2011 · 3 comments

Comments

@ceefour
Copy link

ceefour commented Dec 16, 2011

Running the code in the README :

require 'disqus-php/disqusapi/disqusapi.php';

$disqus = new DisqusAPI(DISQUS_SECRET_KEY);
$threads = $disqus->trends->listThreads();
var_dump($threads);

outputs a notice message :

PHP Notice:  Undefined offset: 0 in disqus-php/disqusapi/disqusapi.php on line 79
@sebilasse
Copy link

same here

@ghost
Copy link

ghost commented May 14, 2014

I've found that this happens when testing on localhost or on a domain that isn't approved in the Disqus settings.

Once I moved to an approved domain, this error disappeared.

Thought this might be useful for anyone else that encounters this.

@samratshamim
Copy link

I have tried the same with Laravel. I have tested in localhost and also in live server. In both cases it returns:

Undefined offset: 0

Is there anyone to help me with this problem?

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

3 participants