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

Repeater cannot init itself on unsaved Static Page #4158

Closed
Rike-cz opened this issue Feb 22, 2019 · 6 comments
Closed

Repeater cannot init itself on unsaved Static Page #4158

Rike-cz opened this issue Feb 22, 2019 · 6 comments

Comments

@Rike-cz
Copy link
Contributor

Rike-cz commented Feb 22, 2019

  • OctoberCMS Build: 447
  • PHP Version: 7.2

Description:

When new Static Page is not created, Layout Repeater throws exception: "A widget with class name 'formPaged41d8cd98f00b204e9800998ecf8427e5c6fee4869409ViewBagSlider' has not been bound to the controller" on line 554 of C:\......\fest\modules\backend\classes\Controller.php.

After creating page this issue disappears.

Steps To Reproduce:

repeater-bug

@LukeTowers
Copy link
Contributor

@Rike-cz this is a RainLab.Pages issue, not an October issue. Also, I think there's a related issue where it doesn't initialize when a page has had its layout switched but it hasn't been saved / reloaded.

@mohsin
Copy link
Contributor

mohsin commented Mar 23, 2019

@LukeTowers This doesn't look like this is a plugin-specific issue. I can see the same issue in one of my plugins which was working fine for the past 2 years.

@LukeTowers
Copy link
Contributor

What do you mean you can see this issue in your plugin? This error only appears on the StaticPages pages which are only included by the RainLab.Pages plugin.

@mohsin
Copy link
Contributor

mohsin commented Mar 24, 2019

I mean that I see the same exact error message in my Txt plugin (link in my last comment) i.e. the repeater throws “A widget class name ‘formHumanFields’ has not been bound to the controller”. I tried creating a new repeater by defining it in the form with a single text field and I got the same error. So no idea what’s going on here. My plugin’s been there for 2 years and this broke recently so I’m thinking it might have to do with changes in OctoberCMS since it occured after I updated it. I’ll have to analyse it to confirm.

@LukeTowers
Copy link
Contributor

@SaifurRahmanMohsin just because it's the same error message doesn't mean it's the same issue. You're not properly binding the repeater formwidget to the controller on the request that is trying to be handled.

@mohsin
Copy link
Contributor

mohsin commented Mar 29, 2019

@LukeTowers Oh ok. That's weird, I didn't know I have to manually bind it. Let me figure that out then. The plugin was working all this time for over 2 years without issues.

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

No branches or pull requests

3 participants