views:

731

answers:

2

I’m trying to install the Structure module with ExpressionEngine Core. I did a fresh install of everything:

  1. ExpressionEngine 1.6.7

  2. Structure 1.2.5 (adding the empty lang.pages.php file to /language/english, per http://expressionengine.com/forums/viewthread/91290/

  3. Followed the instructions for installing Structure at http://expressionengine.com/forums/viewthread/91290/

  4. Followed the Structure tutorial at http://jambor-ee.com/tutorials/structure

Now I’m blocked. All the new top level pages I add get addresses like domain.com/-1/, domain.com/-2/, etc. In addition to being incorrectly addressed, these links result in 404 errors.

If I add a sub-page (/contact/contactmail), it appears under Modules » Structure as domain.com/-4/contactmail, also broken.

The only page that works is my homepage—does anybody have an idea what I’m doing wrong, or if I need to modify something about the Structure install to make it work with ExpressionEngine Core?

I have installed everything three times and have the correct version of PHP. Each time I end up with these negative integer links for top level pages.

+1  A: 

On first guess this looks like a similar bug with Structure that I was having (and a couple other people) where "-1" would get appended to URLs from Structure for certain paths.

Original problem: http://expressionengine.com/forums/viewthread/91290/P774/#618754 If it's the same problem, the current fix is to look at some serialized data in the database field Structure uses to store page URLs, fix it, and then reserialize. http://expressionengine.com/forums/viewthread/91290/P810/#621769

For any more help you'll need to post your weblog details and Structure settings. Honestly though the best place is probably to post in the official Structure support thread so the developers can stay on top of all the issues.

philfreo
I finally abandoned Structure, but this sounds helpful. I'll try it the next time I build a site from scratch.
Andrew Swift
This bug was reported as fixed in version 1.3.1http://buildwithstructure.com/#change-log
philfreo
A: 

I had this problem as well, the solution I saw was to create a lang.pages.php file in the /system/languages/english/ folder. If memory serves me right, it can be an empty file as long as it's there.

Wes Baker