I installed Tweetbutton and tried to set up the tweet text to be "[node:title] | [site:name]" but now my site is stuck. I can't add any new nodes and can't change my tweetbutton fields. I get an error message: "Tweet text cannot be longer than 32 characters but is currently 36 characters."

Comments

I see this problem in my site as well. I've been searching for a fix for a few days. Anyone else run into this?

  \sites\all\modules\tweetbutton\tweetbutton.install (1 hits)
Line 18:           'length' => 32,
  \sites\all\modules\tweetbutton\tweetbutton.module (1 hits)
Line 114:     '#maxlength' => 32,

change 32 to 140. it works for me

Status:Active» Needs review
StatusFileSize
new941 bytes

The patch, based on Stakcreativa's comment is attached, please review. Cheers!

Status:Needs review» Reviewed & tested by the community

I have reviewed the patch and implemented it on 2 sites, which fixed the 32 character max string length. It worked fine on both sites and I have yet to see an issue arise.

Status:Reviewed & tested by the community» Needs work

the patch looks fine at first glance but without hook_update_N() the problem will only be fixed for new installations, not for sites already using an older version.

You can change the values from phpMyAdmin to tables "field_data_field_tweet_basic" and "field_revision_field_tweet_basic" like in the attachment.

I attempted to change the values in phpMyAdmin from 32 to 140, but that had no impact on getting the original error message.

In addition, I'm finding that this problem is preventing us from editing any existing content on our site. When I try to edit page content on pages with titles that are more than 32 characters, this error prevents the saving of any edits. This is a very critical problem that is forcing me to disable the Tweet Button module until it is resolved.

I wish the Drupal 7 version of this module worked the same way as the Drupal 6 version.