Jump to content

repeater problem when bootstrapping


Mackski
 Share

Recommended Posts

I have the exact same code on two pages, however I get this error when the bootstrapped page tries to create the repeaters for a page.

Error: Uncaught exception 'WireException' with message 'Can't save page 0: /1385807809-24-1/: It has no parent assigned'

Here is the code in the loop used on both pages to create the repeaters:

          $item = $p->booking_items->getNew();
          $item->booking_item = $id;

          // calculate total item cost, based on postcode
          $item->booking_item_cost = $row['item'.$x.'cost'];

          // always just 1 for checkbox items
          $item->booking_qty = $qty;

Is this a possible bug with boostrapping?
I'm stumped as to why it's not working when strapped.

[Edit]
Looks like there was an issue with repeaters in the trash, after I emptied the trash the script worked.

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...