Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: steverp - helmikuu 25, 2020, 03:07:34 AP

Otsikko: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: steverp - helmikuu 25, 2020, 03:07:34 AP
When creating a new group, I get this error:

Field 'GroupModOptions' doesn't have a default value
File: /home/*****/public_html/******/Sources/ManageMembergroups.php
Line: 378

I've added *'s to hide some information.

A similar error occurs in other parts of the forum when making changes as admin. But this is just one example.

Any help is appreciated.
Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: steverp - helmikuu 25, 2020, 03:08:02 AP
Also i'm using the latest version of smf
Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: Dzonny - helmikuu 25, 2020, 05:36:36 AP
Hello there and welcome to SMF community!
Are you using 2.1 branch?

From what I can see, looks like this field is a leftover from an old mod:
https://mods.simplemachines.org/index.php?mod=171

Can you list us a mods that you have installed on your forum?
Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: live627 - helmikuu 25, 2020, 06:20:27 AP
Go into the database and give that field a default value. I'm guessing it's in either smf_members or smf_membergroups
Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: Kindred - helmikuu 26, 2020, 11:13:00 AP
, please note that "latest" is not an actual version.

there is the latest released version in the 2.0.x branch (2.0.17), plus the development branch....  there is also the 2.1 RC2 released version and the RC3-prep nightly builds - neither of which is suggested to run on a production site.

So, when you say "latest" we have no idea which one you actually mean...
Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: steverp - helmikuu 26, 2020, 09:05:15 IP
Version is 2.0.17

Lainaus käyttäjältä: Dzonny - helmikuu 25, 2020, 05:36:36 AP
From what I can see, looks like this field is a leftover from an old mod:
https://mods.simplemachines.org/index.php?mod=171

I dont recognize this mod, although it could be left over from a long time ago.

LainaaGo into the database and give that field a default value.

How do I know what value to use as default?

Thanks guys
Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: Sir Osis of Liver - helmikuu 26, 2020, 09:53:39 IP
Set it to null.
Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: steverp - maaliskuu 01, 2020, 08:03:10 IP
I tried to find "GroupModOptions" anywhere in my database, and it's nowhere.

I tried phpmyadmin to seach "GroupModOptions" as a regular expression, and exact phrase as substring. I selected all tables to search. Still it isn't found anywhere.

Any ideas??

Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: Kindred - maaliskuu 01, 2020, 09:44:23 IP
Look at the code referenced and see where the field is
Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: Sir Osis of Liver - maaliskuu 01, 2020, 11:51:56 IP
PMA search will find field content, but not a field name.  You can run a query to find it, but am not on my computer so can't post it. :(
Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: Sir Osis of Liver - maaliskuu 02, 2020, 11:44:25 AP


SELECT table_name,table_schema
FROM INFORMATION_SCHEMA.COLUMNS
WHERE column_name='mime_type'


Otsikko: Re: Field 'GroupModOptions' doesn't have a default value
Kirjoitti: steverp - maaliskuu 10, 2020, 12:45:07 AP
I ended up downloading the whole database and locally searching it to know where the table was. I set it to null and its now ok. Thanks for the help.