User login

Drupal

Too many connections in lock_may_be_available() on Drupal 7 site

Encountered this error:

The website encountered an unexpected error. Please try again later.
Error messagePDOException: SQLSTATE[08004] [1040] Too many connections in lock_may_be_available() (line 165 of /var/local/drupal/dgd7/drupal/includes/lock.inc)

The website encountered an unexpected error. Please try again later PDOException Too many connections in lock_may_be_available() lock.inc

Altering path and theme path of template files in Drupal 7 is just for make-believe?

Update: Issue posted. http://drupal.org/node/1028214

The goal is to use the book-variable.tpl.php (exactly like the book-variable.tpl.php is used, including how it gets overridden by themes) but without its preprocess function. Here's one fallback approach that should work, but doesn't, due to seeming weirdness in Drupal:

Drupal 7 overview (Lullabot video notes)

Notes from the Lullabot Drupal Overview video (which is free until Wed. Jan 12).

minimal has no optional modules enabled nor any content types. Nor is the administrator role set up for you.

DBTNG

master-slave replication

any database that PHP can support, which includes Oracle and MSSQL (Microsoft)

built on top of PDO which comes with PHP 5.2+.

Drupal requires PHP 5.2.4 or later
PHP 4 is dead.

User 1 is still special

A new Settings API for Drupal

Update, there is an active real project doing much of this: http://drupal.org/project/variable

This is primarily a matter of deployment and developer sanity, but it is also a performance issue: large variables that aren't used on most pages shouldn't be loaded on every page.

The variable table has to change, and we need to distinguish variables that are needed on (most) every page load from those that clearly are not.

Installing Drubuntu

This is for Ubuntu 10.10 with the intention of doing primarily Drupal 7 development.

Get the link to the current version of Drubuntu from the Drubuntu project page, and use it thusly:

wget http://ftp.drupal.org/files/projects/drubuntu-7.x-10.10-beta1.tar.gz
tar -xzf drubuntu-7.x-10.10-beta1.tar.gz

Adding a Node Build Mode

Q: if you need to add a dead simple view mode to theme a node template differently, basically give Views in addition to "full node", "teaser", a "bastard step-child" option, quick custom code or is a module?
http://drupal.org/project/buildmodes ?

A, by Fox: just do the hook. the hook is simple as hell

Q: and Views sees it automatically?

Disabling or moving node/add/[content-type] links from beneath "Add content" in the navigation menu also removes them from the Add content page (node/add)

Short story: Turn the navigation menu off on any site for which you are customizing the user experience, it is only going to cause you pain.

Seeing "You have not created any content types yet. Go to the content type creation page to add a new content type." when you know darn well you have content? And node/add/page, say, still works?

Is it a bug, a feature, or 'gee. huh' that moving a content add form out from under "Add content" in the navigation menu will also remove it from the node/add page?

Gábor Hojtsy on why get involved with Drupal community

why really get involved, why not just use the software for free?

get to work on cool technology
get to work in an international team
get to show off your work and talent
get to travel
can also make money

Exportable field content: machine names for field instances?

When fields are used for configuration-like stuff (this is for AJAX form messages) it would make sense to be able to export field instances to code (as opposed to, say, node or comment fields).

asked, to no avail:

11:37 benjamin-agaric: is there a standard / anything anyone's tried for giving programatically-created field instances a machine name type thing

Syndicate content