I got an error after trying to download a file when i have 0 points ... I expected to get a message says " you do not have enough points " or some thing like that, but instead i got that error.

Error

The website encountered an unexpected error. Please try again later.

Error messageRecoverable fatal error: Argument 2 passed to t() must be an array, string given, called in C:\Users\noor_allah\Sites\acquia-drupal\sites\all\modules\download_userpoints\download_userpoints.module on line 36 and defined in t() (line 1464 of C:\Users\noor_allah\Sites\acquia-drupal\includes\bootstrap.inc).

and i did find that warning on translation page of module, but i could not understand it ..


The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings there. At t("You need a minimum of !$points_per_download !points to download this file!",'warning') in download_userpoints/download_userpoints.module on line 36. Read more at http://drupal.org/node/322732

and thanks alot for that wonderful module .

Comments

Evgenij’s picture

Status: Active » Closed (fixed)

Error fixed in -beta3.

itqan-2010’s picture

I am very thankful for your help, :)

itqan-2010’s picture

Issue summary: View changes

more information about the bug