How to apply patches

I am new to this so please be kind. I never patch something before and am not sure that I do it right.

My setup is as follow:
Ubuntu with Apache, Drupal 7.7

I try to apply patch to Media module like this:
1. Download file: media-dont_select_temporary_files.patch
2. Move file to : ../sites/all/modules/media
3. Type in command line: sudo patch < media-dont_select_temporary_files.patch
And receive:

fieldsets are not rendered collapsible and without title if Title is 0 or '0'

My fieldsets are not rendered collapsible and without title if Title is 0 or '0'!


<?php

//fieldsets are missing label (and therefore are not collapsible) if title is 0 or '0'.

function test_menu() {
$items = array();
$items['test'] = array(
'title' => 'test',
'page callback' => 'drupal_get_form',
'page arguments' => array('test_form'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}

function test_form($form, &$form_state) {
$form['nuller'] = array(
'0' => array(
'#type' => 'fieldset',
'#title' => t(1),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#tree' => FALSE,
'symbol' => array(
'symboltitle' => array(
'#type' => 'textfield',
'#title' => t('Title'),
),
),
),
'1' => array(
'#type' => 'fieldset',
'#title' => t('0'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#tree' => FALSE,
'symbol' => array(
'symboltitle' => array(

New to Drupal

Hi, I'm completely new to Drupal and website development. So far I've got Drupal 7.7 installed and running. I am trying to figure where to start. I downloaded a theme, OM Admin Theme. I've got it running at my default them, while the Admin theme is Seven. When I load my host page, all I get on the page is "TopBottom", which is the OM Admin Theme untouched. How do I get into the configuration menu, which would be Seven? I can't do anything with the OM Admin Theme as default.

Loading Dynamic Content

Has anyone been able to make pages look as though they are loading in the current page. Here is an example of what I mean taken from CSS tricks:

http://css-tricks.com/examples/DynamicPage/

Building this in normal html is easy, but I can't get the same code to work in Drupal. I'm assuming it is to do with the $ conflict in the jQuery. I have tried altering this but still don't get the same effect.

Extreme Delay in Loading D7 Site on Safari

When I go to visit one of my Drupal 7 sites in Safari for the first time in maybe 8 - 12 hours, it takes 10-15 seconds to pull up the site's home page. Subsequent loads are very quick. The server I'm on is using varnish, memcache and APC for caching.

As best I can tell, the Safari browser cache has no impact on this (emptying the cache does not reproduce the issue). This problem occurs whether or not I am logged in to the site, although it seems worse if I am logged in.

Enabled module(s) get disabled after a few days

Hi there,

I have a multisite installation in the following form:
- sites/default - contains only default.settings.php, files/ and settings.php
- sites/mothersite.com - contains settings.php, files/, modules, themes etc
- sites/subdomain.mothersite.com - as above
- sites/subdomain2.mothersite.com - as above
- and so on

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x