Error on the semaphore table while creating a content type

While creating a new content type I got this error:

DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 2584283494e40f34ad13a51.17003317 ) in lock_release_all() (line 266

This value: => 2584283494e40f34ad13a51.17003317 - is ever changing on reloading.
The fact is the semaphore table is empty.
It happened in the context of the heavily request overloaded server witch the site is running on.

Can anybody give me a hand with this issue as I`m lost found no answer while googling

Undefined index when submitting form. Newbie Help

Hello

I am developing a module that has a form to be submitted. With just a textfield anda submit button I had no problems. When I added 3 select fields I get an Undefined index in my form handler. My code is as follows

This is my form with only the textfield

function people_search_block_form($form, &$form_state) {
  $form['keys'] = array(
    '#type' => 'textfield',
    '#size' => 60,
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'Search',
  );
  return $form;
}

This is the new form with the extra fields

function people_search_block_form($form, &$form_state) {
$form['keys'] = array (
'#type' => 'fieldset',
);
$form['keys']['first'] = array(
'#type' => 'textfield',
'#size' => 60,
'#required' => TRUE,
);
$form['keys']['second'] = array(
'#type' => 'select',
'#title' => t('Division'),
'#options' => array(
'title' => 'Title',
'title1' => 'Title1',
),

);
$form['keys']['third'] = array(
'#type' => 'select',
'#title' => t('Field'),
'#options' => array(
'title' => 'Title',
'title1' => 'Title1',
),

);
$form['keys']['last'] = array(
'#type' => 'select',
'#title' => t('Project'),
'#options' => array(
'title' => 'Title',
'title1' => 'Title1',
),
);

errors

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access public://_DSC2697.jpg in file_save_upload() (line 1541 of /f5/lailys/public/includes/file.inc).
File upload error. Could not move uploaded file.

how can I fixe it?

creating a node inside of an existing node

Hello. I'm trying to create a page under an already existing node or page. The page I have is key documents.
I want to put things like "our mission", "statement of faith", and so on under key documents.
How might this be done? Would i have to create a menu for the key documents page and put things for that page in that menu that will only show on the key documents page? Or would I use a book? Either or? I'd appreciate any tips you guys might have.

How to have the home page code?

Hello,

I'm new on Drupal and I've done the module tutorial to the end.
I think I've understand-it but I didn't find another tutorial or source code to do what I want.

I'm looking to do like on the default home page but with a list of content I've selected before.
In the tutorial we only have nodes with few infos and a theming like link list and I rather have a full content and a theme like a list of preview content.

How can I get a list of content to display and after that how can I send it to the theme to display in a preview list?

Field API multiple values problem

I have been using the field api to link one node to another. I am sure similar things exist in the modules session. But I am still hoping to go through the coding process for a more in depth understanding in drupal.

Here is the situation, as one node might be related to multiple node. when i attach the custom made API to a new content type. I am allow to select multiple values to unlimited in the setting. After that, i tried to add new content for the content type. In the field session (the custom field that i made) it has 2 input instead of one. 2 input field should only appear when i click add another item. So I am hoping if somebody can give me some hints on where / what is the problem. Since I cannot attach the file here. I am copy down the hook that i have made for the field API.

/**
* Implement hook_field_schema
*/
function belong_to_relation_field_schema ($field) {

// Declare fields in the db
$columns = array (
'to_node_type' => array (
'type' => 'varchar',
'length' => '64',
'not null' => FALSE,
'description' => 'The relation id from the belong_to_relation table',
),
'to_node_nid' => array (
'type' => 'int',
'not null' => FALSE,
'description' => 'the node id of the to node',
),
'extended_node_nid' => array (
'type' => 'int',
'not null' => FALSE,

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x