SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

hiya,

i will install drupal 7 on a web-hoster ...
MySql is V 5.0.90
PHP is 5.2.13

Drupal 6.20 works fine (its not my first installation) but if i will install a complete new setup for drupal 7,
with a new database and after the database setting i got the error (database data are correct !):

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

drupal 7 installed at least 27 tables and the stopped ... last table: variable

does anybody have a hint or a workaround ?

tyvm !

rgds
heizer75

Menu and Sub menu

Hello,

I'm trying to get the child menu from a parent menu, and i don't know where i can see that information.

Can somebody help me ? I'm newbie

How to block direct content access by node number when a user enters it in a URL

Is there a method which prevents a user from being able to directly access content on Drupal 7 by entering the node number form of the content's URL?

We want our users to only able to view content when its accessed by the URL alias which was entered when the node was created. For example: /purple-clouds. For those who try and access content by node number directly, we would like it to be either redirected to the home page or get a 404 "not found". Don't really care which, as long as they can't see the node.

Transcoder issue on Video, ffmpeg?

Running Drupal 7, I have Media, Video, and all the sub-modules installed, too. I have no problem uploading and playing audio files, but when I try to use the Video Module to upload a vid file to play from within an article, I get this error after upload. I've poked around the Configuration > Transcoder section of the page but I don't really know what I'm looking for. I get this error regardless of whether I'm uploading an AVI, FLV, or MPEG video file <8MB.

Using inline images in Drupal 7

Dear all!

I've started using Drupal 7 recently. I was earlier using image and image_asst modules to use images inline in pages. But now in drupal 7 not sure of how to do it.

Please advise.

External Authentication Error

I created a new module to handle some external authentication. The code "works" in the sense that it properly logs the user in. However, it's displaying an error despite setting the login information. Here is the code for the module:

<?php
/**
* Implements hook_form_alter()
*/
function sl_login_form_alter(&$form, &$form_state, $form_id)
{
if (($form_id == 'user_login') || ($form_id == 'user_login_block'))
{
$form['#validate'][] = 'sl_login_user_validate';
}
}

/**
* Custom form validation function
*/
function sl_login_user_validate($form, &$form_state)
{
if (!sl_login_authenticate($form_state))
{
form_set_error('name', t('Unrecognized username.'));
}
}

/**
* Custom user authentication function
*/
function sl_login_authenticate($form_state)
{
$sl_username = $form_state["input"]["name"];
$sl_password = $form_state["input"]["pass"];

// Switch to SL Database
db_set_active('sl');

// Validate User Login
$slquery = "SELECT userid, username, password FROM users WHERE username = '$sl_username' AND password = '$sl_password'";
$slresult = db_query($slquery);
$found_records = 0;
foreach ($slresult as $row)
{
$found_records++;
$sl_userid = $row->userid;
$sl_username = $row->username;
}

db_set_active('default');

if ($found_records == 1)
{
user_external_login_register($sl_username,'SL');

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x