OpenCart PHP unexpected T_DOUBLE_ARROW -
i'm getting error when try go site. last thing did uninstall 1 blog extension , installed new one.
error: parse error: syntax error, unexpected t_double_arrow in /home/mcflipp/public_html/vqmod/vqcache/vq2-catalog_controller_common_header.php on line 341
the code on line is:
'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']), 'id' => $category['category_id']. '_' . $child['category_id'],
and code matches in catalog/controller/common/header.php is:
$children_data[] = array( 'name' => $child['name'], 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']), 'id' => $category['category_id']. '_' . $child['category_id'], 'children_level_2' => $children_data_level_2, );
the syntax looks correct me, i'm not sure needs changed. appreciate help!
well, looking @ code, can see problem in part of file:
// level 1 $this->data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } } 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']), 'id' => $category['category_id']. '_' . $child['category_id'], 'children_level_2' => $children_data_level_2, ); }
this 1 looks incorrect vqmod replacement/addition file... either have applied version of extension not support version of oc or have made manual changes file vqmod trying inject. possible extensions malfunctioning. check vqmod xml file extension , identify piece responsible concrete injection.
hint: using advanced php ide can point basic php syntax errors (e.g. above) highlighting , marking erroneous place in red (i using netbeans example).
Comments
Post a Comment