Jump to:

10844 Posts in 2515 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » UserForms add field not working

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 2266 Views
  • CodeGuerrilla
    Avatar
    Community Member
    105 Posts

    UserForms add field not working Link to this post

    I am using SS v2.3.5 and trying to use UserForms as descriped here:

    http://doc.silverstripe.org/doku.php?id=modules:userforms

    And downloaded form here:

    Daily Build

    Followed the installation steps but when I try and create a field on the form builder I get the following error:


    Couldn't run query: SELECT MAX("Sort") FROM "EditableFormField" WHERE "ParentID" = '13' You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"EditableFormField" WHERE "ParentID" = '13'' at line 1

    Anyone else have this problem?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: UserForms add field not working Link to this post

    You should use Userforms 0.2.* with SilverStripe 2.3 sites.

    Daily builds of userforms are for SilverStripe 2.4

  • CodeGuerrilla
    Avatar
    Community Member
    105 Posts

    Re: UserForms add field not working Link to this post

    Thanks Willr I did a svn checkout on tags/0.2.1 and it seems fine now

  • toarx
    Avatar
    Community Member
    34 Posts

    Re: UserForms add field not working Link to this post

    a half year later, userforms-trunk-r104941, Silverstripe 2.4.2.
    the same behavior.
    If I push 'add', add a new control, which I selected before, the CMS will be a white page, nothing else.
    display URL .../admin/EditForm

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: UserForms add field not working Link to this post

    toarx - Try visit admin?flush=all rather admin and see how it goes. If you get a blank screen it means the javascript click event has not been registered (via live) so for some reason the UserForm.js file isn't up to date for clicking the link.

  • toarx
    Avatar
    Community Member
    34 Posts

    Re: UserForms add field not working Link to this post

    hello willr,
    I test it from more than one computer, OS and browser.
    everytime the same.
    --
    Now I do following stuff on webserver:
    (example bal)
    delete cache on server
    cd /tmp/silverstripe-cache-home-silvers-bal-site
    rm -f * ;rm -f .cache*

    delete stuff in assets
    cd ~bal/site/assets
    rm -f *.js; rm -f _comb*

    kill webserverprocess
    kill bal

    rebuild database
    http://.../dev/build?flush=all
    no error, Database build completed!

    If I add in register 'forms' a new control, f.e. a textfiel.
    But the result is the same, I get a white body.

    I reload the URL, which I see on browser again, with flush=1
    http://.../admin/EditForm?flush=1
    With Firefox I get following message:
    SecurityID doesn't match, possible CSRF attack.

    Duration of all steps, which I described, 1 minute.

    toarx

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: UserForms add field not working Link to this post

    Thanks toarx, that process looks thorough enough to say I have no idea what could be wrong in this instance! If you stumble on a solution let me know. I've setup UDF on about ~20 sites on 2.4.2 and blank screens have never had the issue still fail after getting rid of the cache so I'm at a loss.

  • toarx
    Avatar
    Community Member
    34 Posts

    Re: UserForms add field not working Link to this post

    Now I create a new projekt, on 2.4.2., themes blackcandy, my testthemes.
    userforms-trunk-r104941 inside of site/
    dev/build?flush=all
    the same.
    Where I should channel my focus?
    I have one other project, with the same resources, absolutly, which create on May 2010. It the only one, which is working, other else not.
    --
    I need a way to test or compare it.
    Thanks for your help.
    toarx

    2266 Views
Page: 1 2
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.