A collection of Drupal facts that took some time to discover: -*- -*- -*- -*- -*- To make a database dump: $ mysqldump -u root --default-character-set=utf8 questioncopyright > dump.sql -*- -*- -*- -*- -*- To rename the site: Anyone ever renamed a drupal site before? I'm going to move CopyrightMyths.org to QuestionCopyright.org. Renaming the database is easy; then I presume I need to go to admin/settings and change the site name field (and of course, get the new domain pointed there, but that's outside Drupal's scope). I'll also have to tweak sites/default/settings.php to use the new db. Anything else? settings.php to change directories if applicable ogre, if I have a seperate template file for a node type (like node-flexinode-1.tpl.php ), how do I print 'add new comment' etc? Im not doing print $content; Ogredude: $base_url you mean? kfogel_: Yeah, and anything else in there that references directories *nod* good idea. thanks -*- -*- -*- -*- -*- When the site messes up and loading the front page produces this: {head} {styles} {_BLOCK_.header.logo} {_BLOCK_.header.site_name} [... TINY LITTLE IMAGE HERE ...] {_BLOCK_.header.blocks} {_BLOCK_.footer.blocks} {_BLOCK_.header.mission} {_BLOCK_.node.title} {submitted} {content} {_BLOCK_.node.links} {_BLOCK_.node.title} {submitted} {content} {_BLOCK_.node.links} {_BLOCK_.footer.message} ...try the techniques mentioned in this IRC transcript: I upgraded my Drupal 4.6.5 site (www.copyrightmyths.org) from xtemplate to phpTemplate, and upgraded from PHP 5.0.x to 5.1.2. At the time, I tested the new site and it worked fine, but now it has the problem described in http://drupal.org/node/42080. However, that problem claims to be about using xtemplate instead of phpTemplate under PHP 5.1.1+. Unless my site somehow reverted to xtemplate (how would I find out?), I think it's using phpTemplate. Anyone seen this problem before? kfogel_: xtemplate and phptemplate are theme engines. you need a matching theme to go with them. just installing phptemplate wouldn't do much - you'd also have to select a phptemplate theme. Morbus: yes, thanks. I do have a theme to go with them. In fact, if you check out http://svn.red-bean.com/repos/copyrightmyths/trunk/ kfogel_: are you logged in as an admin right now? with Subversion, you can see the whole site? I just logged in as admin now, yes. kfogel_: remove or rename the xtemplate.xtmpl file from the copyrightmyths folder. Morbus: just tried that from themes/copyrightmuths/ I renamed it to was_xtemplate.xtmpl rename the extension. that's the key. not the filename. aaaaaaaaah okay i hope. ;) then, once you do that, go and toggle your theme choice in the admin from chameleon to something else. just to reset the cache and all that jazz. I wonder if my browser cache is screwing me AGAIN. well, it's showing it to me too. I'm doing ctrl+shift+reload, and meta+shift+reload You are seeing good site or bad site, at front page? bad side. site I'll toggle to chameleon and then back, let's see. it is still attempting to use xtemplate somehow. truncate table cache; Morbus: note: when I was logged in as admin, everything looked great ok, then do as tachyon suggested: delete your cache. if you've mysql access, just "delete from cache;" ok, i can see it fine now as chameleon. try it now and i think you just switched it to something else. cos i'm seeing your logo and so foorth. It's working again for me a modified bluemarine, it appears. yup, the "C" inside a question mark? yep :) Morbus: thanks for your help. TachyonXV: and thank you too. So does this mean that every time something goes wrong, Drupal will cache the wrongness and serve it up to everyone? drupal doesn't know it's gone wrong or right. it's only doing what you ask it too. garbage in, garbage out. sure so maybe I should turn off cache support for now I'll go read the cache docs for more info. -*- -*- -*- -*- -*- Q: Certain tags keep getting stripped out of pages/stories/nodes I submit. I need those tags to format the story nicely; how can I tell Drupal to leave them alone? A: As admin, go to Administer->Configuration->Filters, and tweak the HTML filtering settings to allow your tags. -*- -*- -*- -*- -*- Q: I told Drupal to allow a certain tag, but it's still getting stripped when it's self-closing. Are self-closers illegal? A: I don't know if self-closing tags are not allowed, but I've at least had trouble using "
". If you do it as "

", though, it should work. -*- -*- -*- -*- -*- Q: Whenever I type text in "[square brackets]" in a node, the brackets disappear and the text becomes some sort of weird link. A: Yup. Square brackets get Wiki-like functionality in Drupal. I'm not sure exactly how to use that functionality yet, but if you just want literal square brackets in your text, use HTML entities: "[" --> [ "]" --> ] -*- -*- -*- -*- -*- Q: How to do CleanURLs? A: Enable 'path.module' at Administer->Configuration->Filters, by clicking the checkbox next to 'path'. Once you've done this, go to adminster the node for which you want a CleanURL (that is, go to Adminstration->Content, then click on the node's name -- after making sure it's been approved & thereby published, of course -- and click on the 'administer' link at the bottom of the node's page). The next page will have a URL something like this: http://www.copyrightmyths.org/?q=admin/node/edit/6 That's the administration page for a node. Now that you've enabled the 'path' module, a new option appears, "Path alias". Put your alias there. (You can also go to Administer->url aliasing at any time.) Next, on the Administer->Configuration page, turn on CleanURLs. Make sure you have mod_rewrite on the server, of course. That's it! You can now access your node via the clean URL. *** UPDATE *** Hmmm, that's funny -- I can access my node even with CleanURLs disabled. It seems the url aliasing was enough to do the trick. That makes me wonder exactly what it is that CleanURLs add? Until I know, I've disabled them. The path aliasing seems to be enough. See http://drupal.org/node/view/8576 for my forum question about CleanURLs. -*- -*- -*- -*- -*-