Error message

  • Deprecated function: Optional parameter $data declared before required parameter $info is implicitly treated as a required parameter in include_once() (line 1445 of /home/fdm/hamuf.com/knowledge/includes/bootstrap.inc).
  • Deprecated function: Return type of DateObject::__wakeup() should either be compatible with DateTime::__wakeup(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (line 143 of /home/fdm/hamuf.com/knowledge/sites/all/modules/date/date_api/date_api.module).
  • Deprecated function: Return type of DateObject::format($format, $force = false) should either be compatible with DateTime::format(string $format): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (line 143 of /home/fdm/hamuf.com/knowledge/sites/all/modules/date/date_api/date_api.module).
  • Deprecated function: Return type of DateObject::setTimezone($tz, $force = false) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include_once() (line 143 of /home/fdm/hamuf.com/knowledge/sites/all/modules/date/date_api/date_api.module).
  • Deprecated function: Optional parameter $input declared before required parameter $form_state is implicitly treated as a required parameter in include_once() (line 1445 of /home/fdm/hamuf.com/knowledge/includes/bootstrap.inc).
  • Deprecated function: Optional parameter $rrule declared before required parameter $item is implicitly treated as a required parameter in include_once() (line 1445 of /home/fdm/hamuf.com/knowledge/includes/bootstrap.inc).
  • Deprecated function: Optional parameter $rrule_values declared before required parameter $item is implicitly treated as a required parameter in include_once() (line 1445 of /home/fdm/hamuf.com/knowledge/includes/bootstrap.inc).
  • Deprecated function: Optional parameter $data declared before required parameter $name is implicitly treated as a required parameter in require_once() (line 342 of /home/fdm/hamuf.com/knowledge/includes/module.inc).
  • Deprecated function: Optional parameter $data declared before required parameter $name is implicitly treated as a required parameter in require_once() (line 342 of /home/fdm/hamuf.com/knowledge/includes/module.inc).
  • Deprecated function: Optional parameter $file declared before required parameter $entity_type is implicitly treated as a required parameter in require_once() (line 342 of /home/fdm/hamuf.com/knowledge/includes/module.inc).
  • Deprecated function: Optional parameter $account declared before required parameter $entity_type is implicitly treated as a required parameter in require_once() (line 342 of /home/fdm/hamuf.com/knowledge/includes/module.inc).
  • Deprecated function: Optional parameter $entity declared before required parameter $entity_type is implicitly treated as a required parameter in require_once() (line 342 of /home/fdm/hamuf.com/knowledge/includes/module.inc).
  • Deprecated function: Optional parameter $account declared before required parameter $entity_type is implicitly treated as a required parameter in require_once() (line 342 of /home/fdm/hamuf.com/knowledge/includes/module.inc).
  • Deprecated function: Optional parameter $values declared before required parameter $entity_type is implicitly treated as a required parameter in require_once() (line 342 of /home/fdm/hamuf.com/knowledge/includes/module.inc).
  • Deprecated function: Optional parameter $view_mode declared before required parameter $entity_type is implicitly treated as a required parameter in require_once() (line 342 of /home/fdm/hamuf.com/knowledge/includes/module.inc).
  • Deprecated function: Optional parameter $langcode declared before required parameter $entity_type is implicitly treated as a required parameter in require_once() (line 342 of /home/fdm/hamuf.com/knowledge/includes/module.inc).
  • Deprecated function: Creation of dynamic property i18n_menu_link_translation_set::$created is deprecated in i18n_translation_set->__construct() (line 27 of /home/fdm/hamuf.com/knowledge/sites/all/modules/i18n/i18n_translation/i18n_translation.inc).
  • Deprecated function: Creation of dynamic property i18n_menu_link_translation_set::$changed is deprecated in i18n_translation_set->__construct() (line 27 of /home/fdm/hamuf.com/knowledge/sites/all/modules/i18n/i18n_translation/i18n_translation.inc).
  • Deprecated function: Creation of dynamic property i18n_menu_link_translation_set::$rdf_mapping is deprecated in rdf_entity_load() (line 412 of /home/fdm/hamuf.com/knowledge/modules/rdf/rdf.module).

drupal 7

Problem: Site is multilingual, and I use translation for select list values. It works fine on the input data form (edit mode), but on "view", the saved values are shown in English and not in site's language.
Solution:
1. Go to the content type's Manage Display tab.
2. Change the Format value, next to the select list fields from 'Default' to 'Default translated'

I found the solution here: https://drupal.org/node/1101128

01
Sep
2013

Duplicate existing data field

Posted by hamu

Duplicate existing data field of a content type

  1. Edit your content type: Go to Structure » Content types . On the MANAGE FIELDS tab, Add new field. Use the same FIELD TYPE as in the field you want to duplicate. Save
  2. Still in content types: Go to the MANAGE DISPLAY tab, and verify that the new field is visible (it is not displayed under Hidden)
Tags: 
08
Aug
2013

User login blocked

Posted by hamu

Problem:

One of the users couldn't login to the site. After a few attempts the Sorry, there have been more than 5 failed login attempts for this account. It is temporarily blocked. Try again later or request a new password. message was displayed.
I entered the interface as admin, and went to this user's editing form. The user status presented was Active. I resetted the password, and tried to login as that user, but got the same error message.

04
Aug
2013

Import language translation

Posted by hamu
  • Locate the translation file: Go to https://localize.drupal.org/, click on the required language name, you will be redirected to the selected language's translation page.
  • Download the file that is relevant to your version (I downloaded the file next to 7.22, on the Drupal core project). It should have .po extension.
  • Go to the file system: Go directly to your file system on your localhost, use an ftp client or the control panel for your hosting server file system.

Pages