This project is read-only.

Posts don't display in the appropirate area ... at all - Somethings gone horribly, horribly wrong!

Apr 6, 2009 at 7:35 AM
So I've gone through and added new areas with posts... pratically tried everything I can think of, but nothing will display. Edited the about page, that was just fine.

In order to get a grasp on how it's all pulled together, I've had a good stern look at the database... AreaIDs and such. Everything looks fine...

But as you can see:
None of my posts are displayed in the default 'Blog' area.
Nothing is returned from search either... not even about page related stuff sooooo it's obviously a coding issue somewhere... I haven't edited any of that though, wouldn't know where to start with ASP... yet anyway :-)

Ideas? xD
Apr 7, 2009 at 6:38 AM
/Blog is the default area that gets setup in Oxite.  You don't need to add a new area unless you really want to.  If you add a post to the "Blog" area do they show up on the homepage?
Apr 7, 2009 at 7:43 AM
Sadly not >.<
Apr 7, 2009 at 9:19 AM
Really strange.  I don't get it.  Must be some weird configuration thing we hadn't thought of.  Any chance you can wipe your database and startover and don't add any areas this time and see if that makes a difference?
Apr 7, 2009 at 9:42 AM
No change. :-(
Apr 7, 2009 at 9:57 AM
hhhhmmmm...yah, i don't get it.  can you debug the query happening on the homepage and see if you can see why no posts are being returned?
Apr 7, 2009 at 10:00 AM
I haven't a clue how! :)
Apr 7, 2009 at 10:12 AM
Sorry to say I'm not sure what to check next.  :(  Does using the default MDF on your local machine using VSExpress work?
Apr 7, 2009 at 10:31 AM
Yes, flawlessly.
Apr 7, 2009 at 1:04 PM
Edited Apr 7, 2009 at 1:05 PM
Found my self a solution: attach the sample DB MDF and use it instead of running the query on a new DB.
Apr 7, 2009 at 6:06 PM
Very strange.  At least we've narrowed it down to a data problem.  Is it possible you had two different Sites setup in the oxite_Site table?  There is one site per application.  Whatever SiteID is specified in the web.config of your application is what will be used to lookup the current site in oxite_Site (and used for all queries).
Apr 7, 2009 at 6:18 PM
You're quite possibly a genius, Erik.
I don't suppose the little setup wizard modifies the siteID in web.config now does it. :-)
Apr 7, 2009 at 6:48 PM
Ha!  I'm not genius, just very familiar with every piece of Oxite since I built a good portion of it and have worked on every aspect of it at some point.

No, the setup wizard doesn't touch the web.config.  It just looks for a record in oxite_Site with the same site name that's in the web.config and if it can't find it, it creates it and then uses that site for everything.  You can think of what's in the web.config as an instance name to scope all the data in the database (in case you wanted another Oxite app to also be stored in the same database, but all of its data scoped to that instance).
Apr 8, 2009 at 5:48 AM
Sounds like smart design. Perhaps it would be beneficial to some to mention it in Getting Started somewhere :P

Thanks for all your help, Erik!
Apr 8, 2009 at 5:52 AM
Yes, well, there's lots of stuff that needs documented, but we're still busy building it.  :P  We'll get there.  Just taking a bit.  We just launched the first alpha 4 months ago.  ;)

You're welcome.
Apr 8, 2009 at 5:59 AM
hehe, I'm so darn demanding. If you started a Wiki, I'm sure the community would chip in wholeheartedly but you probably don't need me to tell you that.
Apr 8, 2009 at 6:01 AM
True.  I keep thinking we have a wiki here on CP, but it's not open to the public sadly.  I guess I could start one.  Soonish.  :)
Apr 8, 2009 at 9:51 AM
Oh dear... well it's not over yet afterall. It still doesn't work, all I did before was edit the sample post, any new posts won't display just as before. I've gone through all the related tables I can think of and can't find anything wrong, missing or out of place.
Apr 8, 2009 at 9:01 PM
If you take the database that seems to be messed up and run that same data locally does it not work there too?
Apr 9, 2009 at 3:17 AM
Afraid not
Apr 9, 2009 at 3:31 AM
HAHAHA. Changed the publish dates to that of the sample post, 2009-02-15 11:30:00.000. They now display as expected.
Apr 9, 2009 at 4:58 AM
Update: anything but the current day will display.
Apr 9, 2009 at 5:48 AM
That sounds like a timezone issue, perhaps your version of Oxite is set to a different timezone than you or your server are using?
Apr 9, 2009 at 6:15 AM
Edited Apr 9, 2009 at 6:17 AM
Thse server is local. Perhaps it doesn't like the + in +10. Is there a special character for this?
edit: just noticed it removes the + on save sooo