kater Posted October 4, 2015 Posted October 4, 2015 Hi, I'm a bit puzzled. $page->template returns some unrelated template. All other ID / Title / Name / Parents / ... work. $pages->get(...)->template returns same false template. Any idea what I'm missing here? thanks! ProcessWire 2.6.18 dev
Mike Rockett Posted October 4, 2015 Posted October 4, 2015 May be silly to ask, but are you 100% sure you've selected the intended template for the page? And have you perhaps tried with the latest dev (2.6.19)? (For the record, I am unable to repdroduce this.)
kater Posted October 4, 2015 Author Posted October 4, 2015 May be silly to ask, but are you 100% sure you've selected the intended template for the page? And have you perhaps tried with the latest dev (2.6.19)? (For the record, I am unable to repdroduce this.) Sure Just figured out $pages->get(1018)->template; returns the wrong result only when viewed from this page (ID=1018), but returns the proper template when called from any other page. Had a probably related issue recently with IDs. Inclined to resetup the whole AMPPS since resetting / clearing caches the whole environment didnt help either . I don't think it's an PW issue.
Mike Rockett Posted October 4, 2015 Posted October 4, 2015 Hmm, that is strange. Technically, there would be no reason for that to occur, and can't reproduce it. I don't think it would be a server issue either, but what was the related issue regarding IDs?
Soma Posted October 4, 2015 Posted October 4, 2015 You seem to have a $page->template = 'something' in your template. 2
kater Posted October 5, 2015 Author Posted October 5, 2015 You seem to have a $page->template = 'something' in your template. omg. what a silly mistake. thanks for the hint. back to php nursery.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now