• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

Hi first all, thanks for this extension 🙂, it was impossible to install the extension, the error message that appears is the following:

Using version ^0.11.0 for fof/upload
./composer.json has been updated
Running composer update fof/upload
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires fof/upload ^0.11.0 -> satisfiable by fof/upload[0.11].
    - fof/upload 0.11 requires guzzlehttp/guzzle ^6.0 -> found guzzlehttp/guzzle[6.0.0, ..., 6.5.5] but the package is fixed to 7.2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

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.

The same error appears with the extension FOF geoip. I would appreciate any kind of help to fix this.

    JoZ3 stopforumspam and geoip extensions also give this error. Run the command composer require guzzlehttp/guzzle:^6.0

    • JoZ3 replied to this.

      DursunCan thanks for reply 🙂, but downgrading the guzzle version would affect the system or some other extension?

        Just a question and maybe suggestiono, why don't we use as BBCode for image uploading? The current BBCode does not work with social media preview in my experience.

          Hi, after following DursunCan's recommendation I managed to install the extension, but unfortunately it doesn't work, on my local server it works perfectly, but on the shared hosting this error appears in the firefox console:

          error-upload.jpg

          On the shared server the local storage option and the one that works with imgur don't work. I honestly can't find what the error may be 🙁

            JoZ3 can you share the output of php flarum info ?

            All these 404 errors happening lately must be due to one of the extension resolving the UrlGenerator too early and breaking route registration for other extensions. We need to find which one.

            • JoZ3 replied to this.

              Hi clarkwinkelmann thanks for reply, this is the ioutput from my php flarum info:

              Flarum core 0.1.0-beta.14.1
              PHP version: 7.3.24
              Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, mbstring, standard, mysqlnd, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, imap, SimpleXML, soap, sockets, sodium, exif, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, imagick, redis, ionCube Loader, Zend OPcache
              +-----------------------------------+------------------+--------+
              | Flarum Extensions                 |                  |        |
              +-----------------------------------+------------------+--------+
              | ID                                | Version          | Commit |
              +-----------------------------------+------------------+--------+
              | flarum-akismet                    | v0.1.0-beta.14.1 |        |
              | flarum-lang-english               | v0.1.0-beta.14.1 |        |
              | darkfoxdeveloper-spanish          | v1.0.6           |        |
              | fof-spamblock                     | 0.3.0            |        |
              | fof-profile-image-crop            | 0.2.0            |        |
              | fof-split                         | 0.5.0            |        |
              | flarum-tags                       | v0.1.0-beta.14   |        |
              | fof-analytics                     | 0.10.0           |        |
              | fof-disposable-emails             | 0.2.0            |        |
              | flarumite-simple-discussion-views | 0.2.0            |        |
              | fof-ban-ips                       | 0.3.0            |        |
              | fof-default-group                 | 0.2.0            |        |
              | fof-drafts                        | 0.2.0            |        |
              | fof-ignore-users                  | 0.2.0            |        |
              | fof-impersonate                   | 0.6.0            |        |
              | fof-prevent-necrobumping          | 0.3.0            |        |
              | fof-share-social                  | 0.2.0            |        |
              | fof-formatting                    | 0.2.0            |        |
              | fof-linguist                      | 0.4.4            |        |
              | fof-pages                         | 0.5.0            |        |
              | clarkwinkelmann-author-change     | 0.2.1            |        |
              | flarum-bbcode                     | v0.1.0-beta.12   |        |
              | flarum-flags                      | v0.1.0-beta.14.1 |        |
              | migratetoflarum-canonical         | 0.2.2            |        |
              | clarkwinkelmann-circle-groups     | 0.2.2            |        |
              | flarum-emoji                      | v0.1.0-beta.14   |        |
              | askvortsov-help-tags              | v0.2.0           |        |
              | askvortsov-moderator-warnings     | v0.3.2           |        |
              | fof-follow-tags                   | 0.5.1            |        |
              | fof-links                         | 0.4.0            |        |
              | fof-merge-discussions             | 0.4.0            |        |
              | fof-oauth                         | 0.1.0            |        |
              | fof-secure-https                  | 0.2.0            |        |
              | fof-subscribed                    | 0.3.0            |        |
              | fof-user-bio                      | 0.3.1            |        |
              | fof-username-request              | 0.3.0            |        |
              | flarum-likes                      | v0.1.0-beta.14   |        |
              | flarum-lock                       | v0.1.0-beta.14   |        |
              | flarum-markdown                   | v0.1.0-beta.14   |        |
              | flarum-mentions                   | v0.1.0-beta.14   |        |
              | sycho-profile-cover               | v1.2.0           |        |
              | v17development-seo                | 1.4              |        |
              | flarum-statistics                 | v0.1.0-beta.14   |        |
              | flarum-sticky                     | v0.1.0-beta.14   |        |
              | flarum-subscriptions              | v0.1.0-beta.14   |        |
              | flarum-suspend                    | v0.1.0-beta.14   |        |
              | zerosonesfun-elint                | 1.8              |        |
              | fof-upload                        | 0.11             |        |
              | fof-geoip                         | 0.2.0            |        |
              | fof-recaptcha                     | 0.2.0            |        |
              +-----------------------------------+------------------+--------+
              Base URL: https://_____.___
              Installation path: /home/__/domains/____/public_html
              Debug mode: off

                JoZ3 I have identified at least one culprit as fof/secure-https: FriendsOfFlarum/secure-https7

                A workaround until we fix the issue is to disable and re-enable secure-https so it's the last enabled extension.

                If that doesn't solve it, there might be another extension presenting the same behavior as secure-https.

                  clarkwinkelmann thank so much for your help, that was the problem, now it works perfectly. 🙂

                  What worked for me was disabling fof/oauth.

                  Then running composer require -W fof/upload

                  It then went through and removed some things, downgraded guzzle and then downloaded a bunch of other stuff.

                  I enabled fof/upload and then enabled fof/oauth and everything is working now.

                  In case this is helpful to someone else. Thank you again.

                  luceos

                  C:\xampp\htdocs\beta14>php flarum info
                  Flarum core 0.1.0-beta.14.1
                  PHP version: 7.4.11
                  Loaded extensions: Core, bcmath, calendar, ctype, date, filter, hash, iconv, json, SPL, pcre, readline, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, bz2, SimpleXML, xml, xmlreader, xmlwriter, openssl, curl, fileinfo, gd, gettext, mbstring, exif, mysqli, pdo_mysql, pdo_sqlite, Phar, ftp
                  +-----------------------------------+------------------+--------+
                  | Flarum Extensions                 |                  |        |
                  +-----------------------------------+------------------+--------+
                  | ID                                | Version          | Commit |
                  +-----------------------------------+------------------+--------+
                  | flarum-approval                   | v0.1.0-beta.14   |        |
                  | flarum-bbcode                     | v0.1.0-beta.12   |        |
                  | flarum-emoji                      | v0.1.0-beta.14   |        |
                  | flarum-lang-english               | v0.1.0-beta.14.1 |        |
                  | flarum-flags                      | v0.1.0-beta.14.1 |        |
                  | flarum-likes                      | v0.1.0-beta.14   |        |
                  | flarum-lock                       | v0.1.0-beta.14   |        |
                  | flarum-markdown                   | v0.1.0-beta.14   |        |
                  | flarum-mentions                   | v0.1.0-beta.14   |        |
                  | flarum-statistics                 | v0.1.0-beta.14   |        |
                  | flarum-sticky                     | v0.1.0-beta.14   |        |
                  | flarum-subscriptions              | v0.1.0-beta.14   |        |
                  | flarum-suspend                    | v0.1.0-beta.14   |        |
                  | flarum-tags                       | v0.1.0-beta.14   |        |
                  | fof-oauth                         | 0.1.0            |        |
                  | flarumite-simple-discussion-views | 0.2.0            |        |
                  | askvortsov-categories             | v1.1.0           |        |
                  | fof-forum-statistics-widget       | 0.3.0            |        |
                  | fof-share-social                  | 0.2.0            |        |
                  | v17development-seo                | 1.4              |        |
                  | fof-user-bio                      | 0.3.1            |        |
                  | fof-formatting                    | 0.2.0            |        |
                  | fof-split                         | 0.5.0            |        |
                  | clarkwinkelmann-circle-groups     | 0.2.2            |        |
                  | askvortsov-discussion-templates   | v0.2.1           |        |
                  | askvortsov-moderator-warnings     | v0.3.2           |        |
                  | sycho-profile-cover               | v1.2.0           |        |
                  | fof-moderator-notes               | 0.3.0            |        |
                  | tolgaaaltas-lang-turkish          | 0.14.1           |        |
                  | tolgaaaltas-turkish               | 0.14.0           |        |
                  | fof-merge-discussions             | 0.4.0            |        |
                  | fof-drafts                        | 0.2.0            |        |
                  | fof-follow-tags                   | 0.5.1            |        |
                  | fof-username-request              | 0.3.0            |        |
                  | fof-best-answer                   | 0.2.0            |        |
                  | fof-links                         | 0.4.0            |        |
                  | fof-sitemap                       | 0.5.4            |        |
                  | fof-user-directory                | 0.4.0            |        |
                  | fof-nightmode                     | 0.6.0            |        |
                  +-----------------------------------+------------------+--------+
                  Base URL: http://localhost/beta14
                  Installation path: C:\xampp\htdocs\beta14
                  Debug mode: off
                  
                  C:\xampp\htdocs\beta14>
                  5 days later

                  Hi, I noticed a small bug. After you failed to upload a file for any reason (say file too large) the upload button does not go back to initial state, I keep showing as uploading and spinner.

                  Hi, upload works again 😃 but in case to start a new discussion, i cant upload a picture to display inline. as an reply in existing thread, it works

                  Hello,
                  I have issue with file downloads. File attaches successfully, but when I click to "download" button ("Default file download template" selected), nothing happens. No errors in logs/browser console. Any idea?

                  Latest versions of Flarum and extension.

                  As always, thank you for getting this beta 14 compatible quickly! 🙏 For me the loading spinner is gone again. I actually don’t mind the note above about the spinner sticking around under certain circumstances. I’d rather have things like that happen than no spinner at all. The user needs some way to know that hopefully their image is uploading.

                  When running composer require fof/upload the extension gives errors. So I tried composer require -W fof/upload the extension works fine but some other extensions won't work like Simple Flarum Discussion Views etc. Is there anything I can do to avoid this situation or do I have to make the choice.