sonnyt / tweetie

Simple jQuery Twitter feed plugin
https://sonnyt.com/tweetie
312 stars 117 forks source link

Working on local #62

Closed nufrankz closed 7 years ago

nufrankz commented 8 years ago

Hey! I downloaded this snippet (thank you), and put it to work.

Well, everything's already set, jquery 2.2.0 from google's cdn, the oauth keys (copy/paste), correct paths and the div that will receive the data.

This is my syntax:

$('.contenidotwitter').twittie({ dateFormat: 'de %B del %Y.', template: '<div class="tweet">{{tweet}}</div><div class="fecha">{{date}}</div>', });

Working on Firefox on local mode (Internet just to obtain the feed and jquery) but it doesn't work (just "Loading").

Even the index.html example doesn't get the data.

What I'm doing wrong? Thank you! :)

simongomes commented 7 years ago

I am having the same problem. Is there any solution for it?

nowag commented 7 years ago

@nufrankz @gomessimon Is PHP correctly enabled or installed?

simongomes commented 7 years ago

I have solved it, it was a file permission issue in the server.

Best, Simon Gomes

On Aug 13, 2016 4:45 PM, "Noah Wagner" notifications@github.com wrote:

@nufrankz https://github.com/nufrankz @gomessimon https://github.com/gomessimon Is PHP correctly enabled or installed?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sonnyt/Tweetie/issues/62#issuecomment-239614833, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtz0mzcpTIcShTi-cIZM8aENTJUrEb5ks5qfaAtgaJpZM4HRD2o .

lspoor commented 7 years ago

I'm also receiving this problem? Working locally using MAMP. Any ideas?

simongomes commented 7 years ago

In the server check your api folder and files permission inside it. api folder shoulw have 0755 (rwxr-xr-x) file excess permission, as well as all folders inside it, and all the .php files inside the api folder and it's sub folder should have 0644 (-rw-r--r-) file excess permission. Try it hope it will work, it worked for me.

lspoor commented 7 years ago

Is this when you've uploaded it to a web server? I'm simply just working in a directory on my desktop atm using Mamp as a local server

simongomes commented 7 years ago

I used XAMPP in windows, not sure about MAMP, still check the file permissions. Possible share any error log? What exactly is the error message?

lspoor commented 7 years ago

I've got it partially working now, but another issue - https://github.com/sonnyt/Tweetie/issues/74

amigoow commented 7 years ago

In addition to file permissions it requires PHP Curl enabled.

To enable that go to php.ini file and remove ; from this line: ;extension=php_curl.dll