Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: TXP Tweet: arc_twitter and arc_twitter_intents
thebombsite wrote:
Just a thought here because I have also had this database warning several times and what I find is that going straight to the “Options” and saving them seems to cure it. To me that suggests that maybe the required tables aren’t being created until the “Options” save??
I managed to recreate this error earlier today, although it had no effect on me installing the plugin, it was just more of a warning as everything else worked fine. However, I am going to strip the guilty culprit out of the code as I suspect it is beginning to become redundant. It was intended for those upgrading from version 0.2.1 to fix the arc_twitter table. Saving the options has nothing to do with the issue as it all happens on the magical plugin install callback, but thanks for the comment.
If by removing it it will cause issues for those upgrading from very old versions of the plugin then I will look into providing some form of “mend tables” function under the options tab for making the required corrections.
Offline
Re: TXP Tweet: arc_twitter and arc_twitter_intents
I think I just figured out the hashtag problem —
The code has http://www.twitter.com/…
But Twitter automatically redirects a url with www to just the plain ol’ http://twitter.com. for some reason on the hashtag links, it adds an extra couple of characters in when it does that.
Changing the plugin code with a simple find and replace in (I think just) three places from http://www.twitter.com to http://twitter.com seems to fix the problem.
Hope that helps,
-Ryan
Offline
Re: TXP Tweet: arc_twitter and arc_twitter_intents
visualpeople wrote:
I think I just figured out the hashtag problem —
The code has http://www.twitter.com/…
But Twitter automatically redirects a url with www to just the plain ol’ http://twitter.com. for some reason on the hashtag links, it adds an extra couple of characters in when it does that.
Changing the plugin code with a simple find and replace in (I think just) three places from http://www.twitter.com to http://twitter.com seems to fix the problem.
Hope that helps,
-Ryan
Thanks Ryan that’s fixed it! I went back and checked some earlier versions of the plugin and it seems that when v1.0beta was released the url got changed by mistake.
The ALTER TABLE bug has now also been removed as of v1.0.3beta; however, as a result I have decided to drop support for upgrades from v0.2.1 or older. Hopefully this won’t affect people, but it is really important people check the version they are upgrading from before installing the latest release. If you are using a very old version (and missing out on loads of new features since released) then upgrade using v1.0.2beta first otherwise your arc_twitter database table will not be correct and won’t store all the information needed for some features of TXP Tweet.
You can get the latest two releases from the plugins homepage.
Offline
Re: TXP Tweet: arc_twitter and arc_twitter_intents
I’m getting an error on the article write page when I switch “Twitter update” from no to yes and then click save:
Notice: A non well formed numeric value encountered in /users/home/photodude/web/public/textpattern/publish/taghandlers.php on line 2815
The update posts to twitter as expected, so it seems this error doesn’t affect function (though it does screw the CSS rendering in the theme I’m using). Just thought you should know about it.
TextPattern user since 04/04/04
Offline
Re: TXP Tweet: arc_twitter and arc_twitter_intents
Hello,
I use 1.0.3beta and I often get an 401 (not authorized) error if I try to republish an article on twitter, which wasn´t published there yet. Maybe it is associated with cyrillic signs in url or/and title, but I´m not sure. Tests with non cyrillic urls also failed, when the article was already published, but it seems that if the article is new and nonpublished, that it is possible to get it via arc_twitter submitted to twitter not important whether it uses cyrillic symbols in url or not.
Offline
Re: TXP Tweet: arc_twitter and arc_twitter_intents
reid wrote:
I’m getting an error on the article write page when I switch “Twitter update” from no to yes and then click save:
Notice: A non well formed numeric value encountered in /users/home/photodude/web/public/textpattern/publish/taghandlers.php on line 2815The update posts to twitter as expected, so it seems this error doesn’t affect function (though it does screw the CSS rendering in the theme I’m using). Just thought you should know about it.
I think this might be related to your article’s url rather than arc_twitter but I’m not 100% sure. What url format are you using (not that this should matter)? Are the tweets correctly linking to your articles?
whocarez wrote:
I use 1.0.3beta and I often get an 401 (not authorized) error if I try to republish an article on twitter, which wasn´t published there yet. Maybe it is associated with cyrillic signs in url or/and title, but I´m not sure. Tests with non cyrillic urls also failed, when the article was already published, but it seems that if the article is new and nonpublished, that it is possible to get it via arc_twitter submitted to twitter not important whether it uses cyrillic symbols in url or not.
Is this only the case when you try to update Twitter after publishing your article? Wondering if this is related in part to Reid’s issue.
How is your 401 error showing? Is it appearing within the edit screen within the Twitter Update block?
Offline
Re: TXP Tweet: arc_twitter and arc_twitter_intents
monkeyninja wrote:
I think this might be related to your article’s url rather than arc_twitter but I’m not 100% sure. What url format are you using (not that this should matter)? Are the tweets correctly linking to your articles?
I’m using year/month/day/title as the URL format, but I’m now realizing this could be a flaw in smd_short_url, which I’m using to generate the link in the tweet. But everything works, the tweet is posted, and the generated URL takes you to the right place. It’s merely an error shown in the admin interface.
Last edited by reid (2010-08-03 19:44:13)
TextPattern user since 04/04/04
Offline
Re: TXP Tweet: arc_twitter and arc_twitter_intents
monkeyninja wrote:
Is this only the case when you try to update Twitter after publishing your article? Wondering if this is related in part to Reid’s issue.
How is your 401 error showing? Is it appearing within the edit screen within the Twitter Update block?
Yes, at the moment I had no errors cases when I switched “Update Twitter” on before I publish an article.
The error is showing up within the “Twitter update block”
examples of non-working titles:
"Кернел" за счет SPO профинансирует сделку по Allseeds и покупку новых активов - эксперты
2 тысячи комбайнов «Ростсельмаш» будут проданы в Украину при условии кредитования со стороны РФ
Аренда сельскохозяйственных земель в Украине: тенденции 3-го квартала 2009
but
ЕБРР планирует выделить долгосрочный кредит агрохолдингу "Астарта" на $10 млн.
МХП получит кредит от ЕБРР до $50 млн. worked
the url of a non-working article is:
Аренда-сельскохозяйственных-земель-Украине-тенденции-квартала-2009
a working url goes like this:
Продажи-тракторов-ФЕНДТ-936-первом-квартале-2010-года-превысили-собственный-уровень-продаж-соответствующего-периода-2008
I don´t see in title or url a factor for this error ….
There are at the moment no problems with German language articles
btw. I use no “prefix” or “suffix” and the preferred url-shortener is “tinyurl”
textpattern 4.2.0, mlp, php 5.2.13
Offline
#99 2010-08-06 10:02:16
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: TXP Tweet: arc_twitter and arc_twitter_intents
Hi Andy,
I’ve been giving your plugin a whirl & I’ve hit a strange one. Links in the tweets don’t seem to be rendered properly.
Here’s what I get on the page:
<li>The most amazing setting for an Opera in Australia <a href='http://www.youtube.com/watch'>http://www.youtube.com/watch</a>?v=Mxe-ezgJixc <span class="arc_twitter-posted">Jul 8, 08:31 am</span></li>
<li>Gumboots & Pearls is back with Opera in the Otways at Cape Otway Lightstation Saturday 16th October 2010 www.otwaysopera.com.au <span class="arc_twitter-posted">Jun 22, 07:53 pm</span></li>
Notice the misformed link in the first tweet and, in the second tweet, the website address is not a link at all.
Have a look at twitter.com/otwaysopera to see how it should look. I’m running 1.0.3beta.
Offline
#100 2010-08-07 13:55:59
Re: TXP Tweet: arc_twitter and arc_twitter_intents
Hi whocarez, if the error is appearing in the Update Twitter block, then it is Twitter that is not happy with what is being tweeted. I can’t see any obvious reason for this from what you’ve posted. I’ve only ever tested the plugin with latin based alphabet characters and am not sure how much help I’m going to be able to offer you on this one. I will attempt to see if I can spot anything obvious if I try and use the same article titles and get back to you.
gomedia, this is currently a known issue and something that I am working on ready for the next release that should see some general improvements to the tags offered by the plugin.
Offline
#101 2010-08-12 18:18:19
Re: TXP Tweet: arc_twitter and arc_twitter_intents
Hi Andy,
Really struggling again with installing this on existing sites…
I have created a brand new txp install and only installed arc_twitter and works ok.
Then I tried to install the latest version on a development subdomain and it doesn’t even let me use the tag to output a twitter stream I get the following when trying to connect to twitter (this is the only error message I can find as It doesn’t alert me to anything else
Notice: Undefined index: oauth_token in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 851
Notice: Undefined index: oauth_token_secret in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 851
Notice: Undefined index: oauth_token in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 264
Notice: Undefined index: oauth_token_secret in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 265
Notice: Undefined index: oauth_token in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 862
or on the domain I will be using it says
Fatal error: Call to undefined function curl_init() in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 968
Im really lost
Thanks
Oli
Offline
#102 2010-08-13 06:39:10
- Rimfya
- Member
- Registered: 2007-11-22
- Posts: 31
Re: TXP Tweet: arc_twitter and arc_twitter_intents
Hey awesome plugin, cheers.
One question, is there any way to make arc_twitter only display public tweets? Or in other words, hide tweets that are replies?
Offline
#103 2010-08-13 07:55:18
Re: TXP Tweet: arc_twitter and arc_twitter_intents
oliverker wrote:
Fatal error: Call to undefined function curl_init() in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 968
Sounds like your development environment doesn’t have cURL installed which is a requirement for the plugin. If that’s the case then nothing will work for you.
Rimfya wrote:
Hey awesome plugin, cheers.
One question, is there any way to make arc_twitter only display public tweets? Or in other words, hide tweets that are replies?
Currently no as there is no simple way of doing this with the Twitter API. It is not something that I have ruled out of doing yet though.
arc_twitter v2 is in the works and the public tagging side of the plugin is where new functionality is going to be seen. Expect some new tags and the ability to retweet articles (as requested ages ago by oliverker). Conveniently Twitter have just released a Tweet Button just as I was about to launch in to working on that very functionality, so the plan is to tie that in with the workings of arc_twitter.
Last edited by monkeyninja (2010-08-13 08:02:12)
Offline
#104 2010-08-13 08:32:53
Re: TXP Tweet: arc_twitter and arc_twitter_intents
monkeyninja wrote:
Sounds like your development environment doesn’t have cURL installed which is a requirement for the plugin. If that’s the case then nothing will work for you.
Damn it : )
Any reason why its not working on my dev domain? its exaclty the same database on a different domain, but the dev server/domain does have cURL, it doesn’t even pull in the tweets?
Offline
#105 2010-08-13 09:42:22
Re: TXP Tweet: arc_twitter and arc_twitter_intents
oliverker wrote:
Any reason why its not working on my dev domain? its exaclty the same database on a different domain, but the dev server/domain does have cURL, it doesn’t even pull in the tweets?
If it doesn’t recognise curl_init() then the only thing I could think is that cURL is not available to you. Without cURL the plugin can’t communicate with Twitter I’m afraid.
Try checking for cURL using <?php phpinfo(); ?> and looking for “with curl”.
Offline