osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Parse error: parse error, unexpected T_NEW, expecting ')'

This is a discussion on Parse error: parse error, unexpected T_NEW, expecting ')' within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Nevermind, I did not notice/add the ); at the end of this line (FILENAME_TESTPAGE4, '', 'NONSSL') . '">' . BOX_TEST_LINK4 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-02-2005, 02:27 PM
New Member
 
Join Date: Apr 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
oscnoob
Default Parse error: parse error, unexpected T_NEW, expecting ')'

Nevermind,

I did not notice/add the ); at the end of this line

(FILENAME_TESTPAGE4, '', 'NONSSL') . '">' . BOX_TEST_LINK4 . '</a>'



I am trying to follow the instruction to Adding New Boxes, Links and Pages in this instruction page

http://www.oscdox.com/modules.php?op...%20New%20Boxes

I am getting this error after making changes according to the final step of the instruction. Everything was going weel before this step.

Parse error: parse error, unexpected T_NEW, expecting ')' in /home/xxxxxxxx/public_html/catalog/includes/boxes/test.php on line 31



My code in the test.php



Quote:


<?php
/*
$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/
?>
<!-- information //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => BOX_HEADING_TEST);
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => '<a href="' . tep_href_link
(FILENAME_TESTPAGE1, '', 'NONSSL') . '">' . BOX_TEST_LINK1 . '</a><br>' .
'<a href="' . tep_href_link
(FILENAME_TESTPAGE2, '', 'NONSSL') . '">' . BOX_TEST_LINK2 . '</a><br>' .
'<a href="' . tep_href_link
(FILENAME_TESTPAGE3, '', 'NONSSL') . '">' . BOX_TEST_LINK3 . '</a><br>' .
'<a href="' . tep_href_link
(FILENAME_TESTPAGE4, '', 'NONSSL') . '">' . BOX_TEST_LINK4 . '</a>'
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- information_eof //-->

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Parse error help brt osCommerce 2.2 Installation Help 3 12-31-2004 02:47 PM
New Installation Parse error: parse error, unexpected T_STRI Anonymous osCMax v1.7 Installation 5 07-09-2004 06:06 AM
Parse Error? JJH35 osCommerce 2.2 Installation Help 1 04-06-2004 01:14 PM
Parse error: parse error for product_listing.php midwestwebsites osCMax v1.7 Discussion 1 09-16-2003 01:21 PM
Parse error: parse error, unexpected T_STRING? HELP... hanool osCommerce 2.2 Modification Help 1 09-10-2003 10:38 AM


All times are GMT -8. The time now is 11:36 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax