Parse error: syntax error, unexpected T_VARIABLE...
| Project: | Drupal Log To File |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
I installed Drupal_Log_To_File and configured it. Then to test it I installed an exact copy of one of the sample lines (see below) into the help.module::help_main function. When I clicked on the Help menu (http://www.mysite.com/?q=admin/help) the following error occured:
Parse error: syntax error, unexpected T_VARIABLE in /home/avppng/www/www/modules/help/help.module on line 44
The following shows the test code in the context of where it was placed:
function help_main() {
// Add CSS
drupal_add_css(drupal_get_path('module', 'help') .'/help.css', 'module', 'all', FALSE);
drupal_log_to_file("fancy_drupal_module::small_function", "DRUPAL_BASE", "LOG_LEVEL_DEBUG", "User xxx logged in to function")
$output = t('In case the problem may be my configurations, here they are:
Path to Logging Directory: /files/DL2F NOTE: there is no guidance for format of this field.
Log By Name or Number: By Log Number
Default Log: DRUPAL_BASE
DRUPAL_BASE Log File Name: DL2Fbase.log
DRUPAL_BASE Minimum Logging Level: INFO
log_level Listings Per Page: 20
log_type Listings Per Page: 20
Also, I am working with a solid D5.20 website with no customizations in code.
