Errors were encountered while processing:

dpkg: error processing package mariadb-server (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu7) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
2017-07-15 16:15:35,896 (INFO) ee : Oops Something went wrong!!
2017-07-15 16:15:35,896 (ERROR) ee : Check logs for reason `tail /var/log/ee/ee.log` & Try Again!!!



sudo -s
cd /var/cache/debconf
rm *.dat
apt-get update && apt-get upgrade




Note: I couldn’t find the reason for that but got the solution. Anyone knows the reason?


Edit old commit message on github

Sometimes we make mistake in git commit message, especially spelling mistake. Even though I think twice before pressing the enter key after I write the commit message, I made spelling mistake twice or thrice. That’s my bad actually and I accept it.

So let’s start changing old commit message from GitHub. One thing you need to note that this will edit your commit message from the particular branch only.

Step 1: Open terminal or ( cmd for windows user ) and go to the particular repository.


Step 2: run command git log


Step 3: Choose a commit message which you want to change and count on which position that commit message is. Let’s say it is on 6th position.


Step 4: run git rebase -i HEAD~7

by running this message you will get output something like this:

pick 0856faf Message 1
pick 7ef84df Message 2
pick 55930c2 Message 3
pick 9bf24e0 Message 4
pick 412fc71 Message 5
pick 483f8b6 Message 6
pick c101979 Message 7

# Rebase 0c6220f..c101979 onto 0c6220f (7 command(s))
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
# f, fixup = like "squash", but discard this commit's log message
# x, exec = run command (the rest of the line) using shell
# d, drop = remove commit
# These lines can be re-ordered; they are executed from top to bottom.
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
# Note that empty commits are commented out

Note: HEAD~7 because we want to edit 6th commit message. For a safe side, we add one more message.


Step 5: Change command pick to reword , as we only want to change the commit message. Like as shown below and exit ( ctrl+X )

pick 0856faf Message 1
reword 7ef84df Message 2
pick 55930c2 Message 3
pick 9bf24e0 Message 4
pick 412fc71 Message 5
pick 483f8b6 Message 6
pick c101979 Message 7

( You can edit multiple messages too. )

Note: There are other options that you can do for commits. Those options you can see right below your commit message list.


Step 6: After that, you will be asked to change your commit message. So edit it and save it ( ctrl+x ).


Step 7: Now run git push --force origin

( use –force is compulsary. Otherwise there will be double commit message )

Note: During push it will show some warnings. Ignore it as it is warning 😉 . Sit back and relax.


Yepieeeeeee. Your message is changed

If you have any issue then comment it. I will try my best to solve the issue.

PHPCode Sniffer + Sublime on windows

Things you need for:

  1. cmder
  2. composer
  3. Sublime Text 2/3

We are going to install using composer, because it will automatically install related packages. So no need to do too many manual stuffs.

Step 1: Open “cmder” and run following command

composer global require "squizlabs/php_codesniffer=*"

This will install php code sniffer into your system.

Step 2: Now run following command into “cmder”.

composer create-project wp-coding-standards/wpcs --no-dev

This will install and register WordPeress coding standards into code sniffer.


Now we will integrate the code sniffer into sublime text editor. You will need package installer for that. You can install that from here

Step 3: Open Sublime Text editor and press ctrl+shft+p. You will get the textbox into editor. Type “install package” into that and press enter and wait for a while, don’t change the window.

Step 4: After a while you will again get a textbox. Type “phpcs” and you will get the result and click on “phpcs” and wait. This will install code sniffer package for sublime.

Step 5: Go to “Preferences->Package Settings->PHP Code Sniffer->Settings-Default“.

Step 6: Add “phpcs_executable_path” as shown below.

"phpcs_executable_path": "C:\\Users\\YOUR_USERNAME\\wpcs\\vendor\\bin\\phpcs.bat",

Step 7: Save the file and restart sublime.

That’s it….!!!!!!! Code sniffer is integrate with sublime.

To check if it’s working or not, open any PHP file and “right click->PHP Code Sniffer->Switch coding standards” and chose any coding standard which you want.

After that again “right click->PHP Code Sniffer->Sniff this file“. You will get some error according to your chosed coding standard.

So that’s all for now. If you have any question, then write down into comments. I will try to answer those questions.

WordCamp Mumbai

Whooaaaaaaaaa…!!!!!!!!!!!! Mumbaaaaaaaaiiiiiiiiiiiiiiiii……………………………………


This was my 2nd WordCamp and it was at Mumbai. This WordCamp was like medicine for me as I had some problems in my personal life.😉 I was back to work after 10 to 15 days and that weekend there was WC Mumbai. So it helped me a lot to get refresh.

Let’s start with the journey.

We have started our journey from OLA cab with Siddharth, Anto and Bharat (BNAP) for a Pune railway station. We booked a ticket for Mumbai and after 3 to 4 hours journey we reached at the venue. Mumbai was hot. I am talking about weather guyzzzz. 😉 But our venue was quite cool.

So after reaching at the venue, I told my name “Bhargav” at the registration table. And there were other Bhargavs too. So they asked my surname so I told my surname “Bhandari” to the person at the table. So he was searching my I card, but he got some other Bhargavs like whatever card he got, he read the name from that I-card “Bhargav Mehta” ….. He got some other bhargav’s I-card. During collecting my I-card, one girl beside me was smiling whenever that person called my name. I don’t know why? 😕

After collecting the stuff from the registration table I went inside the college and the atmosphere like woww !!!!… I saw our rtCamp table and went there and made a mark of the rtCamp logo on my hand and started exploring the WordCamp and met one interesting person. She was at just right beside our table. I forgot her name but she was nice. The way she was explaining the thing was damn good. And I must say she was the only interesting person I found on the first day.

Then after I attended a couple of sessions. The auditorium was huge and I liked it the most. My favorite sessions were like WP-CLI session and our boss Rahul Bansal’s “PHP in WordPress way”. I found that very interesting and I learned something from these two sessions only. At the first day, I saw my x-boss during lunch. So I went to meet him. We talked for a while and then I rushed to the queue for lunch as I was so hungry.

At the end of the day, I decided to go to my hometown. So I went to Mumbai Central and took the train for that. I decided not to spent a night in Mumbai. I wanted to go home and came again to the next morning.

At the next morning, before going to the WordCamp, I visited the Mount Merry church as I always wanted to visit that place. That was my first visit and I feel so good at there. I will definitely visit that church again. I shared some pics of the church on my Instagram profile. You can see those at here. After spending some time at the church, I went to the venue and at that day only I was waiting for Nirav Mehta’s session. And it was damn good, so inspiring. After that, I went for getting the WC Mumbai t-shirt and a mug. And I got that. 🙂

At the end of the WordCamp, a group photo session was there as always. You can see at the top of this blog. After that, I took an extra t-shirt for my friend, Amit. And he was happy to see that. So our train was from Mumbai at around 9 pm and we have 3 hrs. So I decided to go to Bandsatand with Siddharth and Naveen. We had a great time at there. Then we went to station for getting back to Pune. It was an adventurous journey. Why?  That you will know in my next blog. 😛

One thing I always wanted to do was walk at the Marine Lines. I had a chance but I missed it as I went to my hometown for a night stay. So next time, I will definitely do this.


That’s me and Yahil ( left ), attending a session and having a selfie.    

Me, Naveen(center) and siddharth(left) at Bandstand.

So that’s all. See you at the next bolg. 🙂





Fun @ WordCamp Pune

In my previous blog First WordCamp, I covered what we have done in WordCamp. Now in this blog, you will know what fun we did at that day.

So let’s start with swag collection. Collecting swags was the most fun part I found. Initially, I was hesitating to get to the desks of sponsors and get the swags, I don’t know why. Then I saw others are having fun with collecting swags and talking to the representative of the other companies. So I decided to do same and started to go to the desks and talk to their reparatives and collect the swag. That was a simple plan I thought. But after a couple of minutes, I found it’s not as simple as I thought. I’ll tell you how? 😛

So I made a plan and went to one of the desks and shake hand with a person standing at there. That’s it after that I didn’t know what to ask them and started watching some templates on the desk. There are other people who are doing some queries and getting some info about the organization. That’s it, now I got that…  And I started asking a question. Now I know that what to do. I found that very good for getting info and especially for the swag.😋

I got two t-shirts and lots of badges and stickers and a water bottle. During that, we have a Bingo contest which we won. It was a good contest. Actually, Bharat won that task, but still not got any prize. 😋 He did a great job in that task. Ok, reading is getting boring right !!!!! Let’s see some pics.

img_20170121_2113391 There it is. These are the swags which I got. There are two t-shirts, some badges, stickers, and a key chain. And that’s the water bottle, my friend’s favorite…!!! 😀 Whenever he will read this he’ll gonna kill me. 😆





This is the selfie which I took right after got the badge of an attendee. Vivek and Pranali were there at the registration table.







We, playing football. I was really tired. It’s an another interesting thing that we played football there. After 5 years, I played that. And guess what!!! I can’t play as I used to. Like “Ab wo bat nahi rahi (It’s not like before)”.



img_20170115_0943171A selfie with Anto at the middle and Yahil at the right. And Anto met some Malayalis at the WordCamp. He started talking in their language with that person. I didn’t know what he was talking but I thought the was making fun of me and Yahil. So me and Yahil also started talking in Gujarati and made fun of him. 😋






This is one of the sessions which I attended. I attended total 3 sessions.






These are Radhe and Rakshit at the desk. I don’t know what Radhe is doing, but I am sure He might be checking internet speed. 😆 And for Rakshit I can’t say anything. 😋



After WordCamp over, actually it was not over. After party was remaining now. And I was so excited for after party. And the sad part was that I was the only one who was excited. Other people like Yahil, Anto etc are refusing for coming to the after party. So, me and Mriyam were trying to convince them to come and somehow we were successful to convince them. And their decision was not wrong. We actually enjoyed a lot there. The venue for after party was “The Classic Rock Cafe”. We all got first drink free. So I took a beer bottle. And I also tested whiskey first time there. And it was not good at a test.

After the party, we went to a restaurant “Chopstick”. It’s Anto’s favorite restaurant and we ate a lot there till late night. After that, we returned to our rooms. And that’s it!!!! WordCamp is over….!!!! Now next is Mumbai WordCamp at March….!!!!!!!!!! See you at Mumbai…..