Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2027

[3.3.x] Support Forum • SQL error involving custom fields

$
0
0
At the end of last year we had a consultant upgrade our phpBB board from a low 3.?.? to 3.3.10. He had a difficulty doing so but finally got it updated. We of course lost all the data we had collected in 5 custom fields and the fields themselves. I recreated the custom fields which ar primarily used at registration. All was good except every time a test registration was run a MySQL error popped up and no data was stored to the custom fields. Initially I thought this was for all accounts new or old. We turned the custom fields off till we had more time to investigate and have been suffering without their availability.

In the past day or so I've had time to revisit this. I realized the custom fields work fine for all accounts created with the old version of phpBB. However a SQL error occurs when trying to create a new account or edit an account created with the 3.3.10 version. Here is the error.
SQL error.png
I'm not a SQL guy but it looks like a field "pf_phpBB_occupation" doesn't have a default value. And in normal operation this doesn't cause an issue until we try to write data to the custom fields that have been created. And since this does not happen when editing a record created with the old system, either there wasn't a "pf_phpBB_occupation" field or those records have data or a default in that field. What is that field anyway, we don't use it for anything?

Does my theory sound plausible? Could it be as simple as setting the newly created "pf_phpBB_occupation" to a default? If so how do we go about setting such a default. Could someone explain that procedure so I can explain it to our "consultant" who would actually have to make the change.

Thanks

Bruce

Statistics: Posted by brucefenster — Fri Jul 05, 2024 10:33 pm



Viewing all articles
Browse latest Browse all 2027

Trending Articles