Jump to content

Error updating page created with API


xweb
 Share

Recommended Posts

I'm using the latest development version of Processwire with a simple template (see attached tplProduct.png).

The only thing that is somehow more complicated is the Categorias field that is of type Page, with details "Single page (Page) or empty page (NullPage) when none selected" and the Input Field is of type PageListSelectMultiple.

Now this is for a Product Catalog where I have the Categories on a branch of the tree and use them as a field in the Product page.

I create this all using a script that does a CSV import and everything works fine here.

When I try to make a change in the backoffice I get warning and in the end a fatal error :-(

First:

Notice: Trying to get property of non-object in /home/vagrant/public_html/mp/wire/core/Page.php on line 318

Second:

Warning: Invalid argument supplied for foreach() in /home/vagrant/public_html/mp/wire/core/Page.php on line 318

Last:

Fatal error: Maximum function nesting level of '100' reached, aborting! in /home/vagrant/public_html/mp/wire/core/Field.php on line 386

Could someone shed some light here? What stupid error is it that I'm doing, that I can't find out? 

Thanks

Adelino

post-1862-0-10746400-1392311649_thumb.pn

post-1862-0-06560500-1392312236_thumb.pn

Link to comment
Share on other sites

Line 318 seems to imply that the page being accessed didn't yet have a template assigned to it. That sounds like a core error rather than a user one, so I'd be curious about how to duplicate that–maybe a potential bug. But if it was accompanied by a nesting level issue (via xdebug), and correcting the xdebug setting also corrected the issue, then I wouldn't worry about it. Are you still getting the Page.php line 318 error?

Link to comment
Share on other sites

I'd never thought that xdebug could be the issue here and therefore didn't even tried to search for it. Making the change suggested in one of the post about xdebug solved this issue. Sorry for the false alarm.

  • Like 1
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...