xemp7 Posted May 18, 2008 Share Posted May 18, 2008 Hello, Had a quick question that I thought you guys might be able to help me out on. I'm installing a CRE Loaded based website on my server and I keep getting this error, any ideas? Parse error: parse error, unexpected ')' in theme005/boxes/asearch.php on line 35 Here is the code: <?php /* $Id: asearch.php searches articles using article_manager by AlDaffodil ([email protected] osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2001 osCommerce CRE Loaded , Open Source E-Commerce Solutions http://www.creloaded.com Chain Reaction Works, Inc Portions: Copyright © 2005 - 2006 Chain Reaction Works, Inc. Last Modified by $Author$ Last Modifed on : $Date$ Latest Revision : $Revision:$ Released under the GNU General Public License */ ?> <!-- article search //--> <tr> <td> <?php //if (ALLOW_QUICK_SEARCH_DESCRIPTION == 'true') { // $param = '<input type="hidden" name="search_in_description" value="1">'; // } else { $param = ''; // } $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<font color="' . $font_color . '">' . BOX_HEADING_ASEARCH . '</font>'); ); new info2BoxHeading($info_box_contents, false, false); $hide = tep_hide_session_id(); $info_box_contents = array(); $info_box_contents[] = array('form' => '<form name="quick_find" method="get" action="' . tep_href_link(FILENAME_ARTICLE_SEARCH, '', 'NONSSL', false) . '">', 'align' => 'center', 'text' => $hide . $param . '<input type="text" name="akeywords" size="10" maxlength="30" value="' . htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["akeywords"])) . '">' . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br><input type="checkbox" name="description">Search Article Text<hr>' . BOX_ASEARCH_TEXT . '<br>'); new info2Box($info_box_contents); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => tep_draw_separator('pixel_trans.gif', '100%', '1') ); // new WhatboxFooter($info_box_contents, true, true); ?> </td> </tr> <!-- article_search //--> Thanks a bunch guys~! Link to comment https://forums.phpfreaks.com/topic/106220-solved-help-parse-error/ Share on other sites More sharing options...
pocobueno1388 Posted May 18, 2008 Share Posted May 18, 2008 Your close the array twice right here: $info_box_contents[] = array('align' => 'left', 'text' => '<font color="' . $font_color . '">' . BOX_HEADING_ASEARCH . '</font>'); ); Just erase the last line -->); Link to comment https://forums.phpfreaks.com/topic/106220-solved-help-parse-error/#findComment-544449 Share on other sites More sharing options...
xemp7 Posted May 18, 2008 Author Share Posted May 18, 2008 Thanks buddy! Link to comment https://forums.phpfreaks.com/topic/106220-solved-help-parse-error/#findComment-544458 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.