Possible reason:
This error occurs because when there is an image in gallery which name (title) is number – e.g. ‘1990.jpg’.
In order to fix this issue you should either rename image (number -> string) before upload or change image title in gallery (number -> string).
e.g. ‘1990.jpg’ -> ‘a1990.jpg’
Explanation:
In ‘envira-min.js’ there is line ‘n=n.replace(“<“,”<“)’, where n is caption (title), and since replace function is not defined for type ‘number’ error occurs.