Drupal is up and running but how do I ...?

Post Installation Authentication Issues

Hi,

I have gotten Drupal running on a local test environment. I have it running on Win2k3 SP1, with Apache2, MySQL5, and PHP5. Everything looks fine with the initial install.

The first post-installation task I wanted to tackle was to change the default authentication to go against our Active Directory domain. I have tried two methods to get this in place. In both cases I was using LDAP to query against our Active Directory.=

1. Webserver Auth

In this case we use mod_authnzldap on Apache to connect to our AD and auth the user. This method places me in a catch-22. I set up Drupal, and create my first admin user. For sake of example let's say I named him Fred. I then activate Webserver Auth, and log out and close the browser. I then log into my webserver with my webserver recognized user Fred. The Webserver Auth module then says, ok Fred is recognized by the web server, so let's create an account for him and log him in. This then fails, because Fred was already created as my first admin user, and exists in the user database already. So I can no longer get into the server as the administrative user and basically I am locked out of the installation and can no further. If I log in as another webserver recognized user, say, Bob, I get my fresh new account, but have no rights. As long as the Webserver Auth module is active though, I cannot log in as the administrative user because it keeps trying to create a duplicate entry for the user. Does anyone know how to circumvent this catch-22? So far the best way I have come up with is manually add an entry for the user in the authmap table for user 1, which seems to always be administrative user.

image.module --> doesn't create thumnail or preview images (Drupal 4.7) using Image_Magick

I have tracked down the problem to this function:

/**
 * Generate image derivatives.
 */  
function _image_build_derivatives(&$node, $temp = FALSE) {
  // sanity check:
  if (!_image_check_settings()) {
    return false;
  }
  $info = image_get_info(file_create_path($node->images['_original']));
  $sizes = _image_get_sizes();
  if (!$temp) {
    _image_remove($node);
  }
  foreach ($sizes as $size) {
    if ($size['label'] && $size['width'] && $size['height']) {
      if ($info['width'] > $size['width'] || $info['height'] > $size['height']) {
        $source = file_create_path($node->images['_original']);
        $destination = _image_filename(basename($source), $size['label'], $temp);
        if (!image_scale($source, file_create_path($destination), $size['width'], $size['height'])) {
          drupal_set_message(t('Unable to create %label image', array('%label' => $size['label'])), 'erro$
        }
        else {
          $node->images[$size['label']] = $destination;
          if (!$temp) {
            _image_insert($node, $size['label'], file_create_path($destination));
          }
        }
      }
      else {
        $node->images[$size['label']] = $node->images['_original'];
      }
    }
  }
}

And in particular this line:

<?php
if (!image_scale($source, file_create_path($destination), $size['width'], $size['height'])) {

Dev box to Prod Box

I currently have a dev box, and a prod box for my site. Is there any easy way to copy changes from the dev box to the prod box? As of now, I have just been doing an sqldump on the dev box and then importing the dump on the prod box. Doesn't matter right now if I lose the content as the prod box isn't actually live. But once it goes live, dumping from dev to prod will kill all the stories. So should I not do a dump? And just manually change all the settings on the prod box so they match, and hope I don't miss anything? Any help is appreciated. Thanks

Checklist module -> "invalid selection"

Hi all,

I installed Drupal and everything seems to work fine, except that the checklist module doesn't work.

I activated it and when I then click on the link "my checklists", the checklists page opens (at least I think it is the checklist page, since the heading reads "my checklists") with the following error:

Invalid selection.

The logs showed the following error:

Multi-site path problems

Hey all,

I'm using Drupal 4.7.2 and I am having a problem with paths when using a multi-site setup.

enabling TinyMCE reformats the text ugly

hi,

when i enable the TinyMCE toolbar, it seems to clear the

tags in the text,
and it removes the line spaces...

is there any solution for this?

thanks,
enky.

Pages

Subscribe with RSS Subscribe to RSS - Post installation