kater Posted October 4, 2015 Share 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 Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 4, 2015 Share 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.) Link to comment Share on other sites More sharing options...
kater Posted October 4, 2015 Author Share 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. Link to comment Share on other sites More sharing options...
Mike Rockett Posted October 4, 2015 Share 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? Link to comment Share on other sites More sharing options...
Soma Posted October 4, 2015 Share Posted October 4, 2015 You seem to have a $page->template = 'something' in your template. 2 Link to comment Share on other sites More sharing options...
kater Posted October 5, 2015 Author Share 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. Link to comment Share on other sites More sharing options...
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