Temp directory on windows.

I have installed Drupal 7 on windows and in general its working fine with the major exception of that we cannot update the software. When I go to run the available updates script and the tick an update to install I get an error about a .tmp file could not be copied.

I suspect that its either not finding or has the wrong permissions on the temporary directory. I have the temporary directory set to c:\temp and this has full permissions (from what I can see) but its still failing to download updates.

Can anyone suggest a possible solution



How to get access to a URL elements

Hi there,

in my website, there a url like www.bluemoon.com/edit_site/xyz, where xyz can be dynamically changed. In my coding, how can i get the value of xyz. any suggestions will be appreciated. thanx in advanced.

Loading multiple form elements with AJAX callback

Hi all,

I'm currently tring to load multiple form elements with a ajax callback, this is working partly.

First there is a select box with the 'type' choose, after a user has chosen the type another select box will appear and the user can choose a more specific option related to the first option. After this last option, multiple form elements need to be loaded depending on the user choice. At this moment the first AJAX call works perfect. Only the second call doesn't work correctly, I'm getting some form elements returned but when I change a option the stay on the screen (elements for a option don't disapear when choosing another option).

function add_assignment_event($form, &$form_state, $verion_id){
//this AJAX fucntion works perfect
$form['choose_type'] = array(
'#type' => 'select',
'#title' => 'Type',
'#options' => drupal_map_assoc(array(t('Choose type'),
'#ajax' => array(
'callback' => 'type_input_ajax_callback',
'wrapper' => 'input_type_wrapper',

$form['type'] = array(
'#type' => 'markup',
'#title' => '',
'#prefix' => '

'#suffix' => '


$form['open_question_question'] = array(
'#type' => 'markup',
'#prefix' => '

'#suffix' => '


how to delete role expiration in ubercart roles through rules

Hi everyone,

I have installed ubercart for selling roles.
User having the role Premium (after purchasing) is able to create a node of TYPE A.

What I am doing is that I am invoking the roles (i.e removing the role Premium) after user save a node TYPE A, so that he is not able to create that node again by RULES.

My site is redirecting Mobile Devices

I've been busy working on and expanding my site, and I've not been paying much attention to much else - Until I tried to access my site through my mobile, and noticed I was being redirected to scam websites (win an iPad and that kind of rubbish) and of course I was bewildered.

I thought it may have just been my phone, until I tried accessing it with my girlfriend's phone and received the same result.

Changing public file field into private

After upgrading from drupal 6 to 7 I want to turn a public file field into a private. Since it contains data the system does not allow this.

If I go to field settings it says: "There is data for this field in the database. The field settings can no longer be changed."

Is there a way to do this?


Subscribe with RSS Subscribe to RSS - Drupal 7.x