socialmedia.module
line 138
add
if (module_exists('block')) {
step 4 of wizard wont work without block module enabled

Comments

TomDude48’s picture

Status: Needs work » Needs review

I put a fix in dev for this issue.

Andrew Edwards’s picture

Hi Tom,

I think block is still required in dev:

7.x-1.0-beta13+3-dev has:

  if (!module_exists('block')) {
  	drupal_set_message(t('The Block module must be enabled before using this wizard.', 'error'));
  	return '';
  }

Also the drupal_set_message line is causing an error for me:

Recoverable fatal error: Argument 2 passed to t() must be an array, string given, called in /Websites/openethical/sites/all/modules/contrib/socialmedia/socialmedia.setup.inc on line 14 and defined in t() (line 1477 of /Websites/openethical/includes/bootstrap.inc).

Cheers,

Andrew

Andrew Edwards’s picture

Hi Tom,

I think block is still required in dev:

7.x-1.0-beta13+3-dev has:

  if (!module_exists('block')) {
  	drupal_set_message(t('The Block module must be enabled before using this wizard.', 'error'));
  	return '';
  }

Also the drupal_set_message line is causing an error for me:

Recoverable fatal error: Argument 2 passed to t() must be an array, string given, called in /Websites/openethical/sites/all/modules/contrib/socialmedia/socialmedia.setup.inc on line 14 and defined in t() (line 1477 of /Websites/openethical/includes/bootstrap.inc).

Cheers,

Andrew