Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2009-01-06 18:33:07

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

I look forward to it kimli. You rock.


Art Rogue – Fine Art Photography

Offline

#26 2009-01-07 09:51:53

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

thanks kimili. I’ll check that. I believe i have the option to upgrade to php5 for that domain.


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#27 2009-01-07 20:58:59

kimili
Plugin Author
From: Massachusetts, USA
Registered: 2004-06-17
Posts: 108
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

I’ve updated Kimili Twitter Timeline to Version 1.1 – it adds a number of new features, most of which were requests earlier in this thread. Read more about it here.

Offline

#28 2009-01-09 15:19:18

MikeTheVike
Member
Registered: 2008-06-17
Posts: 47

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

kimili,

I was hoping to use your plugin, but i get an error. After a google search I’ve found that it’s probably caused by settings on my hosting’s server. I use GoDaddy and unfortunately I don’t have a choice as to hosting on the site I want to use the plugin. Any ideas how I might fix this? I’ve also emailed godaddy, but i doubt that will go anywhere.

Tag error: <txp:kml_twitter user=“kimili” /> -> Warning: fopen(): URL file-access is disabled in the server configuration on line 158

Tag error: <txp:kml_twitter user=“kimili” /> -> Warning: fopen(http://twitter.com/statuses/user_timeline/kimili.json?count=1): failed to open stream: no suitable wrapper could be found on line 158

Fatal error: Call to undefined function: file_put_contents() in /home/content/j/h/i/blah/html/miketest/textpattern/textpattern/lib/txplib_misc.php(574) : eval()’d code on line 209

EDIT: I found this, don’t know if it’s applicable to your plugin though…http://pomocnik.com/users/dan/2005/10/warning-fopen-functionfopen-url-file-access-is-disabled-in-the-server-configuration/

Last edited by MikeTheVike (2009-01-09 15:23:53)

Offline

#29 2009-01-09 16:04:49

kimili
Plugin Author
From: Massachusetts, USA
Registered: 2004-06-17
Posts: 108
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

Hi Mike –

Thanks for bringing up this error. The page you found is indeed applicable to the plugin, as the plugin requests a file from twitter.com using fopen. I can work around this restriction. I also see one other problem in your error:

Fatal error: Call to undefined function: file_put_contents() in /home/content/j/h/i/blah/html/miketest/textpattern/textpattern/lib/txplib_misc.php(574) : eval()‘d code on line 209

file_put_contents() is a PHP5 function. If you’re getting an undefined error, that means you must be running PHP4. Do you have any way to upgrade to PHP5 on godaddy?

Cheers,
Michael

Offline

#30 2009-01-09 16:13:52

MikeTheVike
Member
Registered: 2008-06-17
Posts: 47

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

kimili,

thanks for the quick response! Can the first errors regarding fopen in the plugin be corrected by me changing some plugin code?

As far as the other error related to php4, I’m going to contact godaddy to see if I can have it switched. Fortunately this is just a test site, so when I start up another hosting account for the site I’m working on, I can request PHP 5 from the start.

Offline

#31 2009-01-09 16:25:25

MikeTheVike
Member
Registered: 2008-06-17
Posts: 47

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

kimili,

I just changed to PHP 5 in the Godaddy control panel and tried it out and it worked fine with no errors! I guess using PHP 5 fixes the other errors as well. Let me know if you think I still might need to change anything. Thanks again!!

Offline

#32 2009-01-09 16:40:17

kimili
Plugin Author
From: Massachusetts, USA
Registered: 2004-06-17
Posts: 108
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

Mike – Strange! The fopen() error you were getting is a server configuration setting, not a PHP4 incompatibility. I guess GoDaddy’s PHP5 setup is less restrictive.

Glad it worked out for you! Enjoy!

Offline

#33 2009-01-14 14:28:25

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

I’m having another problem. I upgraded to php, and got version 1.0 working perfectly with:
<txp:kml_twitter user=“kemie” count=“3”/>

then I updated the plugin to 1.1, and instead of my 3 tweets, i get:
  1. Dec 31st, 1969
  2. Dec 31st, 1969
  3. Dec 31st, 1969
    all of them linking to
    http://twitter.com//statuses/

going back to 1.0 fixes it, but I’d really like to use the new properties. any clues as to what might be happening?

thanks!


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#34 2009-01-14 15:18:56

kimili
Plugin Author
From: Massachusetts, USA
Registered: 2004-06-17
Posts: 108
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

Kemie –

I suspect that’s due to differences in how the cache is formatted between 1.0 and 1.1. I think what you saw there is 1.1 reading the 1.0 cache file and not making sense of it. There’s 2 things you can try if you reinstall 1.1:

  1. Delete the kemie_twitter.cache file in /textpattern/cache
  2. or temporarily set cache_life="1" in your <txp:kml_twitter /> tag, then refresh your page with the tag output on it. That would rewrite the cache file with the new format.

Let me know if that works for you.

Offline

#35 2009-01-15 09:45:14

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

perfect, that did the trick! thank you so much!


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#36 2009-01-26 23:20:25

johnnie
Member
Registered: 2007-03-10
Posts: 58

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

To those stuck with a host that has fopen() disabled, here’s some code to make this plugin work with cURL instead. Just replace the function kml_get_tweets with the following. Perhaps the plugina uthor could maybe build in some default support for cURL? fopen() is certainly on its way out.

function kml_get_tweets($url = "") {
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_TIMEOUT, 10);
	if ($tweets = curl_exec($ch)) {
		curl_close($ch);
		return json_decode($tweets);
	}
	curl_close($ch);
	return false;
}

Last edited by johnnie (2009-01-26 23:22:52)

Offline

Board footer

Powered by FluxBB