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).
08
Sep
2019

update drupal 8 core

Posted by hamu
  1. Backup files: Compress the directory that contains our 'CORE' directory (typically 'public_html' ) and download it to local directory
  2. Backup DB: GO to phpMyAdmin choose the relevant DB, click 'export' on the top right horizontal menu. use 'custom' to compress it or just click 'go' to download it as it is. save it to the same directory you saved the compressed file system
  3. Put site in maintenance mode Configuration > Development > Maintenance mode
Tags: 
10
Feb
2016

Watchdog Log

Posted by hamu

For debugging: Add a call to watchdog in the module or template.php, and set the type to the module or theme name:
watchdog($type, $message)

To view the messages you added using the watchdog, go to Administration >> Reports >> Recent log messages

Tags: 
09
Feb
2016

things I learned about color module

Posted by hamu

Problem:

Changing theme colors using the admin area failed.

Solution:

The logo.png file was missing from the theme's root folder, probably causing a uncaught exception that caused the bug. After locating the image file in thr correct place (root folder), the problem ceased.

Pre-defined color schemes

Pre-defined color schemes are declared in 'color.inc' file, as an array inside 'schemes' array, and are executed in 'preview.js'. So we can use these 2 files to add color definitions to the theme.

Pages