grav-plugin-unitegallery icon indicating copy to clipboard operation
grav-plugin-unitegallery copied to clipboard

Unitegallery v1.1.3 - (Bootstrap?) Validation says pixel field must be 100 chars long

Open webstationhq opened this issue 5 years ago • 1 comments

I just made a fresh install of Grav 1.6.23 and the first plugin I tried to install was your UnitGallery 1.1.3. Instead of accepting the default values for the thumbnail size (600), I adjusted it to 150. When I tried to click "save" to finish installing the plugin, I got a weird error message. I previously had a bootstrap theme installed but blew everything under webroot away prior to the fresh install.

Here is a screenshot:

Screen Shot 2020-04-21 at 2 13 16 PM

When I go to plugins, it shows your plugin is installed however if I try to adjust the size again, I get the same error.

I inspected the code and noticed this:

<input name="data[thumb_height]" value="600" type="text" minlength="100">

A pixel height value should not be 100 chars. As a workaround, I made it a float and the form accepted it and shows the value now as 150 (rounded out properly).

webstationhq avatar Apr 21 '20 21:04 webstationhq

I have just installed Unite Gallery in Grav and have the same issue. I am not a coder so I was wondering if you could let me have the precise change you made and the file in which it has been made?

mfuggle avatar Jan 06 '23 22:01 mfuggle