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

Pagetable "Automatic Page name Format" causes crash #697

Open
matulkum opened this issue Sep 28, 2014 · 2 comments
Open

Pagetable "Automatic Page name Format" causes crash #697

matulkum opened this issue Sep 28, 2014 · 2 comments

Comments

@matulkum
Copy link

If I put something in the field "Automatic Page name Format" in the settings of a PageTableField I get this error when I click on "add new" on a actual page using this PageTableField:

"Error: Class name must be a valid object or a string (line 406 of /Users/mak/projekte/awt/webRelaunch2014/ProcessWire/wire/modules/Process/ProcessPageAdd/ProcessPageAdd.module) "

I also tried to put in "Ymd:His", as suggested in the description, with the same result.

image

image

ryancramerdesign added a commit that referenced this issue Sep 29, 2014
…duplicate that one). Plus, add the ability for PageTable to detect and pick up children that were added via some others means.
@ryancramerdesign
Copy link
Owner

I've not been able to duplicate that issue here. But I did just commit a bunch of related updates to do with the code involved in the automatic page name format, so it's possible that the latest commit may fix it. Since I can't duplicate the issue here, can you try the latest commit to see if it makes any difference? Also, just to confirm, this is an PageTable and not another module that extends it?

@matulkum
Copy link
Author

Hi Ryan,

thank u very much for looking into this.

I actually do not have this issue anymore with the previous version. It might have to do on the "funky" way I created the template for the pageTable. Here are the steps to reproduce:

I wanted to convert a repeater called "boxes" to a pageTable. For that I notice that I can find the repeater_boxes template using the searchfield in the Rheno admin template. So I cloned that template and used the clone for my new pageTable. With this template the issue arrises. So as next step I created a new template and imported the fields of my cloned repeater template. With this new template the pageTable works fine again.

I did not try this stuff out with your recent updates, so I can not tell if that is still an issue. If it is and you are not suppose to be able to clone a repeater template, maybe it should not be findable in Rheno? Because this cloned template looked exactly the same to me as a template which I would have created manually. But I guess there must be some difference.

Cheers

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

2 participants