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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

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


Go to End


1060 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 );
}
}