Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

unexpected T_STRING error on a page with no strings?


angryquaker

Recommended Posts

Hello, it's me again. Couple days ago, I got some assistance on the correct structure for building links on button images, rather than the plain text links in the standard infoboxes. I took the info and ran with it, and built myself a nice new infobox for some extra info pages. Well, actually, I more or less took the code from a simple infobox and modified it to suit my needs. First experiment went great, the "Information" infobox got modded with buttons and moved, and works fine. Second attempt is a new infobox, called "whatis," for "What Is [this or that thing]?" pages. The box is working, however, 3 of the 4 pages it points to are throwing T_STRING errors, and to my limited understanding, the pages don't even include any "strings." The first page I made works fine, and I believe I just took the code for that page, changed the content text, and saved it as a new filename, so I'm completely befuddled as to why the error would be there. The whole ordeal is making me feel quite ignorant, which I am, when it comes to this PHP stuff. LOL The error points to line 16 or 18, and here's the first several lines of code for those files:

 

This is the first one, it works great.

<?php
/*
 $Id: whatision.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2002 osCommerce

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'What Is An Ionic Foot Spa?');
define('HEADING_TITLE', 'What Is An Ionic Foot Spa?');

define('TEXT_INFORMATION', '  Ionization has been used for many decades. However, the concept of using ionization in a foot bath, such as the Lectro Chi®, is a relatively new idea. Similar phenomena occur while walking barefoot along a beach or near a waterfall. Ions are generated by the movement of the water molecules, and are picked up through the feet. We are creating the same reactions with the Lectro Chi®, but magnified many times over.

 

Here's one that's giving me the error

<?php
/*
 $Id: whatishemi.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2002 osCommerce

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'What Is Hemi-Sync®?');
define('HEADING_TITLE', 'What Is Hemi-Sync®?');

define('TEXT_INFORMATION', '  Buy Three, Get One <b>FREE</b> (details below)<br><br>  Hemi-Sync® is an 

"audio-guidance" technology, designed to help the brain function in a more coherent, focused manner. 

Normally, our brainwaves are not as clear and sharp as they could be. There is typically more intense 

activity in one side or certain areas of the brain, while the other side and other areas are less active. 

Thus, the old "right-brained" or "left-brained" comparisons. But, what if you could harness the power of 

BOTH sides, and have all areas functioning in concert, working in harmony? That's where Hemi-Sync® comes in to help.

 

And another error producer

<?php
/*
 $Id: whatisfir.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2002 osCommerce

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'What Is A Far-Infrared Sauna?');
define('HEADING_TITLE', 'What Is A Far-Infrared Sauna?');

define('TEXT_INFORMATION', '  The experience of a far infrared sauna is similar to sunbathing, which gives you radiant heat that is all your own. Infrared light is part of the Sun's invisible spectrum that has the ability to penetrate the human tissue more deeply than UV light. Infrared heat therapy uses these far infrared light characteristics to heat the body directly rather than just the air around you. However, you can relax in a far infrared sauna and it will never cause your skin to burn.

 

And the final error-ridden culprit:

<?php
/*
 $Id: whatisutw.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2002 osCommerce

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'What Is Utopia Wellness?');
define('HEADING_TITLE', 'What Is Utopia Wellness?');

define('TEXT_INFORMATION', 'While we've been open as Utopia Tan® for some years now, Utopia Wellness is all new! And so is our website! We hope to be your "one-stop-shop" for all your natural wellness needs.

 

I spent an hour or two last night comparing, took another look today, and can't seem to spot the difference(s) for the life of me. Other than the $ID number, 1739, but changing that doesn't seem to make any difference. Anyone care to bail me out here (again)?

 

The site I'm referring to is RIGHT HERE if that helps. Still kicking around the design and layout, so try not to be too hard on me about that stuff. TIA

 

Russ

One: people are not wearing enough hats. Two: matter is energy. In the universe, there are many energy fields which we cannot normally perceive. Some energies have a spiritual source which act upon a person's soul. However, this soul does not exist ab initio, as orthodox Christianity teaches. It has to be brought into existence by a process of guided self-observation. However, this is rarely achieved, owing to man's unique ability to be distracted from spiritual matters by everyday trivia.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...