User login

done

Manual update of git-deployed Agaric production site

For a project named (and with the repository and server user name) 'example'.

ssh example@sojourner.mayfirst.org
cd example
git pull

For the git pull to work your public key must be in /home/vlad/.ssh/authorized_keys on the test server (simone.mayfirst.org). You can get this value from /home/yourusername/.ssh/authorized_keys. (@Stefan can we in some way give people with access to simone access to use it as the vlad user automatically?)

Git remote branches are different on my local compared to server

The local checkout on my computer and the one on the dev server are looking at the same Git repository, but the results of git branch -a (show all remote branches) is very different.

Reason: git pull origin master does not get all the branch and tag information the way git fetch does!

Solution:

git fetch origin

Now git branch -a and git checkout branchicareabout both work.

PHP warning Unable to load dynamic library sqlite.so

Getting this every time i run Drush or anything else PHP on the command line:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/sqlite.so' - /usr/lib/php5/20090626/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0

Fix:

sudo rm /etc/php5/conf.d/sqlite.ini

Internal error from Redmine turns out to be due to tmp directory being full

This helpful error:

Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance.

When looked into the logs:

sudo tail -f /var/log/redmine/default/production.log

Encryption on Ubuntu: Just the commands

For set-up, see https://help.ubuntu.com/community/FolderEncryption

Open:
encfs ~/.ncryptd ~/ncryptd

where ncryptd is the name of your directory. Note the dot (.) in front of ncryptd in the first parameter of the encfs command; the encrypted version is an entirely different directory and could have a completely fidderent name from the directory you decrypt it into.

Return user to current page: How to link to a form from a Drupal menu

Press login / press account links for anonymous and logged in users, respectively. Subtly added to a bottom menu. Via code in order to allow for the redirect back to the page you were on after login or editing.

There is surely a way, or should be a way, that does not involve hook_page_alter(), but hey, this works.

Create vocabulary and taxonomy terms in an installation profile

The first part is provided by the default installation profile:

Adding non-menu things to primary links menu items with Drupal 7's page alter hook

The request was to stick search in a menu. I said "I bet that's easy with hook_page_alter()!"

Not quite.

The primary links menu is output directly by the theme, and so is one of the very very few things that occurs after hook_page_alter().

You can tell the theme to stop outputting it directly, and put it in a block that is displayed in a region, or you can add it to the page rendering array in code with hook_page_build().

Change the text of a tab, such as 'View', for one node type

<?php
/**
 * Implements hook_menu_alter().
 *
 * Use a title callback to replace the text shown on nodes' "View" tab.
 */
function example_menu_alter(&$items) {

Created a View through the wizard... page not found going to its path

Huh?

Hell, between cache clearings the Views menu link itself (under admin/structure) disappeared.

But actually the error was all me.

Wow.... it was the contextual filter i had added (thinking i was just adding it to the block and accidentally adding it to all displays).

If you give a page a default filter of use the content ID from the URL, and there is no content ID in the URL, rather than being the view page with no items you get page not found. Not the most helpful result from an easy-to-make (for me) error.

Syndicate content