Wednesday 28 May 2014

drupal 7 modules install error File upload error. Could not move uploaded file.

For me its

in drupal admin

Configuration >  Media ( box ) > File System

and then I changed the temporary path to   '/tmp'

Thursday 22 May 2014

acquia cloud not a git repository ( or any of the parent directories ): git failed

acquia cloud not a git repository ( or any of the parent directories ): .git git failed



I was getting this issue when trying to delete my site from the Acquia Dev Desktop 2 console.  The problem was that rather that trying to delete the folder I needed to delete using the console.  By using the '-' sign in the bottom left hand corner.  Once you do this then you have the option to Pull from Cloud again. 

SOLVED 

Wednesday 21 May 2014

How to make changes in Drupals TB Mega Menu Module

Rather than hacking over CSS here's how to make changes in Drupals TB Mega Menu Module.

the files can be found at sites/all/modules/contrib/tb_megamenu/css/styles/black.css

make a new file here like grey.ss

then in   /sites/all/modules/contrib/tb_megamenu/tb_megamenu.functions.inc 


Add 

'grey' => t('Grey'), 

under 

'green' => t('Green'), 


And 

    drupal_get_path('module', 'tb_megamenu') . '/css/styles/grey.css',

under



drupal_get_path('module', 'tb_megamenu') . '/css/styles/green.css', 


in admin visit  structure -> tb mega menu  ->  ( your menu ) -> configure. 

you can now choose Grey  

Tuesday 20 May 2014

Drupal Simple HTML Dom not installing

simple_html_dom.php is missing. Please copy the latest version of simple_html_dom.php (PHP Simple HTML DOM Parser library) from http://sourceforge.net/projects/simplehtmldom/ to you libraries folder, for example sites/all/libraries/simplehtmldom/simple_html_dom.php (Currently using "PHP Simple HTML DOM Parser" library not installed)


Go to


and download the file simple_html_dom.php

and paste in sites/all/libraries/simplehtmldom/

Friday 9 May 2014

Drupal Migrate Module error on activating Migrate UI


PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '*.migrate_group' doesn't exist: SELECT mg.name AS name, mg.title AS title, mg.arguments AS arguments FROM {migrate_group} mg; Array ( ) in migrate_ui_migrate_dashboard() (line 29of *sites/all/modules/contrib/migrate/migrate_ui/migrate_ui.pages.inc).



the fix here was to add the following table to mysql 


CREATE TABLE IF NOT EXISTS `migrate_group` (
  `name` varchar(255) NOT NULL COMMENT 'Unique machine name for a migration group',
  `title` varchar(255) NOT NULL COMMENT 'Display name for a migration group',
  `arguments` blob NOT NULL COMMENT 'A serialized array of arguments to the migration group',
  PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



Wednesday 7 May 2014

How to change the password for user in Drupal 7 using mysql and phpmyadmin

Here’s the hashed MD5 password for ‘password’

$S$CDbdwZvjHQ09IVRs88G0fnaxPr50/kb81YI9.8M/D9okW7J/s5U4

this will get you in but then you may need to Change the user permissions on Drupal 7 in Mysql using phpmyadmin

drupal 7 user roles users_roles rid for super administrator

drupal 7 rid roles

User role should be ‘4'