Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo

clicking galery (module) page (fe) xml-parser failure


Go to End
Reply


723 Views

Avatar
raamklaza

Community Member, 182 Posts

11 November 2008 at 11:18am


When i click a galery page in the front end i see the following error msg. Under it is the orginal code. Someone any idea why it went wrong?

XML-parsefout: troep na documentelement
Locatie: http://localhost/1-Ontwikkeling/silverstripe-v2.2.2/foto-s/
Regelnummer 2, kolom 1:<b>Notice</b>: Undefined index: start in <b>C:\wampserver\www\1-Ontwikkeling\silverstripe-v2.2.2\gallery\code\GalleryPage.php</b>; on line <b>381</b><br />
^

function CurrentGalleryItems() {
/** Get the limit **/
$limit = "";
if( $this->MediaPerPageLimit ) {
if( ! is_numeric( $_REQUEST['start'] ) )
$_REQUEST['start'] = 0;
$limit = $_REQUEST['start'] . "," . $this->MediaPerPage;
}
return $this->GalleryItems( $limit );
}
}