Guest Posted October 12, 2009 Posted October 12, 2009 Hi, Ive followed the instructions from the Know;ledge Base to add new boxes (I want an 'About Us' page and a 'Links' page.) Heve finished the About Us page, the wording show in my front page left hand column as expected, but when I click on it I get this message Parse error: syntax error, unexpected ':' in /home/ironmon1/public_html/about_us.php on line 16 Ive checked and rechecked this for errors and can find nothing wrong with my coding, any idea's? Ed
♥ecartz Posted October 12, 2009 Posted October 12, 2009 It is usually easier to debug something like this if you post the relevant code, in this case, the first sixteen lines of about_us.php Always back up before making changes.
Guest Posted October 13, 2009 Posted October 13, 2009 It is usually easier to debug something like this if you post the relevant code, in this case, the first sixteen lines of about_us.php Good idea, here it is <?php /* $Id: about_us.php 1739 2007-12-20 00:52:16Z hpdl $ 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'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US)); ?> <!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; ?>"> <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 //--> Ed
♥14steve14 Posted October 13, 2009 Posted October 13, 2009 This might help.. You have require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US); It should be require(DIR_WS_LANGUAGES . $language . '/' . (FILENAME_ABOUT_US); You have an opening bracket missing. REMEMBER BACKUP, BACKUP AND BACKUP
Guest Posted October 13, 2009 Posted October 13, 2009 This might help.. You have require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US); It should be require(DIR_WS_LANGUAGES . $language . '/' . (FILENAME_ABOUT_US); You have an opening bracket missing. Nope, its not that, all the other php files in that area are the same as this one and they all work Ed
Recommended Posts
Archived
This topic is now archived and is closed to further replies.