hey, For many purpose we have to print the array or object while making a custom modules or debuging any old module, we have to print the array or object to see the values are fine or not, drupal provide a way to see those using watchdog, But how we print array or object in watchdog function,…
Are you searching to add a button scroll to top, then this article is for you.
Open your html page in any editor of your wish(sublime or editplus etc) and add below html to your last of your page (before the "</html>" closed)
<div><a href="#top" id="top">TOP</a></div…
This is error caused by php7 and later,many application will face this error Reason behind is that the php 7 will not convert the blank variable with is define as string to array:
Suppose you define a variable like below code and later you use it as array, then this error come in the picture…
A recently got the error below after updating wordpress website to php 7, error causing the website blank and when the debug mode on we got this error, caused by revolution slider.
PHP Fatal error: Uncaught Error: Call to undefined function mysql_error()
This error is due to "mysql_error()"…
If you want to render the menu items in custom way in page or node twig template of drupal 8 then this article is for you :
At man place where you make the template in drupal theming you want to render your menu in different style, For example main menu at header shows in different style while…
Usually we all use "rm" command to delete or remove the files and folder on linux, but if we want to delete the specific type of content/files then we can use "find" command to find and "delete" command to delete;
find . -name "*.zip" -type f -delete
or enter path of directory
Find is best command to apply permission to directories and files recursively to all .
find /desired_location -type d -print0 | xargs -0 chmod 0755
find /desired_location -type f -print0 | xargs -0 chmod 0644
Download Putty - Click Here
To Transfer files and Folder between to computer or remote server using putty .pem or .ppk file is easy.
scp is common and best way to transfer files and folder between to remote servers or local machine.
copy file from one to another system:
scp -i mykey.pem…
If you want to create the snapshot daily of you aws instance this article is for you, previously I was use aws cli to make snapshot daily using linux cron, but few months back I found a script by caseylabs on github, following url will get you there or attached zip will also work, I…
I have faced this error recently , look like this
Warning in ./libraries/sql.lib.php#601
count(): Parameter must be an array or an object that implements Countable
This warning comes again and again when you try to access phpmyadmin databases tables ,
below solution I tried…