alexanderomara / flarum-gravatar Goto Github PK
View Code? Open in Web Editor NEWFlarum Gravatar: Use Gravatar for user avatars
License: Mozilla Public License 2.0
Flarum Gravatar: Use Gravatar for user avatars
License: Mozilla Public License 2.0
Force Default Gravatar Icons
is disabled, but it's still replacing the avatars for all users who have not uploaded a custom avatar yet. Default Flarum avatars have stopped showing up. Only Gravatars are showing for all users.
I've noticed strange behavior with boolean settings and the modal settings dialog. I use Flarum beta 15.
If a boolean settings was ever changed, the settings dialog will display as checked every time when the settings page is reloded and settings dialog is opened, regardless of what was saved before.
To reproduce:
The Checkbox will stay checked.
Looking into the Database, is seems like so:
When loading settings, null = unchecked, 0 or 1 = checked
When saving settings: 0 = unchecked, 1 = checked
It looks like the extension works but I still get the following errors in logs:
flarum_1 | 2021/04/11 13:47:35 [error] 779#779: *4977 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: key in /opt/flarum/vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 60" while reading response header from upstream, client: 87.X.X.X, server: , request: "GET /api/users/3 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "flarum.example.com", referrer: "https://flarum.example.com/" flarum_1 | 2021/04/11 13:47:35 [error] 779#779: *4979 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: key in /opt/flarum/vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 60PHP message: PHP Notice: Undefined variable: key in /opt/flarum/vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 60PHP message: PHP Notice: Undefined variable: key in /opt/flarum/vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 60PHP message: PHP Notice: Undefined variable: key in /opt/flarum/vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 60PHP message: PHP Notice: Undefined variable: key in /opt/flarum/vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 60PHP message: PHP Notice: Undefined variable: key in /opt/flarum/vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 60PHP message: PHP Notice: Undefined variable: key in /opt/flarum/vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 60PHP message: PHP Notice: Undefined variable: key in /opt/flarum/vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 60" while reading response header from upstream, client: 87.X.X.X, server: , request: "GET /api/discussions?include=user%2ClastPostedUser%2Ctags%2CfirstPost&sort&page%5Boffset%5D HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "flarum.example.com", referrer: "https://flarum.example.com/"
Trying to install throws the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires alexanderomara/flarum-gravatar ^1.4 -> satisfiable by alexanderomara/flarum-gravatar[1.4.0].
- alexanderomara/flarum-gravatar 1.4.0 requires flarum/core ^0.1.0-beta.16 -> found flarum/core[v0.1.0-beta.16] but it does not match your minimum-stability.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Flarum encountered a boot error (ParseError)
syntax error, unexpected '?', expecting function (T_FUNCTION) or const (T_CONST)
thrown in vendor/alexanderomara/flarum-gravatar/src/Extenders/BasicUserSerializing.php on line 21
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.