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.

All other Modules /

Discuss all other Modules here.

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

Problem with User Forms


Go to End


5 Posts   1664 Views

Avatar
Scorpiankh

Community Member, 63 Posts

14 July 2010 at 5:59pm

Hi

I installed the User Forms module (version 0.3.0, silverstripe version 2.3.4), in the CMS i tried to change an existing pages page type to 'User Defined Form' and got 'error loading page' ... so I tried to create a new 'User Defined form' and got 'error loading page' and I can't access either page in the CMS, when I try I get an error popup box that's blank except for the error icon and the ok button.
I tried removing the User Forms module from the root folder, ran dev/build again after removing and got an error message there too.

any help with getting this fixed would be great, I was hoping to have this website up and running by the end of the week.

thanks

Avatar
Willr

Forum Moderator, 5523 Posts

14 July 2010 at 7:14pm

Check out your php error logs or if you have Firebug look at the Console tab when you receive the error - if the site is in devmode then you will get the full error message printed to your console.

Avatar
Scorpiankh

Community Member, 63 Posts

15 July 2010 at 3:49pm

My PHP error logs are completely blank.

I managed to successfully uninstall User Forms on the second attempt and tried reinstalling, got as far as changing a page type to 'User Defined Form' and managed to save it successfully, but again got "error saving content" when I clicked 'save and publish'. I clicked back on the 'content' tab in the cms and got:

[User Error] Couldn't run query: SELECT COUNT(*) AS "CountRows" FROM "SubmittedForm" WHERE "ParentID" = 6 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 '"SubmittedForm" WHERE "ParentID" = 6' at line 1
GET /Ethereal/silverstripe-v2.3.4/admin

Line 401 in C:\wamp\www\Ethereal\silverstripe-v2.3.4\sapphire\core\model\MySQLDatabase.php

I'm still fairly noobish at php so I'm not sure how to fix this.

Avatar
Willr

Forum Moderator, 5523 Posts

15 July 2010 at 5:22pm

UserForms 0.3 is 2.4 only. Looks like your using 2.3 or an earlier version. You want to try 0.2 version of UserForms (link on download page) or upgrade to 2.4

Avatar
Scorpiankh

Community Member, 63 Posts

15 July 2010 at 8:09pm

Thanks, I was sure I'd double checked I had a compatible version but I guess I must have misread it.

I have UserForms 0.2 installed now, took me a little while to figure out that it has to have $UserDefinedForm in the content under the main tab for the form to display on the page, but seems to be working fine now.
Thanks