stuck on install.php solved.........

Did a stupid thing...
was installing Open Deals Distribution on my local host, I had made a copy of default.settings.php and renamed it settings.php just like you would on a normal Drupal install.

But when it came to Verify requirement screen a error said that I should not have modified the default.settings.php from the distribution.
So I went back in and deleted the settings.php.

There was another error with the default.settings.php, so I deleted the site from http docs and then dropped the data base mysql from phpadmin.

tableselect is empty...even though it has entries.

Here is the issue. I currently have a table select with the following code:

$form['epgp_modifyform']['epgp_table'] = array(
      '#type' => 'tableselect',
      '#header' => $userInfoSelectKeys,
      '#options' => $selectValues,
      '#empty' => t('No users!'),
      '#weight' => 0,
      '#attributes' => array('class' => array('epgp-list')),
      '#multiple' => TRUE,
    );

However, the table shows as empty, even though the $selectValues has 3 entries. I did an export on the $form to show you how I'm constructing it. what is paining me is that I've tried five different ways of formatting this, and it is still showing up empty. Ugh.

What am I missing?


array (
'epgp_modifyform' =>
array (
'#type' => 'form',
'epgp_table' =>
array (
'#type' => 'tableselect',
'#header' =>
array (
'number' =>
array (
'data' => 'Place',
'field' => 'n.number',
),
'pr' =>
array (
'data' => 'PR',
'field' => 'n.pr',
),
'ep' =>
array (
'data' => 'EP',
'field' => 'n.ep',
),
'gp' =>
array (
'data' => 'GP',
'field' => 'n.gp',
),
'name' =>
array (
'data' => 'User',

PDOException: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value adjusted for column 'value' at row 1:"

I've been beating my head against the wall trying to figure this out. I've updated Drupal core to 7.10, and am trying to update all my modules as well. I keep running into this error:

PDOException: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value adjusted for column 'value' at row 1: INSERT INTO {sequences} () VALUES (); Array ( ) in db_next_id() (line 2621 of /*file path*/web/content/includes/database/database.inc)

hash looks to be installed and enabled, but I still get "Call to undefined function hash()..." in error log

I've found a few posts on this but now am just spinning my wheels checking and re-checking - everything seems to say that hash is installed!

PuTTy: "php -m" shows "hash"
phpinfo shows
"/etc/php5/conf.d/mhash.ini" in "additional .ini files parsed"
and
"0" for session.hash_function

What else could there be?

I am Running PHP 5.2.5 on SUSE Linux 10 SP 3

Thanks in advance...

Lightbox2 with field_image on Drupal 7.x - duplicate images in articles

I'm having some trouble with Lightbox2 for Drupal 7. I wanted a tool to handle inserting scaled image thumbnails with links to original images into random places of article text. I thought Lightbox2 that does pretty much what I need. I've created a field_image for my article type, went to Manage Display, discovered a lot of Lightbox Formats available for field_image and set it to Medium -> Original to tell Drupal to scale uploaded images down automatically. Then I created an article, added a picture to it and wrote:

Drush and/or operator running into settings.php difficulties in multi-site multi-database setup

Problem: how do you construct settings.php so that both Drush and Drupal multisite can be bootstrapped with the right database across 4 servers? I can’t seem to find a robust way to detect the hostname from within Drush.

I am dealing with a complex configuration with 4 servers (localhost/development/testing/prod) and multi-site Drupal 7.9 with 4 sites.

We had a settings.php that works fine for Drupal 7. In it, the beginning went something like:

switch ($_SERVER['SERVER_NAME']) {
	case DEVELOPMENT:
		$databases = array (
			'default' =>
			array (
				'default' =>
				array (
					'database' => ‘example’,
					'username' => ‘myusername’’
					'password' => ‘mypassword’,
					'host' => ‘developmentserverdatabasehost,
					'port' => '',
					'driver' => 'mysql',
					'prefix' => '',
				),
			),
		);
	break;

etc, with that kind of logic repeated for each of the 4 environments.

However Drush seems not to have all the superglobals defined such as $_SERVER['SERVER_NAME'], which I take it is because it is not operating in a browser/webserver construct. When I cd to the site in question and do a ‘drush -d status’ on both my local and development environments, I see the following error:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x