screenshot

activate twitter module and go to edit my account and I can't add a new account. clearing cache solves it

Comments

jonhattan’s picture

Title: No link to add new twitter account » No text field to add twitter account after install

Clearing cache does fix it.

jonhattan’s picture

It seems to happen only after a fresh install. I was unable to reproduce it by disable-uninstall-reinstall the module.

robertcottrell’s picture

Same problem. Clearing cache did it for me too. Thanks!

gamelodge’s picture

Version: 7.x-3.x-dev » 7.x-3.0-beta4

Same happened to me.

Clear Cache did not help

Uninstall and re-install did help.

hermes_costell’s picture

Had same problem with 7.x-3.0-beta4 just now - the form element didn't show up to add the Twitter user name. After a cache clear it did, however.

bloyo’s picture

I'm still having problems. No matter what i do (drush cc, drush dl dev-version, pm-uninstall)
Field for putting in twitter account name is not visible.
#added - After disabling oAuth module, there is posible to add twitter accounts, enabling oAuth back will disable adding new accounts, but the one's added before, remains. Is this normal workflow ?

florisla’s picture

Encountered this issue too, on 7.x-3.0-beta4. Clearing the cache fixed it.

Got a Drupal 'Allowed memory size ... exhausted' error right after enabling the Twitter module, which might explain why a cache clear was necessary. I increased the memory limit afterwards.

drupal centric’s picture

I had the same issue using 6.x-3.0-beta9, disabling Oauth and all but the main Twitter module displayed the field.

juampynr’s picture

It happened to me too. I have no idea why this could be happening so I would appreciate some more feedback.

Slovak’s picture

If clearing cache doesn't fix it, disable and uninstall all Twitter modules. Go into database and delete the following tables: twitter, twitter_account

Now go back, enable modules, and rejoice.

xurizaemon’s picture

I'm not sure why the weirdness with that form. I've read through the current state in 7.x-3.x and it looks workable to me. Please check if you see the same behaviour in the current dev?

Depending on some setup, you can see one of two forms at user/%/edit/twitter. If OAuth isn't enabled and configured (checked by _twitter_use_oauth()) then Twitter module gives a UI to add accounts to follow without authentication. I wasn't expecting that functionality to still work, but it does!

That's the mode where you'll see the textfield, and so it's only in this case where you can follow arbitrary (non-private) accounts by entering their username at user/%/edit/twitter; if you have OAuth correctly configured then you'll get redirected to Twitter for auth and can only follow accounts you can log in as.

_twitter_use_oauth() checks three things -

* is oauth_common enabled?
* are variables twitter_consumer_secret and twitter_consumer_key set?

Uninstalling Twitter module will zap the variables, but disabling oauth_common is a quicker way to get the textfield visible. That doesn't answer why you're seeing this weird mishmash of both modes (if you are) but maybe it helps clarify what you're seeing.

--

Please test again with 7.x-3.x-dev or current git, and report back if this issue still affects you.

We probably should #1710088: Support unauthenticated users for sites with OAuth configured?

juampynr’s picture

grobot, I experienced this once. Try the following (this is how I got the error):

drush dl drupal
drush si ...
drush dl twitter
drush en twitter

Then log in and go to Twitter accounts >> that is when you won't see the form field to type your Twitter account name until you clear caches.

juampynr’s picture

Version: 7.x-3.0-beta4 » 7.x-3.x-dev
Status: Active » Postponed (maintainer needs more info)

I am pretty sure this is the reason of this issue #1649368: Enabling/Disabling modules does not clear cache (menu)

t0lk’s picture

I had the same issue as OP. Perhaps this should be added to the readme.

juampynr’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Closing. People having this error will find this issue. If I see new issues related with this, I will add a message at the project page.

jennypanighetti’s picture

Could you add it to the documentation? It just says enable module, enter account.... can you add a note there to clear caches if nothing appears? (I had this same issue.)

juampynr’s picture

@jenstechs, this bug is related with a specific version of Drush, so it is not Twitter related and it affects also other parts of Drupal as caches are not cleared. There are already two issues mentioning this so I think that either people experiencing it will find any of these two issues or create one which I will reply to.

Anyway, thanks for suggesting it.