Parse error: syntax error, unexpected T_STRING, expecting ')' on activating component
acushla - March 26, 2008 - 10:39
| Project: | CCK Address Extensions |
| Version: | 5.x-1.6 |
| Component: | India-Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | acushla |
| Status: | needs review |
Jump to:
Description
I saw the following error on activating the module:
Parse error: syntax error, unexpected T_STRING, expecting ')' in {path}/drupal/modules/cck_address_extensions/india/cck_address_india.module on line 144
Actually the placement of single quote(') in the line 144 are in-appropriate.
Things work by changing the line no 144 in the module to:
$val_locale = array('en_IN' => 'en_IN', 'as_IN' => 'as_IN', 'bn_IN' => 'bn_IN', 'gu_IN' => 'gu_IN', 'hi_IN' => 'hi_IN', 'kn_IN' => 'kn_IN', 'kok_IN' => 'kok_IN', 'ml_IN' => 'ml_IN', 'mr_IN' => 'mr_IN', 'ne_IN' => 'ne_IN', 'or_IN' => 'or_IN', 'pa_IN' => 'pa_IN', 'sa_IN' => 'sa_IN', 'te_IN' => 'te_IN', 'ta_IN' => 'ta_IN', 'tr_IN' => 'tr_IN' ); //I dont know if these are all valid codes
#1
I think you mean to submit this as a patch, not mark as fixed since that would make this issue disappear in two weeks.
As mentioned elsewhere, this module is on hold until th repository is fixed, but I'll make code changes available here in the issue queue.