Всем привет!
Помогите решить проблему с "выбор количества отображаемых товаров". ВАЛИДАТОР ругается на:
alue="index.php?option=com_virtuemart&category_id=29&page=shop.browse&Itemid=2…
An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon ( ; ). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
Entity references start with an ampersand (&) and end with a semicolon ( ; ). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters.
If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
Вот эти строки в в исходном коде
<form action="index.php?option=com_virtuemart&category_id=29&page=shop.browse&Itemid=21" method="post">
Показать #
<select class="inputbox" name="limit" size="1" onchange="location.href=this.value">
<option value="index.php?option=com_virtuemart&category_id=29&page=shop.browse&Itemid=21&limitstart=0&limit=5" >5</option>
<option value="index.php?option=com_virtuemart&category_id=29&page=shop.browse&Itemid=21&limitstart=0&limit=10" >10</option>
<option value="index.php?option=com_virtuemart&category_id=29&page=shop.browse&Itemid=21&limitstart=0&limit=15" >15</option>
<option value="index.php?option=com_virtuemart&category_id=29&page=shop.browse&Itemid=21&limitstart=0&limit=20" selected="selected">20</option>
<option value="index.php?option=com_virtuemart&category_id=29&page=shop.browse&Itemid=21&limitstart=0&limit=25" >25</option>
<option value="index.php?option=com_virtuemart&category_id=29&page=shop.browse&Itemid=21&limitstart=0&limit=30" >30</option>
<option value="index.php?option=com_virtuemart&category_id=29&page=shop.browse&Itemid=21&limitstart=0&limit=50" >50</option>
</select>
Но я не могу найти где можно их отредактировать , как я понял нужно
& поменять на
& . Правильно ?
Открываю файл
administrator\components\com_virtuemart\classes\pageNavigation.class.php с 50 стрики:
/**
* Modified by shumisha to handle SEF URLs 2008-06-28
* @return string The HTML for the limit # input box
*/
function getLimitBox ( $link = '') {
$limits = array();
if (!empty($link) && strpos( 'limitstart=', $link) === false) { // insert limitstart in url if missing // shumisha
$link .= '&limitstart='.$this->limitstart;
}
for ($i=5; $i <= 30; $i+=5) {
if (empty( $link)) {
$limits[$i] = $i;
} else {
$limits[vmRoute($link.'&limit='.$i)] = $i;
}
}
if (empty( $link)) {
$limits[50] = 50;
} else {
$limits[vmRoute($link.'&limit=50')] = 50;
}
Пробовал заменить все & на & Но валидатор не успокоился и по прежнему продолжал отображать 40 ошибок. Как я понял эти ссылки частично формируются где-то раньше.
Помогите решить проблему, пожалуйста!
Хотел ещё спросить. обращает ли кто-нибудь из Вас на капризыв валидатора?
И показывает ли он у Вас эти ошибки?
спасибо.