Direct answer: Do not bypass a required safety device just to make the gate move. A photo eye or safety edge may be part of the system that helps prevent the moving gate from striking a person or vehicle.
If the gate will not close, troubleshoot the sensor, wiring, alignment, and control-board input using the exact manual.