User login

error

Agaric Quick Tip: if git status works yet 'not a repository', you're in a symlink

If git status works and git anything else doesn't, you are probably in a symlink.

ls -la doesn't show a .git directory, but git status gives results, but git pull says it's not a git repository?

cd up another directory or two (one at a time) and ls -la to see.

CSS aggregation with Zen-based theme caused one particular server to stop serving Drupal pages

Weirdest. Server. Drupal. Zen. Bug. Ever. Our client's site suddenly stopped working. With a server error.
Safari can’t open the page. Safari can’t open the page “http://www.example.com/landing” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again.
Opera was just a blank white screen. But other sites on the server were still working.

How to call the path to theme from within the theme (and why)

We had a site that occasionally generated page not found errors for ie6_fixes.css. Occasionally, we realized, because this file was only sought by browsers following the hide-from-everything-except Internet Explorer 6 code. The file was then not being found because the name of the whole theme had changed, and the existing template had hard-coded in not just the location but also the name of the theme.

Changed in page.tpl.php (and all variations such as page-front.tpl.php and page-node-4.tpl.php:
@import "/sites/default/themes/jonas_theme/ie6_fixes.css";

White Screen of Death on Importing CCK Content Type with a Date-Time Field

Importing a CCK content type with fields, that had just been exported from an identical site (did some work offline) failed with the oh-so-helpful white screen o' death (aka whitescreen, blank page).

Found no reports about this in the CCK issue queue or online elsewhere. Through cutting out parts until it worked, Agaric has been able to identify the field calling the error.

Here is the problematic field's definition, as excerpted from the export output we were trying to input into the import:

bash "No such file or directory" error even though .bashrc has proper include path

bash "No such file or directory"

Every time I opened Terminal:

bash: /home/ben/.bashrc-agaric: No such file or directory

But my ~/.bashrc was clear of calling that file.

And source .bashrc produced no errors. So where was it still calling the old file path?

Answer:

sudo vi /etc/bash.bashrc

(On Ubuntu. The global bash file may be in other places also.)

Syndicate content