Skip to main content
Home
Drupalnesia

Main navigation

  • Home
  • Training
  • Komputer
    • Network
    • Programming
User account menu
  • Log in
Dark Mode Toggle
By webadmin, 3 July, 2023
Classy dan Stable Theme

Cara Uninstall Deprecated Theme (Classy dan Stable) di Drupal 9

Drupal 9 sudah tidak memakai Theme Classy dan Stable, kedua Theme ini sudah usang (deprecated). Namun kedua Theme ini tidak dapat di Uninstall karena tidak muncul di menu Appearance. Hal ini sangat mengganggu karena muncul error di Reports - Status Report.

Cara uninstall kedua theme ini sbb:

Tags

  • theme
  • classy
  • stable
  • deprecated
By webadmin, 27 January, 2023
CKEditor

Cara Upgrade CKEditor 4 ke 5

Drupal 9 menyediakan 2 module CKEditor, yaitu CKEditor 4 dan 5. Hal ini sungguh membingungkan, mengapa tidak langsung dibuat upgradenya seperti pada umumnya sebuah module diupgrade? Entahlah.

Untuk mengupgrade CKEditor  4 menjadi CKEditor 5 maka caranya sbb:

Tags

  • CKEditor
  • CKEditor 5
  • Text Format
  • drupal 9
By webadmin, 3 January, 2022

Cara Cepat Rename File Secara Recursive

Pada saat kita membuat module atau theme dengan cara cloning maka perlu utk melakukan rename pada nama file dan juga semua text, variable dan function/object.

Untuk mengubah file name secara recursive sbb:

find . -name '*.txt' -print0 | xargs -0 -n1 bash -c 'mv "$0" "${0/oldname/newname}"'

Sedangkan untuk mengubah content file-nya sbb:

find ./ -type f -exec sed -i -e 's/ceremai/arjuno/gi' {} \;

Have a nice day (WW).

Tags

  • rename
  • sed
  • recursive
  • module
  • theme
By webadmin, 9 August, 2021
Google Drive

How To: wget file from Google Drive Link

Sometimes clients give their Files/Backups of Dupal by sharing a Google Drive Link, when you wget the given link then you will get the link only, not the file. Look at this link:

https://drive.google.com/file/d/FILEID/view?usp=drivesdk

To get the file for simple/smaller file then use:

wget -c -t10 --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O NEWFILENAME

For large file:

Tags

  • google drive
  • wget
By webadmin, 8 August, 2021
WA Bubble

How To: Add WhatsApp Icon/Bubble to Drupal

Want to add WhatsApp (WA) icon/bubble? Just install WhatsApp Bubble and you're all set!

Open WA Bubble from  https://www.drupal.org/project/whatsapp_bubble then install using Composer or manually install using Drupal Module Install page.

Tags

  • whatsapp
By webadmin, 7 August, 2021

Must Have Drupal Modules

Depend on your project, but here my must have Drupal modules. Some modules only required one time during Drupal setup, such as: Menu Delete. Another modules required to if core modules have not yet complete their feature, such as Media modules to play external video.

Some modules which automatically installed (since this modules are dependency one) will not listed, i.e: Token and CTools which automatically installed when install Pathauto module. I will update this list.

By webadmin, 6 August, 2021
Upgrade Status module in action

Upgrade Drupal 8 to 9

Upgrade from Drupal 8 to 9 is easy. Just install Upgrade Status module then you will see which modules or themes not ready for Drupal 9.

Install Upgrade Status module from https://www.drupal.org/project/upgrade_status, or direct install using composer:

#composer require 'drupal/upgrade_status:^3.8'

After activated this module then Reports - Upgrade Status. (WW)

Tags

  • upgrade status
  • drupal 9
  • drupal 8
  • upgrade
By webadmin, 4 August, 2021

[SOLVED] PHP Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP)

This error, "PHP Warning:  Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP)" indicated a constant must be define first. This happen when you use PHP version >= 7.2.

To solve this issue you can define the constant or just downgrade to PHP 7.1. (WW)

 

Tags

  • undefined constant
  • php 7.1
  • php 7.2
By webadmin, 4 August, 2021

[SOLVED] Error adding inotify for /public_html/sites/default/files/php/twig/ ... No space left on device

The error of "Error adding inotify for /public_html/sites/default/files/php/twig/ ... No space left on device" caused by no more inotify available in your system. Quiet simple to solve this issue, just increase the inotify value. But problem will be hard if you use Container for VPS, you need Server Administrator to alter inotify value.

Suppose your inotify is 8192 and you want to increase to 128000:

Tags

  • inotify
  • container
  • max_user_watches
By webadmin, 4 August, 2021
continue break php 7.2 7.3 error

[SOLVED] Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2

The error of "Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2"?" caused by your CMS did not support newer PHP version. There 2 solutions:

  1. Repair your code to support PHP >= 7.3 version
  2. Downgrade to PHP 7.2

Of course, revise your code to support newer PHP version is the best way, but sometimes you have no choice rather than downgrade your PHP version to 7.2.

Tags

  • break
  • continue
  • php 7.2
  • php 7.3

Pagination

  • Current page 1
  • Page 2
  • Next page
  • Last page

Kontak Kami

Need Drupal support? (Butuh bantuan Drupal?)

  • WA: 082 111 978 168
  • https://www.drupal.org/u/drupalnesia
  • Office: Mangga Dua Square - Jakarta Utara 14420

Recent content

  • Cara Uninstall Deprecated Theme (Classy dan Stable) di Drupal 9
    1 year 1 month ago
  • Cara Upgrade CKEditor 4 ke 5
    1 year 1 month ago
  • How To: Add WhatsApp Icon/Bubble to Drupal
    1 year 6 months ago
  • Training
    2 years 6 months ago
  • Cara Cepat Rename File Secara Recursive
    2 years 7 months ago
  • How To: wget file from Google Drive Link
    3 years ago
  • Must Have Drupal Modules
    3 years ago
  • Upgrade Drupal 8 to 9
    3 years ago
  • [SOLVED] PHP Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP)
    3 years ago
  • [SOLVED] Error adding inotify for /public_html/sites/default/files/php/twig/ ... No space left on device
    3 years ago

Pagination

  • 1
  • Next page
RSS feed
Powered by Drupal