Remember me? forgot password | register

SilverStripe Forum

10689 Posts in 2796 Topics by 1518 members

Jump to:

Site Builders

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Site Builders » Start-Recipe Form Tutorial Does Not Work
Page: 1 go to end Reply
Author Topic: Start-Recipe Form Tutorial Does Not Work 397 views
  • PassePartout
    PassePartout's avatar
    Community Member
    21 posts

    Start-Recipe Form Tutorial Does Not Work Link to this post

    Hello,

    So I'm trying to create a registration page and was following the start-recipe tutorial. To start things off beginning at "Start by creating a page called Registration.php". If you follow the instructions you get an error when trying to build. I have tried a couple ways to resolve this issue as you will see in the comments section on that tutorial page. I may have just been avoiding the true error as I seem to just be changing what error I get and where. If somebody could look into this or try out the code and get it to work let me know,

    cheers

  • PassePartout
    PassePartout's avatar
    Community Member
    21 posts

    Re: Start-Recipe Form Tutorial Does Not Work Link to this post

    I have done a few changes but here are my files ( Registration.php and RegistrationsDataObject.php. As the comments say, I had a few errors which I tried to address.

    The first was "Parse error: syntax error, unexpected T_PRIVATE in *****/mysite/code/Registration.php on line 71" which was fixed by taking away the "}" on line 68 and putting it at the end of the page.
    This made another error appear "Error in Ajax evaluator on line 974: missing ; before statement
    Parse error: syntax error, unexpected $end in *****/mysite/code/Registration.php on line 136" which was fixed by removing the following code
    function extraJs() {
    $v =
    <<<JS
    /* ALL YOUR JAVASCRIPT TRICKS HERE */

    JS;
    return $v;
    }

    However now i get another problem when I go in the CMS and on the Registration page type I created, under the "registrations" tab, when i go to "add registrations data object" I get this error... "Data-integrity is broken in TariffsDataObject"

    397 views
go to top Reply

Currently Online:

g, eljefe, patrics, Aster, motoservo

Welcome to our latest member: patrics