Guest Posted May 31, 2008 Share Posted May 31, 2008 Here is the line I get now when I try to get here. I have tried to upload my original from back-up but no joy! I remember from some thing that a parse error is from not ftp'ing the pages, but they have been. Parse error: syntax error, unexpected '<' in /home/flori36/public_html/catalog/index.php on line 33 I am about ready to reload from scratch. Any suggestions? Please, and thank you. Mary Link to comment Share on other sites More sharing options...
germ Posted May 31, 2008 Share Posted May 31, 2008 Post the first 50 to 60 lines of the offending file (preferrably between CODE tags to preserve formatting). I'm sure someone will spot the problem. 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 > Link to comment Share on other sites More sharing options...
Guest Posted May 31, 2008 Share Posted May 31, 2008 Post the first 50 to 60 lines of the offending file (preferrably between CODE tags to preserve formatting). I'm sure someone will spot the problem. Thanks, in advance for the help! Here are the lines <?php /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } $pgDesc="Florida-Lapidary.com is a combination Jewelry store and rock shop with a metaphysical spirit. We feature custom and one-of-a-kind jewelry by Florida Artists."; $pgKeywords="Florida, Lapidary, Rock, Specimen, Metaphysical, Spirit, Stone, Rock Shop, Spirit World, Cabochon, Crystal, Beads, Points, Amethyst Points, Druzy, Chinese Minerals, Brazilian Minerals, Petrified Wood, Mexican Minerals, Wire Wrap, PMC, Precious Metal Clay, Chainmaile, Bracelet, Necklace, Pendant, Citrine, Amethyst, Celestite, Sphere, Globe, Pyramid, Massage wand, Wand, Light base, Rotating light base, LED light base, Jewelry, Jewelry tools, custom jewelry, gold, silver, dichroic glass, dichro, Seattle Art Glass, specimens, necklace, ring, ear ring, bracelet"; require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <meta name="description" content="<?php echo $pgDesc ?>"></meta> <meta name="keywords" content="<?php echo $pgKeywords ?>"></meta> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <?php if ($category_depth == 'nested') { $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($category_query); ?> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <?php Link to comment Share on other sites More sharing options...
germ Posted May 31, 2008 Share Posted May 31, 2008 This isn't on the line you said, but all I can see offhand that's close would be these: <meta name="description" content="<?php echo $pgDesc ?>"></meta> <meta name="keywords" content="<?php echo $pgKeywords ?>"></meta> They should be: <meta name="description" content="<?php echo $pgDesc; ?>"></meta> <meta name="keywords" content="<?php echo $pgKeywords; ?>"></meta> 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 > Link to comment Share on other sites More sharing options...
Guest Posted May 31, 2008 Share Posted May 31, 2008 Ok, that fixed the catalog/index.php but only in the sense that I am able to see the but now the admin/index.php is crazy Here is the file- what is wrong here? again I thank you very much in advance. <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $languages = tep_get_languages(); $languages_array = array(); $languages_selected = DEFAULT_LANGUAGE; for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $languages_array[] = array('id' => $languages[$i]['code'], 'text' => $languages[$i]['name']); if ($languages[$i]['directory'] == $language) { $languages_selected = $languages[$i]['code']; } } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <meta name="robots" content="noindex,nofollow"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="SetFocus();"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2" height="40"> <tr> <td class="pageHeading"><?php echo STORE_NAME; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_form('adminlanguage', FILENAME_DEFAULT, '', 'get') . tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"') . tep_hide_session_id() . '</form>'; ?></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $files = array(); if ($dir = @dir(DIR_FS_ADMIN . 'includes/modules/index')) { while ($file = $dir->read()) { if (!is_dir($module_directory . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { $files[] = $file; } } } sort($files); $dir->close(); } $col = 0; for ($i=0, $n=sizeof($files); $i<$n; $i++) { if (file_exists(DIR_WS_LANGUAGES . $language . '/modules/index/' . $files[$i])) { include(DIR_WS_LANGUAGES . $language . '/modules/index/' . $files[$i]); } if ($col < 1) { echo ' <tr>' . "\n"; } $col++; if ($col <= 2) { echo ' <td width="50%" valign="top">' . "\n"; } include('includes/modules/index/' . $files[$i]); if ($col <= 2) { echo ' </td>' . "\n"; } if ( !isset($files[$i+1]) || ($col == 2) ) { if ( !isset($files[$i+1]) && ($col == 1) ) { echo ' <td width="50%" valign="top"> </td>' . "\n"; } $col = 0; echo ' </tr>' . "\n"; } } ?> </table></td> </tr> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> This isn't on the line you said, but all I can see offhand that's close would be these: <meta name="description" content="<?php echo $pgDesc ?>"></meta> <meta name="keywords" content="<?php echo $pgKeywords ?>"></meta> They should be: <meta name="description" content="<?php echo $pgDesc; ?>"></meta> <meta name="keywords" content="<?php echo $pgKeywords; ?>"></meta> Link to comment Share on other sites More sharing options...
germ Posted May 31, 2008 Share Posted May 31, 2008 Changing the /catalog/index.php doesn't affect the admin. 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 > Link to comment Share on other sites More sharing options...
Guest Posted May 31, 2008 Share Posted May 31, 2008 Ok, now it is fixed. It seems all I have to do is post a question, and the site fixes itself. I guess the threat is all it needs@! Thanks, much, my sanity is now saved for a bit longer. I got into this trouble by trying to install the main_page contribution. I may go back tomorrow and try again. But first, a new, clean back up! Changing the /catalog/index.php doesn't affect the admin. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.