We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New page missing from site_pages array since 1.6.9?

Development and Programming

tidy's avatar
tidy
196 posts
15 years ago
tidy's avatar tidy

I have noticed an issue with $PREFS->ini(‘site_pages’) on sites running 1.6.9 or later.

I know that there was a change to the pages logic in 1.6.9 as documented here: http://expressionengine.com/legacy_docs/installation/version_notes_1.6.9.html

But I have realised that when you submit a new weblog entry with a pages URI specified, that latest page is not included in $PREFS->ini(‘site_pages’)[1][‘uris’] (1.6.9 +) whereas it was included in $PREFS->ini(‘site_pages’)[‘uris’] (1.6.8). Once you update the new page, it is included in the array as expected.

To put some context on this, I discovered the issue when I realised that new page URLs added in 1.6.9+ were not working with LG htaccess generator, but once the page was edited it worked fine. I realise that this is a 3rd party extension, but in debugging the issue, I realised that the cause was just that the EE core variable $PREFS->ini(‘site_pages’)[1][‘uris’] was missing the new page URL post submission. In the same extension on 1.6.8, $PREFS->ini(‘site_pages’)[‘uris’] contains the new page URL and works fine.

While the site_pages array composition changed in 1.6.9, I can’t see why this should affect which pages the array should contain. Were there deeper logic changes made at the time? How can I get the site_pages array includes a new page that has just been added?

Thanks for your time

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.