Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
Evgenij CreditAttribution: Evgenij commentedError fixed in -beta3.
Comment #2
itqan-2010 CreditAttribution: itqan-2010 commentedI am very thankful for your help, :)
Comment #2.0
itqan-2010 CreditAttribution: itqan-2010 commentedmore information about the bug