CDK Posted January 12, 2006 Posted January 12, 2006 hi guys i got an error while trying to install ACA2 http://www.oscommerce.com/community/contributions,2611 ERROR MSG: "Parse error: parse error, unexpected '}' in ....\shop\admin\includes\boxes\modules.php on line 32" <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_MODULES, 'link' => tep_href_link(FILENAME_MODULES, 'set=payment&selected_box=modules')); if ($selected_box == 'modules') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=payment', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_PAYMENT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MODULES, 'set=shipping', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MODULES, 'set=ordertotal', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ORDER_TOTAL . '</a><br>'); // START ACA 2.0 '<a href="' . tep_href_link(FILENAME_MODULES, 'set=acapro', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACAPRO . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MODULES, 'set=acacat', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACACAT . '</a><br>' . // END ACA 2.0 } $box = new box; echo $box->menuBox($heading, $contents); ?> line 32 is "}" (a line before "$box = new box;")
tina_boots Posted January 12, 2006 Posted January 12, 2006 hi guys i got an error while trying to install ACA2 http://www.oscommerce.com/community/contributions,2611 ERROR MSG: "Parse error: parse error, unexpected '}' in ....\shop\admin\includes\boxes\modules.php on line 32" <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_MODULES, 'link' => tep_href_link(FILENAME_MODULES, 'set=payment&selected_box=modules')); if ($selected_box == 'modules') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=payment', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_PAYMENT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MODULES, 'set=shipping', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MODULES, 'set=ordertotal', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ORDER_TOTAL . '</a><br>'); // START ACA 2.0 '<a href="' . tep_href_link(FILENAME_MODULES, 'set=acapro', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACAPRO . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MODULES, 'set=acacat', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACACAT . '</a><br>' . // END ACA 2.0 } $box = new box; echo $box->menuBox($heading, $contents); ?> line 32 is "}" (a line before "$box = new box;") If you look at the previous uncommented line before the error: '</a><br>' . There is an ophan dot at the end, so the system thinks there should be another string and instead is find a '}'. Replace that dot with a semicolon and you'll likely be ok. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
CDK Posted January 12, 2006 Author Posted January 12, 2006 FIXED by doing this <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_MODULES, 'link' => tep_href_link(FILENAME_MODULES, 'set=payment&selected_box=modules')); if ($selected_box == 'modules') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=payment', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_PAYMENT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MODULES, 'set=shipping', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MODULES, 'set=ordertotal', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ORDER_TOTAL . '</a><br>' . // START ACA 2.0 '<a href="' . tep_href_link(FILENAME_MODULES, 'set=acapro', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACAPRO . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MODULES, 'set=acacat', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_MODULES_ACACAT . '</a><br>'); // END ACA 2.0 } $box = new box; echo $box->menuBox($heading, $contents); ?>
CDK Posted January 12, 2006 Author Posted January 12, 2006 If you look at the previous uncommented line before the error: '</a><br>' . There is an ophan dot at the end, so the system thinks there should be another string and instead is find a '}'. Replace that dot with a semicolon and you'll likely be ok. Be well, Tina ahh thanks :) heheh i solved it before i read your comment silly me :blush:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.