error fix, sending constants variables to php functions for lantern search