Skip to main content

Posts

Showing posts with the label Drupal

Illegal form_id error after entering form ID in captcha module in Drupal7

Form ID of the form is "webform_client_form_21". CAPTCHA module validates Form IDs using /^[a-z_]+$/. then  Goto sites\all\modules\captcha and Open captcha.admin.ini file add modify line no 255,400 line  preg_match('/^[a-z0-9_]+$/', to  preg_match('/^[a-z0-9_-]+$/', and save file. Created a form with the webform module, checked "Add CAPTCHA administration links to forms", visited a form I created with the Webform module, clicked the link "Place a CAPTCHA here for untrusted users." clicked "Save". now you are done but to work captcha just modify form id for exaple if you got form id from webform  webform-client-form-1 then enter form id to captcha  webform_client_form_1 :)

How to reset admin password in Drupal7 ?

<?php   define('DRUPAL_ROOT', getcwd()); require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; include_once DRUPAL_ROOT . '/includes/password.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); echo user_hash_password('aktel');  die(); and copy this hash code to your user pass filed; or run this query UPDATE users SET pass='$S$CGM3hk.Fvl/pQlirfJmIQiXMOdifVR.wPoyT9e81ktxAStq7pmGK' where uid=1; and now your password is aktel or run this query: for D6 UPDATE users SET pass = MD5('aktel') WHERE uid = 1;