somehow a user was added

hi,
just received a mail that said that someone had applied for an account
on my site.
and when i logged in i noticed a user was added.
how is that possible?

thanks.

hook_schema: Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql()

Hey guys,

with the following hook_schema implementation

function mymodule_schema() {
	$schema['mymodule_rent'] = array(
		'description' => 'The rent table.',
		'fields' => array(
			'id' => array(
				'description' => 'The primary identifier.',
				'type' => 'serial',
				'unsigned' => TRUE,
				'not null' => TRUE,
			),
			'uid' => array(
				'description' => 'The User who rents the item.',
				'type' => 'int',
				'unsigned' => TRUE,
				'not null' => TRUE,
				'default' => 0,
			),
			'title' => array(
				'description' => 'The rent project name.',
				'type' => 'varchar',
				'length' => 255,
				'not null' => TRUE,
				'default' => '',
			),
			'from_ts' => array(
				'description' => 'The Unix timestamp when the user took the item.',
				'type' => 'int',
				'not null' => TRUE,
				'default' => 0,
			),
			'till_ts' => array(
				'description' => 'The Unix timestamp when the returned the item.',
				'type' => 'int',
				'not null' => FALSE,
				'default' => 0,
			),
		),
/**		'unique keys' => array(
			'id_uid' => array('id', 'uid'),
		),
*/
		'primary key' => array('id'),
	);

when enabling the module i get

Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 6735 of /var/www/drupal-dev2/includes/common.inc).

Increasing max length of author display

Hello,

Currently, my website cuts off authors names at around 15 characters
Example:
Firstname lastna...

How would I increase the display length of the author field to do:
Example:
Firstname lastname

Thanks

Update: Got it, thanks.

Views being rendered on every page

I'm troubleshooting a very slow Drupal 7 site and after poking around I'm pretty sure it's the extensive use of Views and Calendar. Caching seems to be enabled every where but still slow. I was playing around with THEME_views_post_render and put a print_r ($view); inside that function. (function is in a custom module.) I noticed it seems that every view is being executed on every page view - even in all the admin pages. I got 100,000+ lines of HTML when viewing any page. Seems like a view should only be getting rendered when needed... any ideas on this?

Can not created thumbnails with Imce

After upgrading my webiste from Drupal 6 to Drupal 7 i can not create thumbnails with Imce.
I just to, while uploding images with fckeditor and imce, create the thumbnails so i had a large image and a thumbnail.

When i now try to create thumbs nothing happens, i don't get a error and there are no thumbs created.

The GDI Libray seems to be working well. On to other websites, Drupal 6 and sub-domains, everything works just fine.

All the permissions seems to be allright, i cant figure out what is going wrong.

Fouch

Safe-mode on or off - whats the deal with the server-security in D 7 and 8

Well - good day dear folks - hello dear community

"... some scripts require Safe mode OFF ... these scripts will not be able to run from your MIS webspace."
well guys: am I out of luck, or is there a workaround to have Safe Mode on with Drupal 7?
7 preferably. I do not want to run a unsecure server.

So whats the deal with the safe-mode - what should i configure on the server – Safe-mode on or off!?

Love to hear from you

cheeers
ul

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x