I get this message when I try to view a card :

Your ecard id is not valid either it may be an error or it expired

I created a new content type, associated it with ecard in the ecard settings. I'm using Drupal 5.7.

Comments

mssarath’s picture

please have a look at the database tables, whether the random number generated is correctly adding to the table. whether there is a database named ecard (hope it is there else it will show other errors) also which database you are using mysql ?
also have a look at the ecard setting, the number of days you want to keep your card in the database , is it correct.

little explanation on error.
while you click the link it will query ecard database to see whether there is a card associated with that number. if yes it will display the card, else it wll show the error.
let me know how it is going.

jmlavarenne’s picture

Haven't had time to look at this since, but it looks like the module created a table without the prefix my db uses. I'll look deeper into this and report back.

jmlavarenne’s picture

Status: Active » Closed (duplicate)

It's because the database creation during install does not use the table prefix API

duplicate of http://drupal.org/node/254555

I think all you need to do is change line 11 in ecard.install from

      db_query("CREATE TABLE ecard (

to

      db_query("CREATE TABLE {ecard} (