22397 Posts in 6743 Topics by 2748 members
|Go to End|
21 May 2011 at 2:49am
I'm trying to get to grips with SS, and have built the stuff in the first couple of tutorials (the basic site one and the 'extending' one), and read through the further topic articles.
Fine, all good. I'm feeling confident. Let's have a go at building stuff myself from scratch. We need a new intranet, so lets have a go at creating a 'Client' page type, with some child 'Project' page types.
OK, that went well. I can add a new Client page in the CMS and I can see the "Add a Project" link in the complextablefield thing in the Client's "Project" tab. But my custom fields for a Project aren't showing up in the popup window; it's just showing the default "Page" fields. Ummm... let's try changing the Project class so it extends DataObject rather than Page. I seem to remember that in a tutorial somewhere... ok, now go /dev/build/ again.... oooh, it's doing stuff....
Well, that didn't work. Now any page I try to get to in the CMS is giving me a, "Sorry, there was a problem with handling your request" error. Quick, change it back.
Oh. It's broken. Changing it back doesn't do anything. I now have a broken SS install and no way of unbreaking it.
Given my evident lack of comprehension here, it's clear that this is something I'm likely to be doing depressingly often as I figure out how this thing works. My question, therefore, is not "how do I add custom fields to a page in a popup box-thing", but:
"once you've screwed the code up enough that you can't even load the CMS, what are the minimum steps - short of wiping the database, deleting every file and reinstalling the blasted thing - to get back to a still-not-working-right-but-at-least-working-somehow installation?"
21 May 2011 at 4:05am
As Douglas Adams might suggest, don't panic.
First thing. Let's throw your site into dev mode.
Add this to your /mysite/_config.php
Now view your site and see if you are getting an error. Will probably be a light blue screen with red and black text.
That should at least point you to the offending code.
21 May 2011 at 5:45am
|Go to Top|