Closed (fixed)
Project:
Total Control Admin Dashboard
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2012 at 02:30 UTC
Updated:
23 Jan 2012 at 23:40 UTC
Hello, I'm getting a syntax error on a clean install of Drupal 6 using total control 6.x-2.1.
/admin/dashboard works fine, as do all tabs, but when Total Control Settings is clicked (/admin/settings/control) I get this error:
Parse error: syntax error, unexpected ')' in /modules/total_control/total_control.admin.inc on line 185
Looking at line 85, I see this:
if ($form_state['values']['total_control_type_panels'][$machine] === $machine)) {
And it does indeed look wrong. Removing the extra mismatched ')' fixes the problem. So this line works:
if ($form_state['values']['total_control_type_panels'][$machine] === $machine) {
Comments
Comment #1
krishanchandra commentedSame here.
Error: Parse error: syntax error, unexpected ')' in C:\xampp\htdocs\drupal6\sites\all\Modules\total_control\total_control.admin.inc on line 185
I am click on Configuration >> Total Control then found this Error.
Comment #2
bailsbails commentedI've just seen this as well. Simply remove the extraneous closing bracket on line 185 of total_control.admin.inc
before:
if ($form_state['values']['total_control_type_panels'][$machine] === $machine)) {
after:
if ($form_state['values']['total_control_type_panels'][$machine] === $machine) {
Cheers
Bails
Comment #3
krishanchandra commentedThanks, I will do soon.
Comment #4
jenlamptonSorry about that guys, fix committed in dev version.