The problem in your initial post is caused by using the wrong LiquidCrystal_I2C library. Unfortunately there are several libraries with identical names, so other than trying different libraries the easiest solution is to look at the example code from the library you have and adapt the code to it. In future projects, use the hd44780 library by Bill Perry, available in the IDE library manager, it is currently supported and one of the best lcd libraries.