BlackSheep do you have some debug information to give me ? I have no way to reproduce that ?

What is the internal server error message in Flarum log ? Do you have other third-party extensions ? Did you try in debug mode ?

Install went well for me, on DevFlarum and apparently for a few other people as well, so I think it has something to do with your particular configuration/environment ?

    clarkwinkelmann I had debug mode launched, and it's all their was in the flarum debug message.

    I launched a composer update, reinstalled the extension, got the same error message but this time it seems to work. That's a first.

    Nginx got a bit mad :

    PHP message: PHP Deprecated:  Usage of error middleware is deprecated as of 1.3.0, and will be removed in
    2.0.0; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for details on how to update
    your application to remove this message. in /var/www/xxx.xxx.xxx/vendor/zendframework/zend-stratigility/src/Next.php on line 435" while reading response header from upstream, client: xx.xx.xx.xx, server:
    xxx.xxx.xxx, request: "POST /api/extensions/clarkwinkelmann-emojionearea HTTP/1.1", upstream:
    "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "xxx.xxx.xxx", referrer: "https://xxx.xxx.xxx/admin"

      BlackSheep That error message does not seem related to my extension ?

      Did you call that api enpoint directly ? Or does it come from the admin GUI ? I can't get to see the API calls in admin with Firefox Debug Tools as it refreshes the page immediately...

      Glad if it works now. Let met know if you encounter other problems !

        clarkwinkelmann That error message does not seem related to my extension

        Read a bit closer the error message request: "POST /api/extensions/clarkwinkelmann-emojionearea HTTP/1.1", it's linked.

        clarkwinkelmann Did you call that api enpoint directly ?

        No

        clarkwinkelmann Or does it come from the admin GUI ?

        Yes.

          BlackSheep Okay I managed to see the request in Chrome. It always works and returns a 200 HTTP status code.

          Given I don't use any Zend method or middleware directly (the PHP is dead-simple for my plugin !) I suppose this is caused by the core code that enable extensions.

          I just noticed it's not the first time I see that error message. It has something to do with Flarum in general. It's being discussed here https://discuss.flarum.org/d/4218-zend-stratigility-debug-message-after-composer-update and I see a few issues on GitHub https://github.com/flarum/core/search?q=zendframework%2Fzend-stratigility&type=Issues&utf8=%E2%9C%93

          In the above topic it is said this can be left as-it. The fix in the composer file is also somewhat simple.

          You probably also face this issue when enabling other extension ? We can continue the discussion on that linked topic I believe.

            weazy jordanjay29 yeah I didn't really test on mobile, and the Emojione Area does not check if the popup goes out of the screen ?

            I think I'll just change the popup settings to display it on the right instead of left.

            The problem could always happen on the other side in small screens or if there are many buttons... I'll see what I can do.

            Added as #3, I'll have a look as soon as possible.

            [unknown]
            Could custom css or @media additions fix the mobile placement?

            Awesome extension BTW!

              0E800 yes that's what I will do (soon !)

              hcarpach I'm sure other extensions deserve a lot more support, mine is just a wrapper around another OSS library ?

              I do have a Paypal account. I really should look into bitcoins ?

                @clarkwinkelmann, thanks for the picker :thumbup:, Please keep the pop-up position to the right, except this, everything is good ?

                Released version 0.1.1 !

                • Use same CDN as Flarum where possible to fetch images a single time #1
                • Picker popup is now displayed on the right of the button to keep it visible on small screens #3

                Also, you can read about my extension on my blog:

                Hi~ How can I change the number of row emojis from 9 to 7 (or 8、6、5……) ?
                Thanks .

                  ssBird786 I'm afraid this option is not available in the emojionearea library ? (from what I've seen) So adding it would be very difficult with the current extension.

                  My plan is to make my own emoji picker with mithril so I can add options like that (and reduce the amount of useless javascript code I have to include for emojionearea ? ). emojionearea also lacks search capability in the picker.

                    clarkwinkelmann Get it! Thanks a lot.
                    I will waiting for your new version, Ha~

                    PS. I want count down the number of row, because the iPhone SE can't show all emojis.
                    See below:
                    emoji Picker

                      clarkwinkelmann emoji picker with mithril

                      I'd go with this as well. Mobile should probably have a model for emojis so it doesn't cut off like that. I'd take inspiration from the emojione chrome extension and you could very well rip a lot of it out from there (provided the license allows ?).

                      I don't know if it's easier to try to fix it by hacking into the plugin or write a new plugin ?

                      Write new even if it's harder. It'll be better in the long run.