Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form submission issue #965

Open
Thiyagarajantender opened this issue Mar 29, 2022 · 2 comments
Open

form submission issue #965

Thiyagarajantender opened this issue Mar 29, 2022 · 2 comments

Comments

@Thiyagarajantender
Copy link

When i use form block inside list block getting below issue.

Fatal error: Element $id not found for this page in F:\xampp7\htdocs\4e-consulting\vendor\dnadesign\silverstripe-elemental\src\Extensions\ElementalContentControllerExtension.php on line 47

Notice: Undefined index: args in F:\xampp7\htdocs\4e-consulting\vendor\silverstripe\framework\src\Dev\Backtrace.php on line 216

Notice: Trying to access array offset on value of type null in F:\xampp7\htdocs\4e-consulting\vendor\silverstripe\framework\src\Dev\Backtrace.php on line 216
[User Error] Element $id not found for this page
POST /4e-consulting/contact-us/element/125/Form
Line 47 in F:\xampp7\htdocs\4e-consulting\vendor\dnadesign\silverstripe-elemental\src\Extensions\ElementalContentControllerExtension.php

Source
38 $element = $elementOwner->$elementalAreaRelation()->Elements()
39 ->filter('ID', $id)
40 ->First();
41
42 if ($element) {
43 return $element->getController();
44 }
45 }
46
47 user_error('Element $id not found for this page', E_USER_ERROR);
48 return false;
49 }
50 }

@lerni
Copy link

lerni commented Mar 29, 2022

This issue is similar to dnadesign/silverstripe-elemental-virtual#39

@sabina-talipova
Copy link
Contributor

sabina-talipova commented Apr 19, 2022

Hello @Thiyagarajantender,

Could you, please, provide an example or explain how do you use Elemental User Form in your List Block.

Thank you in advance :)

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

No branches or pull requests

5 participants