PHP Warning

Warning: "substr() expects parameter 3 to be long, string given"

Notice: "readonly database"