Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
webstationhq opened this issue Apr 21, 2020 · 1 comment

Comments

@webstationhq
Copy link

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).

@mfuggle
Copy link

mfuggle commented Jan 6, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants