Unable to install: unexpected T_CONSTANT_ENCAPSED_STRING in ./modules/marc/marc.install on line 83
| Project: | MARC |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I'm very new to Drupal and not much of a developer. I'm not having any luck attempting to enable the MARC module.
I installed Drupal today and a bunch of modules. When I tried first to install this MARC module, I ran into trouble because it was looking for the marc.install in the ./module/z3950/marc/marc.install (seems like there is naming confusion between your module and this portion of the z3950 module); additionally my Apache error_log showed an error like the one below.
I just tried a fresh install of Drupal 5.5 and MARC is the only module I installed. I'm still getting the same behavior: when I try to enable the module, I just see a blank page. In my Apache logs, the error is:
unexpected T_CONSTANT_ENCAPSED_STRING in /Library/WebServer/Documents/5/modules/marc/marc.install on line 83

#1
I was able to fix this problem by adding a single quote on line 85 of the marc.install file.
The corrected line should read:
$mfdid = db_next_id('{marc_field_definitions}_mfdid');Hope this does the trick for you as well!
#2
I experienced the same problem.
I've committed the fix to the CVS repository.
Thanks rubinsta!
#3
Automatically closed -- issue fixed for two weeks with no activity.