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

PHP error: using Table Field inside Repeater Matrix #177

Closed
suntrop opened this issue Jan 30, 2017 · 2 comments
Closed

PHP error: using Table Field inside Repeater Matrix #177

suntrop opened this issue Jan 30, 2017 · 2 comments

Comments

@suntrop
Copy link

suntrop commented Jan 30, 2017

Short description of the issue

PHP error when using Table field inside a Repeater Matrix

Actual behavior

`Error: Uncaught Error: Call to a member function getInputfield() on null in /usr/local/www/apache24/noexec/clients/xxx/online/xxx.de/www/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module:204
Stack trace:
#0 /usr/local/www/apache24/noexec/clients/xxx/online/xxx.de/www/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module(443): ProcessWire\InputfieldRepeater->preloadInputfieldAssets()
#1 /usr/local/www/apache24/noexec/clients/xxx/online/xxx.de/www/site/modules/FieldtypeRepeaterMatrix/InputfieldRepeaterMatrix.module(154): ProcessWire\InputfieldRepeater->renderReady(Object(ProcessWire\InputfieldWrapper), false)
#2 /usr/local/www/apache24/noexec/clients/xxx/online/xxx.de/www/wire/core/InputfieldWrapper.php(667): ProcessWire\InputfieldRepeaterMatrix->renderReady(Object(ProcessWire\InputfieldWrapper), false)
#3 [internal function]: ProcessWire\InputfieldWrapper->___renderInputfield(Object(ProcessWire\InputfieldRepeaterMatrix), false)
#4 /usr/local/www/apache24/noexec/clients/sd (line 204 of /usr/local/www/apache24/noexec/clients/xxx/online/xxx.de/www/wire/modules/Fieldtype/FieldtypeRepeater/InputfieldRepeater.module)

This error message was shown because: you are logged in as a Superuser. Error has been logged.`

Steps to reproduce the issue

I added a Table field (with just a Text column) to/inside a Repeater Matrix field/type
When I try to edit a page with the Repeater Matrix field I get above error msg

Setup/Environment

  • ProcessWire version: PW 3.0.42
  • (Optional) PHP version: 5.6
  • (Optional) Any 3rd party modules that are installed and could be related to the issue: Pro Fields
@suntrop
Copy link
Author

suntrop commented Jan 30, 2017

Oh no … the above was the last thing I did and I removed the fields but still get the error msg. I'll try to go further back what I did

@suntrop
Copy link
Author

suntrop commented Jan 30, 2017

Ok, no error anymore. Maybe there were an issue with something else. Don't know. I added the same fields again and it works now.

Sorry for bothering :-)

@suntrop suntrop closed this as completed Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant