In this case the Google webmaster crawl reporter was indicating a large number of pages in a Drupal site as unreachable - 500 error. Users however could access the problem pages without difficulty or delay.
Drupal
Google webmaster reports page unreachable but users can browse page
Creating favicon ico files on OS X
The ICO image format is a Windows format for representing icons at various resolutions. It is also widely used to represent favicons. It is thus somewhat similar in intention to the OS X ICNS format. Indeed you can create and edit ICO files using the Icon Compose app that ships with Xcode. It lives in /Developer/Applications/Utilities/Icon Composer
Automatically log in authenticated Drupal user
In some cases it may be desirable to externally access authenticated user paths on our Drupal site. I use this approach to kick off various admin functions.
Duplicate a Drupal Installation
We want to duplicate an existing Drupal installation for testing purposes. In this case the duplicate will reside on the same Fedora 8 server.
Our original live domain is www.example.com.
Our duplicate domain will be dev.example.com.
Automatically extract zipped attachments received on postfix mail account
Drupal on mac OS X using XAMPP with virtual hosts.
The use of virtual hosts allows us to effectively develop using XAMPP in a way that is similar to final deployment. It also allows for multiple installs of Drupal and permits developing for multiple sites using a single Drupal installation.
In this case we are aiming to set up a development virtual host installation with a URL of www.mugginsoft.local
Make Drupal 6 View Filter Selection Match View Argument
The Issue here is that when filtering a Drupal 6 view using an argument the block filter selection does not match the argument.
Create a Drupal 6 View Block Based on Taxonomy Term
Your Drupal view can be expressed both as a page and as a block. You can also filter your views content according to a taxonomy term argument. And now you want to generate your block according to the presence of your taxonomy term in your URL (either within a menu path or view search block request generated URI).
Usage
Just call MyViewBlockFromURI() wherever you require it. Stick it in a block if required. Also very handy in the header of a view - you can tie the view header into the content using the taxonomy term extracted from the URI.
Code
Getting and Setting Cookies in drupal_http_request
A Drupal 6 http client request is constructed so:
Some URLs, however, require that a cookie is passed to each request to ensure that a correct response is issued. First, however, the cookie must be retrieved from an initial request.
$cookie = $http_results->headers['Set-Cookie'];
$headers = array('Cookie' => $cookie);
Storing Drupal Hierarchy in Subversion
Often it may prove desirable to push an entire Drupal hierarchy into subversion. The example only provides for local file access.
On Fedora 8 subversion is already installed. To check if installation already present.
Login as root and create subversion root dir and children.
[root~]# mkdir -p /svndir/repos
[root~]# mkdir /svndir/users
[root~]# mkdir /svndir/permissions
[root~]# chown -fhR webmaster.apache svndir
Now create repository for our html dir.