Jump to:

3461 Posts in 1065 Topics by 740 members

Data Model Questions

SilverStripe Forums » Data Model Questions » DOM: Testimonials won't display

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1517 Views
  • DanStephenson
    Avatar
    Community Member
    115 Posts

    DOM: Testimonials won't display Link to this post

    Hi all,

    I have quite a weird error occurring. I'm building a Testimonials page, and based my code mostly on the DataObjectManager documentation, as I am using DOM to achieve this.

    On my local development server, everything works fine, but when I upload TestimonialPage.php to the live server, I get the following error when I click on any link that loads the HomePage.php template.

    The following error appears for just a moment, then redirects:

    Redirecting to /~graycon/... (output started on /home/graycon/public_html/mysite/code/TestimonialPage.php, line 1)

    If I go to one of my pages with the TestimonialPage type, all I see on the screen is SiteTree in black on a white background.

    The only thing I can think of, is the ~ in my URL (for the client's server until we propagate the domain) is causing an error.

    Attached are the Testimonial, TestimonialPage and HomePage PHP pages. If someone could have a look and see if they can figure out what's causing this, I'd be very appreciative because I am stuck.

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: DOM: Testimonials won't display Link to this post

    Looks like you have whitespace after the end of TestimonialPage.php. Remove the extra line, or better yet remove the closing ?> tag completely.

  • DanStephenson
    Avatar
    Community Member
    115 Posts

    Re: DOM: Testimonials won't display Link to this post

    Hi Hamish,

    I saw that too, removed the blank line (and also the closing PHP tag), and still get the same result.

    1517 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.