I am not well versed in much of this, so please excuse my ignorance in advance. I recently hired a developer to upgrade my osCommerce site version 2.2-MS2 from PHP 4.4.9 to run on PHP 5.2.17 so that I could use the current/newest USPS shipping module. I'm still checking everything the developer did, but on my live site when I click on the Jewelry Care link in the information box I get the following:
HTTP 500 Internal Server Error
The website cannot display the page
Most likely causes:
- The website is under maintenance.
- The website has a programming error.
My host said that the file needed to be re-coded to work on PHP 5.2.17, but the developer I hired says it's a custom page that he did not touch and that It has to do with it being based on php 4 logic and not php 5, and if I want it fixed it would cost me more money. So I'm hoping that one of the osCommerce gurus can help me out here and let me know what I have to change so hopefully I can save some money.
My public_html/jewelry_care.php file is:
<?php
/*
$Id: privacy.php,v 1.21 2003/02/13 04:23:23 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');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_JEWELRY_CARE);
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_JEWELRY_CARE));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?php
// BOF: Header Tag Controller v2.6.0
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
<title><?php echo TITLE; ?></title>
<?php
}
// EOF: Header Tag Controller v2.6.0
?>
<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 //-->
<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 . 'table_background_specials.gif', HEADING_TITLE, 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><br><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php echo TEXT_INFORMATION; ?></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" class="main"><br><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
</tr>
</table></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</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'); ?>
And there is another public_html/jewelry care file with the name of jewelry_care_.php and that is:
<?php
/*
$Id: jewelry_care_page.php,v 1.3 2001/12/20 14:14:15 dgw_ Exp $
The Exchange Project - Community Made Shopping!
http://www.theexchangeproject.org
Copyright © 2000,2001 The Exchange Project
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'Jewelry Care');
define('HEADING_TITLE', 'Jewelry Care');
define('TEXT_INFORMATION', '
<body>
<b>JEWELRY CARE - HOW TO KEEP YOUR STERLING SILVER JEWELRY CLEAN AND TARNISH FREE</b>
<p>
Keeping your Sterling Silver jewelry clean and tarnish free may seem like an impossible task. However, you can easily keep your sterling silver jewelry clean and prevent it from tarnishing with just a few easy steps.<br>
<p>
Sterling silver jewelry is meant to be worn and doing so is the best way to prevent tarnish from building up, but realize that tarnish is typically caused by things we do or wear and changing your habits a bit and some helpful hints will help to prevent tarnish from happening.<br>
<p>
For example, leaving your sterling silver out and exposed to air and light is a major contributor to tarnish, so it is best to store your jewelry in a zip lock baggie, cloth bag or in an air tight jewelry box and out of direct light.<br>
<p>
<i>BEFORE</i> you put any jewelry on, be sure any applied perfume and lotion has soaked into your skin and that all hair products, especially hairspray has been applied and dried. When removing your silver jewelry, take a few seconds to wipe it off with a soft cloth, then safely store it as described above.<br>
<p>
Avoid exposing your sterling silver jewelry to household chemicals like bleach, ammonia and clorinated water. If your jewelry does come in contact with these chemicals, rinse your jewelry thoroughly with luke warm water and dry with a soft cloth.<br>
<p>
If your sterling silver jewelry begins to show signs of tarnish, it is best to use a jewelry or silver polishing cloth (like the Sunshine Polishing Cloths we sell), which are usually two sided; one side for cleaning and the second side for polishing. Simply and gently wipe your jewelry with the cleaning side first, then use the polishing side for a brilliant shine.<br>
<p>
Another good practice is to regularly clean your sterling silver jewelry with a liquid jewelry cleaner which can be purchased from any jeweler, or even Windex window cleaner works in a pinch. A quick dip and swish in the cleaner will help to remove build up and make the gemstones sparkle. If there is extra build up <i>gently</i> use the tiny brush included, or a soft tooth brush to gently remove it, but be very careful around the mounting/prongs as to not loosen the setting. Be sure to rinse your jewelry thoroughly with luke warm water and wipe dry with a soft cloth.<br>
<p>
<b><i>Please be advised that pearls SHOULD NOT be cleaned using regular jewelry cleaner or Windex as stated above. You must use a cleaner specially formulated for pearls, which can also be purchased from any jeweler.</b></i>
</body>
</html>
');
?>
So can anyone point me in the right direction as to what has to be changed in order for the page to work/display correctly again in PHP 5.2.17? Please keep in mind that I have very little experiene with all of this, but any and all help will be greatly appreciated.
Sincerely,
Azure Moon










