lcgsignatures Posted March 1, 2008 Posted March 1, 2008 So yesterday i went to add an aplication. Sure enough i uploaded all the new files and then i had to maunually change some of the files as soon as i changed the first file i got this! Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/lcgsigna/public_html/Store/admin/includes/boxes/catalog.php on line 31 and my proplem is that i canot get to this file cause in the admin section all it does is come up with this and does not let me go anywhere. I talk with my host, they tried uploading he last save point and that did nothing. so i am looking for some help! if anybody can help please tell me what i can do to fix this
germ Posted March 1, 2008 Posted March 1, 2008 If you have FTP, use it. If not, login and use the Control Panel (provided by your Web Host, not osC!) to make changes. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted March 1, 2008 Posted March 1, 2008 If you have trouble finding the error, post the first 50 or so lines of the offending file (between CODE tags) and I'm sure someone here can spot the error for you. ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
lcgsignatures Posted March 1, 2008 Author Posted March 1, 2008 now i made the change and now i get this error: Parse error: syntax error, unexpected $end in /home/lcgsigna/public_html/Store/admin/includes/boxes/catalog.php on line 75 here is 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 href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>'); $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- catalog_eof //-->
germ Posted March 1, 2008 Posted March 1, 2008 Change this code: $box = new box; to: } $box = new box; If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
satish Posted March 1, 2008 Posted March 1, 2008 '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>'); should be '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>'; Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
lcgsignatures Posted March 1, 2008 Author Posted March 1, 2008 thanks you so much that did it!!! man you saved my ass lol
Recommended Posts
Archived
This topic is now archived and is closed to further replies.