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

[3.3.x] Support Forum • Re: SQL Error updating to 3.3.11

$
0
0
The 3.3.12 update did not solve the issue, but I managed to fix it all eventually.

After the 3.3.12 update I still could not access the ACP custom profile fields, so I ran this code. It is slightly different than the other one which didn't work for us.
(NULL, 'phpbb_youtube', 'profilefields.type.string', 'phpbb_youtube', '20', '3', '60', '', '', '(@[a-zA-Z0-9_.-]{3,30}|c/[a-zA-Z][\\w\\.,\\-_]+|(channel|user)/[a-zA-Z][\\w\\.,\\-_]+)', '0', '0', '0', '0', '1', '12', '1', '1', '0', '1', '1', '1', 'VIEW_YOUTUBE_PROFILE', 'https://youtube.com/%s')

Then I noted our field_id of phpbb_youtube; 31 in this particular case.
Then I altered the code below using the field_id and the lang_id directly
INSERT INTO `phpbb_profile_lang` (`field_id`, `lang_id`, `lang_name`, `lang_explain`, `lang_default_value`) VALUES (31, 1, 'YOUTUBE', '', '');

Now everything is working 😊I can access the ACP custom profile fields and members can register.
Just beware that your field_id and lang_id will most likely be different than mine.
When I ran the other code, it just didn't work. Likely something about the way it was calling the field_id or lang_id.

Statistics: Posted by mikeinthe852 — Tue Jun 04, 2024 7:52 am



Viewing all articles
Browse latest Browse all 1676

Trending Articles