I'm trying to create a custom formatter for Skype ID's. But I cannot save it. I got this error:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mode' in 'field list': INSERT INTO {formatters} (name, label, description, mode, field_types, code) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => skype [:db_insert_placeholder_1] => Skype [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => token [:db_insert_placeholder_4] => text [:db_insert_placeholder_5] => <a href="skype:[node:field_skype]">[node:field_skype]</a> ) in drupal_write_record() (linea 6975 di /home/sideoffc/public_html/includes/common.inc).

I'm using the HTML+Tokens format. Here's the code I put:
<a href="skype:[node:field_skype]">[node:field_skype]</a>

Comments

deciphered’s picture

Status: Active » Postponed (maintainer needs more info)

Can you please run Update.php and see if that helps? If that doesn't help, try re-installing. Your 'formatters' table schema does not match what it should be so something has gone wrong.

Cheers,
Deciphered.

cesareaugusto’s picture

Yep. I did update.php but tt still doesn't work. Shall try out the uninstall/reinstall way. If it still won't work I shall try to upgrade to the dev version. I've seen the 2.0 version is more than a year old.

cesareaugusto’s picture

Dev version works! The probl was due to the 2.0 stable version.

deciphered’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks for the update. I'll mark this as fixed for the moment because the Dev is the closest thing to the next stable.

Cheers,
Deciphered.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.