Jump to content

$numChildren


mel47
 Share

Recommended Posts

Hi,

It's drive me crazy, I'm turning in round since days. What means this error? How come the page have no parent when first created (either by admin or form Builder)?

5a5ec24a5b137_Slection_006.png.d727a603fafab4f9a2a7ef49c4d52eff.png

It probably come from my hooks, but I don't where. I put my file but it's messy, I move things around too much often.

Template : activite
Template : organisme

Activity is organized by 1 organisme (via pageRef inputfield) and is located in 1 organisme (pageRef InputField). Submission could be done either by FormBuilder or admin. In case of forms, I need a specific number to be created before email is sent to submitter. This number contains information concerning location.

So I think, the problem is that location is not save before the number is created. But I'm not so sure...

However if someone could just explain what means the error, maybe I could refine where I should search for the error.

Thanks

 

ready.php

Link to comment
Share on other sites

Very much a guess, but it looks like you are trying to manipulate a page that doesn't really exist yet. Have a look at the basic steps here

 

and see if your flow matches, or perhaps you have missed a $page->save() somewhere.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...