demon2lima Posted August 13, 2005 Posted August 13, 2005 I have read through the threads here and am still stuck. I am getting this error after adding the Easy Populate code in to the Catalog.php file Parse error: parse error, unexpected '=', expecting ')' in /home/everythi/public_html/osCommerce/catalog/admin/includes/boxes/catalog.php on line 16 I am new at PHP and could use any help at all. Here is the top portion of the file: <?php /* $Id: catalog.php,v 1.21 2003/07/09 01:18:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ ?><!-- catalog //--><TR><TD><?php $heading = array(); $contents = array(); $heading[] = array('text' =>BOX_HEADING_CATALOG, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')); if ($selected_box == 'catalog') { $contents[] = array('text' => '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</A><BR>' . '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</A><BR>' . '<a href="' . tep_href_link('easypopulate.php', '', 'NONSSL') . '" class="menuBoxContentLink">Easy Populate</a><br>'. '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '">' . BOX_CATALOG_MANUFACTURERS . '</A><BR>' . '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '">' . BOX_CATALOG_REVIEWS . '</A><BR>' . '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '">' . BOX_CATALOG_SPECIALS . '</A><BR>' . '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</A>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </TD></TR><!-- catalog_eof //--> Quote
gntv_webmaster Posted August 13, 2005 Posted August 13, 2005 It looks like in your code snippet, you are missing the first couple characters of an HTML tag and PHP is picking up the stray '=' sign in parsing. Check your code on the line immediately after you inserted your code to run Easy Populate. I have read through the threads here and am still stuck. I am getting this error after adding the Easy Populate code in to the Catalog.php file Parse error: parse error, unexpected '=', expecting ')' in /home/everythi/public_html/osCommerce/catalog/admin/includes/boxes/catalog.php on line 16 I am new at PHP and could use any help at all. Here is the top portion of the file: <?php /* $Id: catalog.php,v 1.21 2003/07/09 01:18:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2002 osCommerce Released under the GNU General Public License */ ?><!-- catalog //--><TR><TD><?php $heading = array(); $contents = array(); $heading[] = array('text' =>BOX_HEADING_CATALOG, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')); if ($selected_box == 'catalog') { $contents[] = array('text' => '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</A><BR>' . '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</A><BR>' . '<a href="' . tep_href_link('easypopulate.php', '', 'NONSSL') . '" class="menuBoxContentLink">Easy Populate</a><br>'. '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '">' . BOX_CATALOG_MANUFACTURERS . '</A><BR>' . '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '">' . BOX_CATALOG_REVIEWS . '</A><BR>' . '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '">' . BOX_CATALOG_SPECIALS . '</A><BR>' . '<A class=menuBoxContentLink href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</A>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </TD></TR><!-- catalog_eof //--> <{POST_SNAPBACK}> Quote
demon2lima Posted August 13, 2005 Author Posted August 13, 2005 It looks like in your code snippet, you are missing the first couple characters of an HTML tag and PHP is picking up the stray '=' sign in parsing. Check your code on the line immediately after you inserted your code to run Easy Populate. <{POST_SNAPBACK}> Thats just the thing, I am not sure how that correction should be made. Quote
Recommended Posts
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.