Jump to content

Invalid value sent to Page::setTemplate


CaelanStewart
 Share

Recommended Posts

Hi All,

I'm working on version 2 of http://extraordinaryfb.com/ for our client, I've posted a thread of some trouble I had before, but this time it's different.

I'm attempting to add a new page through the back-end CMS, it has a parent with the template "blog-subcategory" (which has no fields other than "Title") and the "blog-subcategory" page has a parent of "blog-category" (which has an image field and the default title field), and the parent of that page is a custom template that lists out the categories and shows three news articles as a preview with a button to see more in that category.

Here is a screenshot of the page structure:

post-3143-0-03087200-1430472159_thumb.pn

The issue is, when I create a news article in any of the sub-categories (those are "Regional", "EMEA", "Mission", "Vision", "Logo" etc.), I enter a title, chose the correct template and click on save. The edit page loads and I am met with a huge backtrace log, it looks like something internal, but I'm not sure. Here is a screenshot:

post-3143-0-33556400-1430472283_thumb.pn

Here is a pastebin with the output saved (couldn't upload a .txt file on here for whatever reason):

http://pastebin.com/fKhnYeLF

I have ProcessWIre version 2.5.3, the core is unmodified barring a css file to change colours in the default admin theme.

Link to comment
Share on other sites

Read the first line of the error:

... $page->setTemplate(NULL)

You do something wrong with your template(s) / template file(s).

And I don't get what you are telling about the hirarchical setup of your categories. I does not sound very common or I simply do not get it.

Do you have already read this: https://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/ ?

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