Posts: 321
Threads: 15
Joined: Feb 2012
As I wrote.
When I create a link on Twitter (e.g. mysite.com) your plugin shows this error messages:
Fatal error: Call to undefined function curl_init() in lasttweet_functions.php on line 184
it is connected with the site http://www.longurlplease.com/
My website made with GetSimple CMS is
Arte & Società
www.artesocieta.eu
An indipendent website about Italian Contemporary Visual Arts
Posts: 149
Threads: 8
Joined: Dec 2011
@twodogwalker:
Any news on the rewrite of the plugin? It used to work brilliantly until twitter updates to 1.1 I guess. Would be nice to be able to start using it again soon.
Posts: 22
Threads: 2
Joined: Mar 2012
D.O.
Had another look at the error message: I guess curl isn't installed at your webserver, thats the reason why I could not reproduce your issue. I surrounded these call with a try/catch, giving the short url if curl is not available. See v1.2 in the other reply in this thread.
Please test and revert back if it is working or not.
Frank
(2013-06-04, 06:01:13)D.O. Wrote: As I wrote.
When I create a link on Twitter (e.g. mysite.com) your plugin shows this error messages:
Fatal error: Call to undefined function curl_init() in lasttweet_functions.php on line 184
it is connected with the site http://www.longurlplease.com/
Posts: 22
Threads: 2
Joined: Mar 2012
Hi there!
Well, did my best to counter this one, quite a hassle... I could not find a good way to use this "user based authentication" in Twitter, so what I did was using the app based one.
For this you will need to create an "application" on Twitters to get the necessary keys you need to poll for tweets (and other things).
At this moment I cannot update the version in extend, whenever this is possible again, I will update that one, and ion the meantime you can find it on my personal site here: File
Can you please install this one, test it and let me known if it works?
Thanks,
Frank
(2013-06-27, 18:09:02)Draxeiro Wrote: @twodogwalker:
Any news on the rewrite of the plugin? It used to work brilliantly until twitter updates to 1.1 I guess. Would be nice to be able to start using it again soon.
Posts: 1,928
Threads: 88
Joined: Apr 2010
http://getsimplecms.ru/gs/
Code: Warning: Missing argument 1 for show_tweets(), called in /home/p30318/www/getsimplecms.ru/gs/admin/inc/theme_functions.php(582) : eval()'d code on line 12 and defined in /home/p30318/www/getsimplecms.ru/gs/plugins/LastTweet/lasttweet_functions.php on line 10
Notice: Undefined variable: overwrite_cache in /home/p30318/www/getsimplecms.ru/gs/plugins/LastTweet/lasttweet_functions.php on line 11
Posts: 135
Threads: 10
Joined: Aug 2010
2013-09-10, 23:14:29
(This post was last modified: 2013-09-10, 23:36:40 by Rene.)
Hi Frank,
I'm testing your newest plugin version at http://getsimple.dare-is.nl/test/tweets/
I've put the output from your plugin and the Twitter widget on the same page.
I'm new in this but what is the benefit of putting your plugin (app based authentication from Twitter) i.s.o. the standard Twitter widget on a website?
Posts: 22
Threads: 2
Joined: Mar 2012
oleg,
Sorry for replying this late, busy times...
Two questions when looking into the code:
a) what version of the plugin do you use, the latest?
b) how do you call the function? (e.g. line 582 in your theme_functions.php)
Frank
(2013-09-05, 07:10:33)Oleg06 Wrote: http://getsimplecms.ru/gs/
Code: Warning: Missing argument 1 for show_tweets(), called in /home/p30318/www/getsimplecms.ru/gs/admin/inc/theme_functions.php(582) : eval()'d code on line 12 and defined in /home/p30318/www/getsimplecms.ru/gs/plugins/LastTweet/lasttweet_functions.php on line 10
Notice: Undefined variable: overwrite_cache in /home/p30318/www/getsimplecms.ru/gs/plugins/LastTweet/lasttweet_functions.php on line 11
Posts: 22
Threads: 2
Joined: Mar 2012
Hoi Rene,
Good question! I guess you can say the widget is quick and easy to setp, whilst the plugin give you some more possibilities to style, and caching on the (your) server.
But, to be honest, I am really thinking of stopping the support on this plugin, as I think the method is way too complicated to be used in quick matter. And my php coding isn't advanced enough to solve this....
But, if you want, go ahead and try!
regards,
Frank
(2013-09-10, 23:14:29)Rene Wrote: Hi Frank,
I'm testing your newest plugin version at http://getsimple.dare-is.nl/test/tweets/
I've put the output from your plugin and the Twitter widget on the same page.
I'm new in this but what is the benefit of putting your plugin (app based authentication from Twitter) i.s.o. the standard Twitter widget on a website?
Posts: 135
Threads: 10
Joined: Aug 2010
(2013-10-01, 04:19:43)twodogwalker Wrote: Hoi Rene,
Good question! I guess you can say the widget is quick and easy to setp, whilst the plugin give you some more possibilities to style, and caching on the (your) server.
But, to be honest, I am really thinking of stopping the support on this plugin, as I think the method is way too complicated to be used in quick matter. And my php coding isn't advanced enough to solve this....
But, if you want, go ahead and try!
regards,
Frank
(2013-09-10, 23:14:29)Rene Wrote: Hi Frank,
I'm testing your newest plugin version at http://getsimple.dare-is.nl/test/tweets/
I've put the output from your plugin and the Twitter widget on the same page.
I'm new in this but what is the benefit of putting your plugin (app based authentication from Twitter) i.s.o. the standard Twitter widget on a website?
Hi Frank,
For clarity, your plugin works great. It was the many settings (I'm lazy too) in Twitter before you can use your plugin that people drop out. Especially when most of their then have to go styling.
I therefore can understand that you stop with your plugin.
Regards
Posts: 6
Threads: 2
Joined: Sep 2012
2014-02-13, 03:10:26
(This post was last modified: 2014-02-13, 07:59:31 by drakko.)
error
Quote:Warning: Missing argument 1 for show_tweets(), called in /home/webadedi/public_html/admin/inc/theme_functions.php(552) : eval()'d code on line 4 and defined in /home/webadedi/public_html/plugins/LastTweet/lasttweet_functions.php on line 10
get-simple 3.3.1
lasttweet 1.2
/admin/inc/theme_functions.php(552)
Code: eval("?>" . strip_decode($component->value) . "<?php ");
524-556 /admin/inc/theme_functions.php
Code: /**
* Get Component
*
* This will return the component requested.
* Components are parsed for PHP within them.
*
* @since 1.0
* @uses GSDATAOTHERPATH
* @uses getXML
* @modified mvlcek 6/12/2011
*
* @param string $id This is the ID of the component you want to display
* True will return value in XML format. False will return an array
* @return string
*/
function get_component($id) {
global $components;
if (!$components) {
if (file_exists(GSDATAOTHERPATH.'components.xml')) {
$data = getXML(GSDATAOTHERPATH.'components.xml');
$components = $data->item;
} else {
$components = array();
}
}
if (count($components) > 0) {
foreach ($components as $component) {
if ($id == $component->slug) {
eval("?>" . strip_decode($component->value) . "<?php ");
}
}
}
}
edit:
code-->quote 4 reading
Posts: 6,266
Threads: 181
Joined: Sep 2011
/home/webadedi/public_html/plugins/LastTweet/lasttweet_functions.php on line 10
?
Posts: 6
Threads: 2
Joined: Sep 2012
2014-02-13, 07:47:45
(This post was last modified: 2014-02-13, 07:48:23 by drakko.)
yes
line 10
function show_tweets($overwrite_cache) {
lasttweet_functions.php line 9-13
Code: # main function to call the last tweets
function show_tweets($overwrite_cache) {
$tweets = get_tweet_data($overwrite_cache);
echo format_tweets($tweets);
}
Posts: 6,266
Threads: 181
Joined: Sep 2011
That is what is missing an argument
|