Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! Why am I getting this error?


boudoirbazaar

Recommended Posts

Posted

:'( :'( I am getting the following error Parse error: syntax error, unexpected ',' in /var/hsphere/local/home/boudoirb/boudoirbazaar.com/catalog/includes/languages/english/index.php on line 13

 

and I don't know why. I have now been battling with this for 2 days. I was putting in a simple script ....

 

<p><b>Welcome to Boudoir Bazaar </b> the place for all your boudoir necessities. </p>

<p>

<p>Here you will find all those things to make your boudoir exciting and exotic. We carry a range of manchester, lingerie and jewellery not to mention those gorgeous perfumes and fragrances that remind you of the romance we all want in our everyday lives</P>

<p>

<p>We post Australia Wide. We post to PO Boxes unlike many of our competitors! We offer a wide range of items to make your shopping experience easy! So come on in and remember to have a cuppa in hand to make your shopping experience pleasant....

<p>

<p>Payment options are Paypal currently. A third party payment system that offers security and comfort for you - our favourite shopper.

<p>

<p>Got a question? Please contact us using the contact form on this site for more information.

<p>

<p>

<p>ABN 70750028846

<B>Boudoir Bazaar is a Tasmanian Registered Company

 

and here is the full source code for the index.php page:-

 

<?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

*/

 

('TEXT_MAIN', <p><b>Welcome to Boudoir Bazaar </b> the place for all your boudoir necessities.

<p>

<p>Here you will find all those things to make your boudoir exciting and exotic. We carry a range of manchester, lingerie and jewellery not to mention those gorgeous perfumes and fragrances that remind you of the romance we all want in our everyday lives

<p>

<p>We post Australia Wide. We post to PO Boxes unlike many of our competitors! We offer a wide range of items to make your shopping experience easy! So come on in and remember to have a cuppa in hand to make your shopping experience pleasant....

<p>

<p>Payment options are Paypal currently. A third party payment system that offers security and comfort for you - our favourite shopper.

<p>

<p>Got a question? Please contact us using the contact form on this site for more information.

<p>

<p>

<p>ABN 70750028846

<B>Boudoir Bazaar is a Tasmanian Registered Company.<br>

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', '.');

define('TEXT_NO_PRODUCTS2', 'There ');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

 

 

Please help me I am now totally gray over this

 

Cheers

Nic

Posted

This part:

 

('TEXT_MAIN', <p><b>Welcome to Boudoir Bazaar </b> the place for all your boudoir necessities. 
<p>
<p>Here you will find all those things to make your boudoir exciting and exotic. We carry a range of manchester, lingerie and jewellery not to mention those gorgeous perfumes and fragrances that remind you of the romance we all want in our everyday lives
<p>
<p>We post Australia Wide. We post to PO Boxes unlike many of our competitors! We offer a wide range of items to make your shopping experience easy! So come on in and remember to have a cuppa in hand to make your shopping experience pleasant....
<p>
<p>Payment options are Paypal currently. A third party payment system that offers security and comfort for you - our favourite shopper. 
<p>
<p>Got a question? Please contact us using the contact form on this site for more information.
<p>
<p>
<p>ABN 70750028846
<B>Boudoir Bazaar is a Tasmanian Registered Company.<br>

Should be:

 

define('TEXT_MAIN','<p><b>Welcome to Boudoir Bazaar </b> the place for all your boudoir necessities.</p>

<p>Here you will find all those things to make your boudoir exciting and exotic. We carry a range of manchester, lingerie and jewellery not to mention those gorgeous perfumes and fragrances that remind you of the romance we all want in our everyday lives.</p>

<p>We post Australia Wide. We post to PO Boxes unlike many of our competitors! We offer a wide range of items to make your shopping experience easy! So come on in and remember to have a cuppa in hand to make your shopping experience pleasant....</p>

<p>Payment options are Paypal currently. A third party payment system that offers security and comfort for you - our favourite shopper.</p>

<p>Got a question? Please contact us using the contact form on this site for more information.</p>
<p></p>
<p></p>
<p>ABN 70750028846</p>
<b>Boudoir Bazaar is a Tasmanian Registered Company.</b><br>');

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 >

Posted

Hi Jim

 

I tried that but am now getting this error

Parse error: syntax error, unexpected ';' in /var/hsphere/local/home/boudoirb/boudoirbazaar.com/catalog/includes/languages/english/index.php on line 25

 

 

I can usually wade my way throught things but this one is really getting me down

 

Thanks :'(

Posted

Please post the entire contents of the file again.

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 >

Posted

<?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

*/

 

(define('TEXT_MAIN','<p><b>Welcome to Boudoir Bazaar </b> the place for all your boudoir necessities.</p>

 

<p>Here you will find all those things to make your boudoir exciting and exotic. We carry a range of manchester, lingerie and jewellery not to mention those gorgeous perfumes and fragrances that remind you of the romance we all want in our everyday lives.</p>

 

<p>We post Australia Wide. We post to PO Boxes unlike many of our competitors! We offer a wide range of items to make your shopping experience easy! So come on in and remember to have a cuppa in hand to make your shopping experience pleasant....</p>

 

<p>Payment options are Paypal currently. A third party payment system that offers security and comfort for you - our favourite shopper.</p>

 

<p>Got a question? Please contact us using the contact form on this site for more information.</p>

<p></p>

<p></p>

<p>ABN 70750028846</p>

<b>Boudoir Bazaar is a Tasmanian Registered Company.</b><br>');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', '.');

define('TEXT_NO_PRODUCTS2', 'There ');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Posted

This part:

 

(define('TEXT_MAIN',

Should be:

 

define('TEXT_MAIN',

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 >

Posted

You're welcome!

:thumbsup:

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 >

Posted

I am also getting a similar error...

Parse error: syntax error, unexpected T_STRING in /home/babydood/public_html/catalog/includes/languages/english/index.php on line 17

 

Here is what I have entered... can you help me?

 

 

define('TEXT_MAIN','<p><b>Welcome to BabyDoodleDuds!</b></p>

 

<p>We are currently under construction, so please check back daily for new products!</p>

 

<p>We combine handcrafted baby accessories with unique products that every mom should have in her diaperbag! And if we don't have it and you want it, let us know!</p><br>');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Posted

Ok sorry to be a pest - I am beginning to think I am not as clever as I think I am. I have now started to upload the catalog images and now get this error - do you think that the code is corrupted? I mean given the amount of errors?

 

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/hsphere/local/home/boudoirb/boudoirbazaar.com//catalog/images/2 piece plus babydoll.jpg) is not within the allowed path(s): (/hsphere/local/home/boudoirb:/usr/local/lib/php:/hsphere/shared/apache/libexec:/tmp:/var/tmp) in /var/hsphere/local/home/boudoirb/boudoirbazaar.com/admin/includes/classes/upload.php on line 91

Posted
define('TEXT_MAIN','<p><b>Welcome to BabyDoodleDuds!</b></p>

<p>We are currently under construction, so please check back daily for new products!</p>

<p>We combine handcrafted baby accessories with unique products that every mom should have in her diaperbag! And if we don\'t have it and you want it, let us know!</p><br>');

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 >

Posted

Tabitha,

 

Just change:

 

don't

to:

 

don\'t

Nicola,

 

I've seen that error on here before, but haven't paid attention to how to fix it.

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 >

Posted
Tabitha,

 

Just change:

 

don't

to:

 

don\'t

 

Jim... I did that... but now I am getting another error... I just posted about it.

Posted

Thanks Jim

 

I had a brainstorm and will try it first - I think it is just that I am still looking at the screen after several days on the trot :lol:

 

Cheers

Nicola

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...