Hi, I'm hoping that someone can help me with this problem.
I have Links Manager v1.17 installed and it seems to be working correctly apart from one little error.
It occurs in admin/links.php
Basically, I go to the links page and click on 'edit' to modify the link. When they edit page displays, i get an 'error on page' message at the bottom of the browser.
Error =
Line:33
Char: 57
Error: Syntax error
This error seems to be causing a problem with my link description text area. If i modify the description and click update. I doesn't save my changes.
I'm an oscommerce novice so i'm hoping someone can help me fix this.
Here is the code to my links.php
Thanks
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>osCommerce</title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script language="javascript" src="includes/general.js"></script>
<script language="javascript"><!--
function check_form() {
var error = 0;
var error_message = "Errors have occured during the process of your form!\nPlease make the following corrections:\n\n";
var links_title = document.links.links_title.value;
var links_url = document.links.links_url.value;
var links_category = document.links.links_category.value;
var links_description = document.links.links_description.value;
var links_image_url = document.links.links_image_url.value;
var links_contact_name = document.links.links_contact_name.value;
var links_contact_email = document.links.links_contact_email.value;
var links_reciprocal_url = document.links.links_reciprocal_url.value;
if (links_title == "" || links_title.length < 2) {
error_message = error_message + "* " + "Link title must contain a minimum of 2 characters." + "\n";
error = 1;
}
if (links_url == "" || links_url.length < 10) {
error_message = error_message + "* " + "URL must contain a minimum of 10 characters." + "\n";
error = 1;
}
if (links_category == "" || links_category.length < 1>) {
error_message = error_message + "* " + "A Category is required." + "\n";
error = 1;
}
if (links_description == "" || links_description.length < 10) {
error_message = error_message + "* " + "Description must contain a minimum of 10 characters." + "\n";
error = 1;
}
if (links_description == "" || links_description.length > 200) {
error_message = error_message + "* " + "Description must contain less than 200 characters." + "\n";
error = 1;
}
if (links_contact_name == "" || links_contact_name.length < 2) {
error_message = error_message + "* " + "Your Full Name must contain a minimum of 2 characters." + "\n";
error = 1;
}
if (links_contact_email == "" || links_contact_email.length < 6) {
error_message = error_message + "* The 'E-Mail Address' entry must have at least 6 characters.\n";
error = 1;
}
if (links_reciprocal_url == "" || links_reciprocal_url.length < 10) {
error_message = error_message + "* " + "Reciprocal page must contain a minimum of 10 characters." + "\n";
error = 1;
}
if (error == 1) {
alert(error_message);
return false;
} else {
return true;
}
}
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="SetFocus();">
<!-- header //-->
<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "spellchecker,style,layer,table,save,advhr,advimage,advlink,emotions,iespell
,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directio
nality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,fileman
ager,imagemanager",
theme_advanced_buttons1_add_before : "save,newdocument,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fu
llscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,spellchecker,c
ite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,|,insertfile,
insertimage",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
height : "480",
content_css : "/stylesheet1.css",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|s
tyle],p[lang]",
external_link_list_url : "example_data/example_link_list.js",
external_image_list_url : "example_data/example_image_list.js",
flash_external_list_url : "example_data/example_flash_list.js",
template_external_list_url : "example_data/example_template_list.js",
file_browser_callback : "mcFileManager.filebrowserCallBack",
theme_advanced_resize_horizontal : false,
theme_advanced_resizing : true,
apply_source_formatting : true,
spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Po
lish=pl,Portuguese=pt,Spanish=es,Swedish=sv"
});
</script>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/oscommerce.gif" border="0" alt="osCommerce" title=" osCommerce " width="204" height="50"></td>
<td align="right"><a href="http://www.oscommerce.com" target="_blank"><img src="images/header_support.gif" border="0" alt="Support Site" title=" Support Site " width="50" height="50"></a> <a href="http://admwebstudios.co.uk/adonistest/"><img src="images/header_checkout.gif" border="0" alt="Online Catalog" title=" Online Catalog " width="53" height="50"></a> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/index.php"><img src="images/header_administration.gif" border="0" alt="Administration" title=" Administration " width="50" height="50"></a> </td>
</tr>
<tr class="headerBar">
<td class="headerBarContent"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/index.php" class="headerLink">Administration</a></td>
<td class="headerBarContent" align="right"><a href="http://www.oscommerce.com" class="headerLink">Support Site</a> | <a href="http://admwebstudios.co.uk/adonistest/" class="headerLink">Online Catalog</a> | <a href="http://admwebstudios.co.uk/adonistest/qwadmin/index.php" class="headerLink">Administration</a> </td>
</tr>
</table><!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td width="125" valign="top"><table border="0" width="125" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<!-- configuration //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxHeading" onmouseover="this.style.cursor='hand'" onclick="document.location.href='http://admwebstudios.co.uk/adonistest/qwadmin/configuration.php?gID=1&selected_box=configuration'"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/configuration.php?gID=1&selected_box=configuration" class="menuBoxHeadingLink">Configuration</a> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
</table>
</td>
</tr>
<!-- configuration_eof //-->
<!-- catalog //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxHeading" onmouseover="this.style.cursor='hand'" onclick="document.location.href='http://admwebstudios.co.uk/adonistest/qwadmin/categories.php?selected_box=catalog'"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/categories.php?selected_box=catalog" class="menuBoxHeadingLink">Catalog</a> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
</table>
</td>
</tr>
<!-- catalog_eof //-->
<!-- modules //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxHeading" onmouseover="this.style.cursor='hand'" onclick="document.location.href='http://admwebstudios.co.uk/adonistest/qwadmin/modules.php?set=payment&selected_box=modules'"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/modules.php?set=payment&selected_box=modules" class="menuBoxHeadingLink">Modules</a> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
</table>
</td>
</tr>
<!-- modules_eof //-->
<!-- customers //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxHeading" onmouseover="this.style.cursor='hand'" onclick="document.location.href='http://admwebstudios.co.uk/adonistest/qwadmin/customers.php?selected_box=customers'"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/customers.php?selected_box=customers" class="menuBoxHeadingLink">Customers</a> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
</table>
</td>
</tr>
<!-- customers_eof //-->
<!-- taxes //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxHeading" onmouseover="this.style.cursor='hand'" onclick="document.location.href='http://admwebstudios.co.uk/adonistest/qwadmin/countries.php?selected_box=taxes'"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/countries.php?selected_box=taxes" class="menuBoxHeadingLink">Locations / Taxes</a> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
</table>
</td>
</tr>
<!-- taxes_eof //-->
<!-- localization //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxHeading" onmouseover="this.style.cursor='hand'" onclick="document.location.href='http://admwebstudios.co.uk/adonistest/qwadmin/currencies.php?selected_box=localization'"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/currencies.php?selected_box=localization" class="menuBoxHeadingLink">Localization</a> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
</table>
</td>
</tr>
<!-- localization_eof //-->
<!-- reports //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxHeading" onmouseover="this.style.cursor='hand'" onclick="document.location.href='http://admwebstudios.co.uk/adonistest/qwadmin/stats_products_viewed.php?selected_box=reports'"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/stats_products_viewed.php?selected_box=reports" class="menuBoxHeadingLink">Reports</a> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
</table>
</td>
</tr>
<!-- reports_eof //-->
<!-- tools //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxHeading" onmouseover="this.style.cursor='hand'" onclick="document.location.href='http://admwebstudios.co.uk/adonistest/qwadmin/backup.php?selected_box=tools'"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/backup.php?selected_box=tools" class="menuBoxHeadingLink">Tools</a> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
</table>
</td>
</tr>
<!-- tools_eof //-->
<!-- links //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxHeading" onmouseover="this.style.cursor='hand'" onclick="document.location.href='http://admwebstudios.co.uk/adonistest/qwadmin/links.php?selected_box=links'"> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/links.php?selected_box=links" class="menuBoxHeadingLink">Links Manager II</a> </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="menuBoxContent"><a href="http://admwebstudios.co.uk/adonistest/qwadmin/links.php" class="menuBoxContentLink">Links</a><br><a href="http://admwebstudios.co.uk/adonistest/qwadmin/link_categories.php" class="menuBoxContentLink">Link Categories</a><br><a href="http://admwebstudios.co.uk/adonistest/qwadmin/links_contact.php" class="menuBoxContentLink">Links Contact</a><br><a href="http://admwebstudios.co.uk/adonistest/qwadmin/links_featured.php" class="menuBoxContentLink">Links Featured</a><br><a href="http://admwebstudios.co.uk/adonistest/qwadmin/links_status.php" class="menuBoxContentLink">Links Status</a></td>
</tr>
</table>
</td>
</tr>
<!-- links_eof //-->
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading">Links</td>
<td class="pageHeading" align="right"><img src="images/pixel_trans.gif" border="0" alt="" height="1"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
</tr>
<tr><form name="links" action="http://admwebstudios.co.uk/adonistest/qwadmin/links.php?page=1&lID=4&action=update" method="post" onSubmit="return check_form();"> <td class="formAreaTitle">Website Details</td>
</tr>
<tr>
<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main">Site Title:</td>
<td class="main">
<input type="text" name="links_title" value="ADM Web Studios" maxlength="64"> <span class="fieldRequired">* Required</span></td>
</tr>
<tr>
<td class="main">URL:</td>
<td class="main">
<input type="text" name="links_url" value="http://admwebstudios.co.uk" maxlength="255"> <span class="fieldRequired">* Required</span></td>
</tr>
<tr>
<td class="main">Category:</td>
<td class="main">
<select name="links_category"><option value="Local Businesses" SELECTED>Local Businesses</option></select> <span class="fieldRequired">* Required</span>
<tr>
<td class="main">New Category: <td class="smallText"><input type="text" name="links_category_new" maxlength="64"> <select name="links_category_new_parent"><option value="Top Level">Top Level</option><option value="Local Businesses" SELECTED>Local Businesses</option></select> An entry in this box will cause a new category to be created for this link. </td>
</tr>
</tr>
<tr>
<td class="main" class="mceNoEditor">Description:</td>
<td class="main">
<textarea name="links_description" wrap="hard" cols="40" rows="5">ADM Web Studios ecommerce</textarea> <span class="fieldRequired">* Required</span></td>
</tr>
<tr>
<td class="main">Image URL:</td>
<td class="main">
<input type="text" name="links_image_url" value="http://" maxlength="255"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
</tr>
<tr>
<td class="formAreaTitle">Contact</td>
</tr>
<tr>
<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main">Full Name:</td>
<td class="main">
<input type="text" name="links_contact_name" value="adam" maxlength="64"> <span class="fieldRequired">* Required</span></td>
</tr>
<tr>
<td class="main">E-Mail Address:</td>
<td class="main">
<input type="text" name="links_contact_email" value="
[email protected]" maxlength="96"> <span class="fieldRequired">* Required</span></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
</tr>
<tr>
<td class="formAreaTitle">Reciprocal Page Details</td>
</tr>
<tr>
<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main">Reciprocal Page:</td>
<td class="main">
<input type="text" name="links_reciprocal_url" value="http://www.admwebstudios.co.uk/z.html" maxlength="255"> <span class="fieldRequired">* Required</span></td>
<td width="100" align="right" class="main">FOUND:</td>
<td><img src="images/mark_check.jpg" alt="">
<td width="20"</td>
<td><a href="http://www.admwebstudios.co.uk/z.html" target="blank">Visit Reciprocal Link</a></td>
</tr>
<tr>
<td class="main">Disable Reciprocal Checking:</td>
<td><input type="checkbox" name="links_reciprocal_disable"></td>
</tr>
<tr>
<td class="main">Recprocal Check Count</td>
<td><input type="text" name="links_reciprocal_check_count" value="0" size="4" maxlength="4"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
</tr>
<tr>
<td class="formAreaTitle">Options</td>
</tr>
<tr>
<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main">Status:</td>
<td class="main">
<select name="links_status"><option value="1">Pending</option><option value="2" SELECTED>Approved</option><option value="3">Disabled</option><option value="4">Waiting</option></select> Notify Contact:<input type="checkbox" name="links_notify" CHECKED> Reason: Bad Link<input type="radio" name="links_notify_denied_reason" value="0"> Content<input type="radio" name="links_notify_denied_reason" value="1"> None<input type="radio" name="links_notify_denied_reason" value="2"></td>
</tr>
<tr>
<td class="main">Language</td>
<td class="main"><select name="links_language"><option value="99">All</option><option value="1" SELECTED>English</option></select></tr>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
</tr>
<tr>
<td align="right" class="main"><input type="image" src="includes/languages/english/images/buttons/button_update.gif" border="0" alt="Update" title=" Update "> <a href="http://admwebstudios.co.uk/adonistest/qwadmin/links.php?page=1&lID=4"><img src="includes/languages/english/images/buttons/button_cancel.gif" border="0" alt="Cancel" title=" Cancel "></a></td>
</tr></form>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td align="center" class="smallText">
E-Commerce Engine Copyright © 2003 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a><br>
osCommerce provides no warranty and is redistributable under the <a href="http://www.fsf.org/licenses/gpl.txt" target="_blank">GNU General Public License</a>
</td>
</tr>
<tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="5"></td>
</tr>
<tr>
<td align="center" class="smallText">Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a></td>
</tr>
</table>
<!-- footer_eof //-->
<br>
</body>
</html>