I installed 7.x-2.0-alpha1 and enabled about 30 fonts.

(I know this is not advisable, but I was attempting to do local development with a ton of fonts installed, then disable the unneeded ones before launching the site)

Now anytime I visit the admin page to de-select fonts or enable new ones I get a repeated: An illegal choice has been detected. Please contact the site administrator. error. (It lists it 11 times if that is of any use.)

Watchdog logs show a series of pass by reference errors after browsing on the the GFonts admin page.

I tried disabling then re-enabling the module, clearing the cache, logging out then in, closing browser then reopening etc. to no avail.

If I visit the admin page, change nothing, then hit save, I still get the error.

I was thinking about deleting the DB tables manually, but can't find them? I think the values are stored in the "Variables" table?

I also can't use the module uninstall feature, and I'm guessing this is not supported by this module?

Any suggestions or pointers of what else to try? If this is in fact a bug, I can help provide any data, not sure if it is.

Thanks,
Chris

Comments

chrispomeroy’s picture

Also, if it helps, I had enabled the previous version, and enabled 3 fonts with no issue.

I then installed the latest version of the module, and ran update.php, before enabling a bunch more fonts and encountering this issue.

So maybe it's related to having the earlier version installed prior?

Thanks,
Chris

BarisW’s picture

Hi Chris,

thanks for reporting. I'll investigate!

BarisW’s picture

Status: Active » Needs review

Fixed in alpha2. Please test and let me know if it solves your bug.

BarisW’s picture

Status: Needs review » Closed (fixed)

No response in a month, so I assume the problem is fixed.

chrispomeroy’s picture

Confirmed that this issue indeed has been fixed with the new version.