Unfortunatelly, one bug confirmed and two more bugs found. All can be reproduced on localhost environment.
Clean Flarum 1.8.5 setup with composer create-project flarum/flarum .
Then
composer require litalino/flarum-country-flags:"*"
php flarum migrate
php flarum cache:clear
And try to assign country to account in profile. Result:
"errors":[
{
"status":"500",
"code":"unknown",
"detail":"PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column \\u0027countryCode\\u0027 in \\u0027field list\\u0027 in D:\\\\64gb\\\\OSPanel\\\\domains\\\\flarum.local\\\\vendor\\\\doctrine\\\\dbal\\\\lib\\\\Doctrine\\\\DBAL\\\\Driver\\\\PDOConnection.php:82\\nStack trace: ....
[CUTTED]
Seems it cant create database structures normally.
I remember that this extension co-developed with @Justoverclock and updated from original extension. So, seems your version cant work with standalone installation. My next steps:
composer remove litalino/flarum-country-flags
php flarum migrate
php flarum cache:clear
composer require justoverclock/country-flags:"*"
php flarum migrate
php flarum cache:clear
All works. Country assigned, registration also works fine on original extension. My next steps:
composer require litalino/flarum-country-flags
php flarum migrate
php flarum cache:clear
Extension replaced, database converted from old. And now database is correct. I can assign country code correctly.
But registration is broken. It's going to infinite loading when I try to register from page with country flag (profile of user or discussions) and use any incorrect data, e.g. short password like 123
. Debug mode is on:
Uncaught TypeError: a.options is undefined
<anonymous> index.js:447
e extend.ts:39
onsubmit SignUpModal.tsx:170
handleEvent render.js:888
L render.js:910
k render.js:735
c render.js:730
c render.js:122
c render.js:63
l render.js:50
c render.js:134
c render.js:63
l render.js:50
c render.js:134
c render.js:63
c render.js:162
c render.js:66
l render.js:50
c render.js:134
c render.js:63
l render.js:50
f render.js:277
p render.js:444
p render.js:415
f render.js:302
p render.js:444
p render.js:415
p render.js:488
p render.js:419
p render.js:488
p render.js:419
f render.js:302
exports render.js:964
a mount-redraw.js:14
u mount-redraw.js:25
u mount-redraw.js:23
handleEvent render.js:890
L render.js:910
k render.js:735
c render.js:730
c render.js:122
c render.js:63
c render.js:162
c render.js:66
l render.js:50
c render.js:134
c render.js:63
l render.js:50
c render.js:134
c render.js:63
c render.js:162
c render.js:66
l render.js:50
f render.js:277
exports render.js:964
mount mount-redraw.js:45
mount ForumApplication.tsx:121
boot Application.tsx:299
<anonymous> 1-test:118
3 index.js:447:20
<Π°Π½ΠΎΠ½ΠΈΠΌΠ½ΡΠΉ> index.js:447
e extend.ts:39
onsubmit SignUpModal.tsx:170
handleEvent render.js:888
(ΠΡΠΈΠ½Ρ
ΡΠΎΠ½Π½ΡΠΉ: EventListener.handleEvent)
L render.js:910
k render.js:735
c render.js:730
c render.js:122
c render.js:63
l render.js:50
c render.js:134
c render.js:63
l render.js:50
c render.js:134
c render.js:63
c render.js:162
c render.js:66
l render.js:50
c render.js:134
c render.js:63
l render.js:50
f render.js:277
p render.js:444
p render.js:415
f render.js:302
p render.js:444
p render.js:415
p render.js:488
p render.js:419
p render.js:488
p render.js:419
f render.js:302
exports render.js:964
a mount-redraw.js:14
u mount-redraw.js:25
(ΠΡΠΈΠ½Ρ
ΡΠΎΠ½Π½ΡΠΉ: FrameRequestCallback)
u mount-redraw.js:23
handleEvent render.js:890
(ΠΡΠΈΠ½Ρ
ΡΠΎΠ½Π½ΡΠΉ: EventListener.handleEvent)
L render.js:910
k render.js:735
c render.js:730
c render.js:122
c render.js:63
c render.js:162
c render.js:66
l render.js:50
c render.js:134
c render.js:63
l render.js:50
c render.js:134
c render.js:63
c render.js:162
c render.js:66
l render.js:50
f render.js:277
exports render.js:964
mount mount-redraw.js:45
mount ForumApplication.tsx:121
boot Application.tsx:299
<Π°Π½ΠΎΠ½ΠΈΠΌΠ½ΡΠΉ> 1-test:118
Described bug is very sensitive and critical, because it drops daily new users stats (in my case from 28-75 to 6-9).
And third bug. When "Bind Required entering country" option enabled its uses wrong link to settings. It's ignoring url in config.php, in my case https://flarum.local/public/settings and point just to https://flarum.local/settings.
All bugs confirmed and checked on clean Flarum installation.
Server side: Flarum 1.8.5, Country Flags 1.6.0, OpenServer environment (Apache 2.4, PHP 8.1, MySQL 5.6 or 8.0 - trying both).
Client side: Windows 10, FireFox 122.0.