PDOException: in field_sql_storage_field_storage_write()

i want insert some php code to database and show it like node


//create a node
function create_node()
{
//body content
$body_text ='

SOLVED-Drupal 7.x errors Installing modules via "install new module" link

EDIT: It was two issues--One was a permissions problem (DOH!)

But even after that was resolved, installing modules via the link kept taking me to a page wanting me to confirm file system changes--which threw me 505s when I entered the information it asked for. I created two new directories (one for temp files and one for private downloads) at ~/ and plugged that info into the file system settings. Voila! No more errors.

Original issue:
Earlier today I was able to install Views via the "install new module" link on the modules page of a Drupal 7.x beta 2 installation. Now when I attempt this on a different account on the same server, I get the following when I attempt to install Views:
File temporary://update-extraction/views/ already exists and is write protected

As a test, I tried installing a different module--Administration Menu--using that method, and got the following errors:
* The specified file temporary://filezhfuMD could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.
* http://ftp.drupal.org/files/projects/admin_menu-7.x-3.x-dev.tar.gz could not be saved to temporary://update-cache/admin_menu-7.x-3.x-dev.tar.gz.

Point in time restore and recover in MySQL

Hi guys

Does anyone have a link to any docs on how to perform a point in time restore/recover for MySQL?

Cheers

Jibb

How do I create a custom Context reaction?

I want to create a simple context reaction. Basically, when a condition is met, use drupal_set_message to say "Hello World."

I am using version 7.x-3.0-alpha2 of the Context module, and Drupal 7 Beta 2.

Here is the code I have in my module:

context_helloworld.module:


function context_helloworld_context_plugins() {
    $plugins = array();
    $plugins['context_helloworld_context'] = array(
    'handler' => array(
        'path' => drupal_get_path('module', 'context_helloworld.context'),
        'file' => 'context_helloworld.context.inc',
        'class' => 'context_helloworld_reaction_helloworld',
        'parent' => 'context_reaction',
        ),
    );
    return $plugins;
}

function context_helloworld_context_registry() {
return array(
    'reactions' => array(
        'bar' => array(
            'title' => t('Hello World Reaction'),
            'plugin' => 'context_helloworld_context',
        ),
    ),
);
}

context_helloworld.context.inc:

class context_helloworld_reaction extends context_reaction {
    function execute(&$vars = NULL){
        drupal_set_message(t("Hello World from a context reacation."));
    }
}

If I have the module enabled, it gives me a white screen when I try to add a new context.

Of course, without my module enabled, it works fine.

Lexicon, Glossary, Wiki - Modul - Drupal 7

hey guys,
im looking for a lexicon, glossary, wiki modul for drupal 7.
thanks for your help

View UI and D7?

I recall D7 integrates Views. Yet, I cannot find the Views UI to allow me to manipulate the various items. Do I need to add a D7 version of Views (and is it working?) to create another view?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x