librelist archives

« back to archive

Twitter connector

Twitter connector

From:
rysiek
Date:
2013-01-27 @ 21:22
Hi there,

We are trying to run the Twitter connector on 
friendica.hackerspace.pl. This is what we get in the logs:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PHP Warning:  file_get_contents(view/admin.tpl): failed to open 
stream: No such file or directory in 
/var/www/friendica/include/text.php on line 438

PHP Fatal error:  Call to undefined function set_template_includes() 
in /var/www/friendica/addon/twitter/twitter.php on line 512
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

What I am guessing happened here is that the set_template_includes() 
function was defined in the admin.tpl file, but that is nowhere to be 
found. I have even checked git master, it is simply not there.

Any hints and/or ideas?

-- 
Pozdr
rysiek

Re: [friendica] Twitter connector

From:
Tobias Diekershoff
Date:
2013-01-28 @ 06:32
On Sun, 27 Jan 2013 22:22:54 +0100
rysiek <rysiek@hackerspace.pl> wrote:

> PHP Fatal error:  Call to undefined function set_template_includes() 
> in /var/www/friendica/addon/twitter/twitter.php on line 512

there was a bug with the smarty template which was fixed [1] a month or
so age.

so long
  Tobias

[1]

https://github.com/friendica/friendica-addons/commit/268c296f8b7c9b293808d5c0e3334dce883c9f3c

-- 
           \|/
           O O
/------uUu-/ \-uUu-----------------------------\
|          \_/   Tobias Diekershoff            |
| Web ........ www.diekershoff.net             |
|   @$HOME ... diekershoff.homeunix.net        |
| ยต Blog ..... @$HOME/statusnet/bavatar        |
| Jabber ..... tobias@diekershoff.homeunix.net |
| ~friendica . tobias@diekershoff.homeunix.net |
| PGP-ID ..... 0x66A73B17                      |
\----------------------------------------------/

Re: [friendica] Twitter connector

From:
tony baldwin
Date:
2013-02-04 @ 16:56
On Sun, January 27, 2013 4:22 pm, rysiek wrote:
> Hi there,
>
> We are trying to run the Twitter connector on
> friendica.hackerspace.pl. This is what we get in the logs:
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> PHP Warning:  file_get_contents(view/admin.tpl): failed to open
> stream: No such file or directory in
> /var/www/friendica/include/text.php on line 438
>
> PHP Fatal error:  Call to undefined function set_template_includes()
> in /var/www/friendica/addon/twitter/twitter.php on line 512
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> What I am guessing happened here is that the set_template_includes()
> function was defined in the admin.tpl file, but that is nowhere to be
> found. I have even checked git master, it is simply not there.
>

A lot of us are having trouble with the twitter plugin.
I almost hoped, when I saw this message, that we could identify the problem.

What's really weird is that line 512 of twitter.php in the addon is only a
comment ("//quotes not working, let's try this"), and makes no mention of
"set_template_includes()", so that sure doesn't clear any thing up from
what I can tell.

As far as I know, that file hasn't changed in a long time, too.

very strange...

./tony
-- 
http://tonybaldwin.me
all tony, all the time

Re: [friendica] Twitter connector

From:
Mike Macgirvin
Date:
2013-02-04 @ 21:49
I think rysiek's version of the Twitter connector is from the time just 
after the landing of the smarty template engine. There were a few more 
changes we needed to make things work.

So please pull a fresh version of the connector - but be aware that many 
people are having trouble with the Twitter connector at the moment, and 
we know that big changes are happening with the Twitter API which we 
know will affect Friendica and the connector may require re-writing to 
accommodate these changes.