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

krishanchandra’s picture

Same 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.

bailsbails’s picture

I'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

krishanchandra’s picture

Thanks, I will do soon.

jenlampton’s picture

Status: Active » Fixed

Sorry about that guys, fix committed in dev version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.