Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Userform v0.5 & Master: Issue Adding Fields with SilverStripe v.3.0.0 #42

Closed
jung921 opened this Issue Jul 4, 2012 · 11 comments

Comments

Projects
None yet
7 participants

jung921 commented Jul 4, 2012

Hi,

I am having a problem with the userform module (tried with both version 0.5 and Latest master build from Git) on SilverStripe 3.

When I use userform v0.5 --> nothing happens and cannot even display the page after I set page as a user defined form page.
When I use latest master build that I downloaded from git (04 July 2012) --> it is much better but I cannot add any form field.

When I go to create fields, I get a blank white screen (the URL of this page is /admin/pages/edit/show/108) and nothing happened.
I tried both /dev/build and /admin?flush=all after I installed this module.

One thing I noticed from latested module is that in the configuration file (_config.php) it is referencing FieldEditor.js from Javascript folder.

LeftAndMain::require_javascript('userforms/javascript/FieldEditor.js');
LeftAndMain::require_css('userforms/css/FieldEditor.css');

However, in the actual Javascript folder only have one file - "UserForm.js"
--> I tried to rename UserForm.js to FieldEditor.js but no luck.
also tried to change the path of the file, but again I had no luck.

Could anyone help me to resolve this issue?

Thanks in advance for your help.

jung921 commented Jul 4, 2012

Tried Firebug error checking and it says followings:

$fieldEditor.attr("data-add-url") is undefined
[Break On This Error]

... = $fieldEditor.attr('data-add-url').substr(1,$fieldEditor.attr('data-add-url')....

Owner

wilr commented Jul 5, 2012

Master is the one you want to use for 3.0 compatibly. That left and main line should be removed.

jung921 commented Jul 5, 2012

Thanks for your reply willrossi.
I have tried with Master file and removed leftandmain line but still cannot add any field. firebug is showing following error.

$fieldEditor.attr("data-add-url") is undefined
[Break On This Error]

if(type.indexOf("!")>=0){type=type.slice(0,-1);exclusive=true;}

pinkp commented Jul 19, 2012

Has this issue been resolved? I can't add fields either..

With current master and silverstripe 3.1 (also master), I still have an empty area when clicking on "Form" in the admin panel.

Owner

wilr commented Jul 1, 2013

Make sure you have done a dev/build and a flush when reloading the admin panel

admin?flush=1

Contributor

kmayo-ss commented Dec 19, 2013

Tried this myself on v3.0.0 of SilverStripe and using 1.0 branch of Userforms worked for me.
Also tried branches 0.5 and master but they did not work full results are below but I would suggest closing this ticket as the problem was resolved by using branch 1.0 of Userforms.

Module: branch/tag - latest commit
Installer: remotes/origin/3.0 - dae9b18558807c8748696207dbb72b1dd9de68af
CMS: 3.0 b6194c304d569c589871bc3f60836967bea197c2
Framework: 3.0 f59c47fd8e3579a067f8b9780fa3bbd390410efb
UserForms: 0.5 f9bcf88

ERROR [User Deprecated]: Using outdated tab path "Root.Content.Form", please use the new location "Root.Form" instead. Called from .
IN GET /userformIssue42/admin/pages/edit/show/7
Line 173 in /opt/local/apache2/htdocs/userformIssue42/framework/dev/Deprecation.php

Module: branch/tag - latest commit
Installer: remotes/origin/3.0 dae9b18558807c8748696207dbb72b1dd9de68af
CMS: 3.0 b6194c304d569c589871bc3f60836967bea197c2
Framework: 3.0 f59c47fd8e3579a067f8b9780fa3bbd390410efb
Userforms: master 972ee07

Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /opt/local/apache2/htdocs/userformIssue42/userforms/code/model/UserDefinedForm.php on line 413

Module: branch/tag - latest commit
Installer: remotes/origin/3.0 dae9b18558807c8748696207dbb72b1dd9de68af
CMS: 3.0 b6194c304d569c589871bc3f60836967bea197c2
Framework: 3.0 f59c47fd8e3579a067f8b9780fa3bbd390410efb
UserForms: 1.0 0508dc5

This worked for me

Would close ticket. If you have to use an old version of Silverstripe and special branch to get this one feature to work, it is not good. With most current version of silverstripe and form "silverstripe-userforms /" module (downloads silverstripe-userforms-master folder), this still doesn't work for me.

This should have said "wouldn't close ticket". My typo

Owner

wilr commented Aug 10, 2014

Make sure your folder is called userforms not silverstripe-userforms

Owner

dhensby commented Aug 18, 2016

I'm closing this. 3.0 is not supported any more

@dhensby dhensby closed this Aug 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment