Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Hello you smart guys whistling.gif)

 

Im having a bit of a problem, im getting a Parse error: syntax error, unexpected T_DOUBLE_ARROW in /path_to/includes/boxes/categories.php on line 96

 

and i can't see what i should do to fix it.

 

Anyone who could help me im desperat.

 

Thanks

Helle

Edited by Jan Zonjee
Posted

You've got a botched edit (mod insert?). See

  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where " . (YMM_FILTER_CATEGORIES_BOX == 'Yes' ? YMM_get_categories_where(0,$YMM_where) : '') . " c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
										   'parent' => $row['parent_id'],
										   'level' => $key+1,
										   'path' => $new_path . '_' . $row['categories_id'],
										   'next_id' => false;
	  if (isset($parent_id)) {
		$tree[$parent_id]['next_id'] = $row['categories_id'];
	  }

 

The lines (starting at 96)

										   'parent' => $row['parent_id'],
										   'level' => $key+1,
										   'path' => $new_path . '_' . $row['categories_id'],
										   'next_id' => false;

don't belong there. I have no idea where they should go. Removing them should get rid of the immediate error, but the real fix is probably that you may need them moved somewhere else in the file.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...