• Resources
  • Free Flarum hosting on an expert platform by FreeFlarum.com

ItsGamingTubeYT the status code is 500, so something was logged on the server side. I've browsed your logs, this is the error that we are interested in:

[2022-04-09 06:38:39] flarum.ERROR: exception 'Aws\S3\Exception\S3Exception' with message 'Error executing "PutObject" on "//xxx.n1.artiom.host:xxxx/2022-04-09/1649486318-839230-happy.png"; AWS HTTP error: cURL error 6: Could not resolve host: xxx.n1.artiom.host (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://xxx.n1.artiom.host:xxx/2022-04-09/1649486318-839230-happy.png'

GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: xxx.n1.artiom.host (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://xxx.n1.artiom.host:xxx/2022-04-09/1649486318-839230-happy.png in /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:210
Stack trace:
#0 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::createRejection()
#1 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(110): GuzzleHttp\Handler\CurlFactory::finishError()
#2 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(244): GuzzleHttp\Handler\CurlFactory::finish()
#3 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(168): GuzzleHttp\Handler\CurlMultiHandler->processMessages()
#4 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(183): GuzzleHttp\Handler\CurlMultiHandler->tick()
#5 /app/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Handler\CurlMultiHandler->execute()
#6 /app/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn()
#7 /app/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
#8 /app/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
#9 /app/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
#10 /app/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
#11 /app/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#12 /app/vendor/aws/aws-sdk-php/src/S3/S3ClientTrait.php(34): GuzzleHttp\Promise\Promise->wait()
#13 /app/vendor/league/flysystem-aws-s3-v3/src/AwsS3Adapter.php(606): Aws\S3\S3Client->upload()
#14 /app/vendor/league/flysystem-aws-s3-v3/src/AwsS3Adapter.php(391): League\Flysystem\AwsS3v3\AwsS3Adapter->upload()
#15 /app/vendor/fof/upload/src/Adapters/Flysystem.php(66): League\Flysystem\AwsS3v3\AwsS3Adapter->writeStream()
#16 /app/vendor/fof/upload/src/Commands/UploadHandler.php(134): FoF\Upload\Adapters\Flysystem->upload()
#17 [internal function]: FoF\Upload\Commands\UploadHandler->FoF\Upload\Commands\{closure}()
#18 /app/vendor/illuminate/collections/Collection.php(695): array_map()
#19 /app/vendor/fof/upload/src/Commands/UploadHandler.php(169): Illuminate\Support\Collection->map()
#20 /app/vendor/illuminate/bus/Dispatcher.php(122): FoF\Upload\Commands\UploadHandler->handle()
[...]

Is your configuration correct? It looks like cURL is not able to resolve that URL. Or, it doesn't seem that you're using AWS S3, so it's possible that FoF Upload isn't compatible with what you're using. But I don't have much experience with buckets, so I can't know for sure

    SKevo I am using Min.io, this is an S3 endpoint that SHOULD WORK with the FoF Upload plugin as they allow custom endpoints.
    It's a problem with the domain probably, because it's not SSL secured. I will proxy this domain to s3cdn.bloxstargames.cf

    SKevo

    My forum is hosted in Free Flarum. And Today I Tried to add a file upload feature(fof Upload extension + S3) But It pops up with an error "Uploading files of this type is not allowed."

    How To Fix That?

    Thank You

      SKevo
      Thanks it fixed.Now saying that "Oops! Something went wrong. Please reload the page and try again."

        wenuraonline all of the unique errors that I have found:

        [2022-04-10 15:07:09] flarum.ERROR: GuzzleHttp\Psr7\Exception\MalformedUriException: The path of a URI with an authority must start with a slash "/" or be empty in /app/vendor/guzzlehttp/psr7/src/Uri.php:735
        Stack trace:
        #0 /app/vendor/guzzlehttp/psr7/src/Uri.php(460): GuzzleHttp\Psr7\Uri->validateState()
        #1 /app/vendor/aws/aws-sdk-php/src/S3/S3EndpointMiddleware.php(200): GuzzleHttp\Psr7\Uri->withHost()
        #2 /app/vendor/aws/aws-sdk-php/src/S3/S3EndpointMiddleware.php(98): Aws\S3\S3EndpointMiddleware->applyHostStyleEndpoint()
        #3 /app/vendor/aws/aws-sdk-php/src/Middleware.php(238): Aws\S3\S3EndpointMiddleware->__invoke()
        #4 /app/vendor/aws/aws-sdk-php/src/S3/ApplyChecksumMiddleware.php(115): Aws\Middleware::Aws\{closure}()
        #5 /app/vendor/aws/aws-sdk-php/src/Middleware.php(269): Aws\S3\ApplyChecksumMiddleware->__invoke()
        #6 /app/vendor/aws/aws-sdk-php/src/EndpointParameterMiddleware.php(87): Aws\Middleware::Aws\{closure}()
        #7 /app/vendor/aws/aws-sdk-php/src/ClientResolver.php(859): Aws\EndpointParameterMiddleware->__invoke()
        #8 /app/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/AbstractMonitoringMiddleware.php(126): Aws\ClientResolver::Aws\{closure}()
        #9 /app/vendor/aws/aws-sdk-php/src/Middleware.php(96): Aws\ClientSideMonitoring\AbstractMonitoringMiddleware->__invoke()
        #10 /app/vendor/aws/aws-sdk-php/src/InputValidationMiddleware.php(73): Aws\Middleware::Aws\{closure}()
        
        
        [2022-04-10 15:12:24] flarum.ERROR: exception 'Aws\S3\Exception\S3Exception' with message 'Error executing "PutObject" on "scf/2022-04-10/1649603544-160177-hauna-t-ondrey-the-minor-prophets-as-christian-2018.pdf"; AWS HTTP error: cURL error 6: Could not resolve host: scf (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for scf/2022-04-10/1649603544-160177-hauna-t-ondrey-the-minor-prophets-as-christian-2018.pdf'
        GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: scf (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for scf/2022-04-10/1649603544-160177-hauna-t-ondrey-the-minor-prophets-as-christian-2018.pdf in /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:210
        
        Stack trace:
        #0 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::createRejection()
        #1 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(110): GuzzleHttp\Handler\CurlFactory::finishError()
        #2 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(244): GuzzleHttp\Handler\CurlFactory::finish()
        #3 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(168): GuzzleHttp\Handler\CurlMultiHandler->processMessages()
        #4 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(183): GuzzleHttp\Handler\CurlMultiHandler->tick()
        #5 /app/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Handler\CurlMultiHandler->execute()
        #6 /app/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn()
        #7 /app/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
        #8 /app/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
        #9 /app/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
        #10 /app/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
        
        
        [2022-04-10 15:49:18] flarum.ERROR: TypeError: FoF\Upload\Validators\UploadValidator::maxFilesize(): Return value must be of type int, string returned in /app/vendor/fof/upload/src/Validators/UploadValidator.php:49
        Stack trace:
        #0 /app/vendor/fof/upload/src/Validators/UploadValidator.php(27): FoF\Upload\Validators\UploadValidator->maxFilesize()
        #1 /app/vendor/flarum/core/src/Foundation/AbstractValidator.php(92): FoF\Upload\Validators\UploadValidator->getRules()
        #2 /app/vendor/flarum/core/src/Foundation/AbstractValidator.php(61): Flarum\Foundation\AbstractValidator->makeValidator()
        #3 /app/vendor/fof/upload/src/Repositories/FileRepository.php(138): Flarum\Foundation\AbstractValidator->assertValid()
        #4 /app/vendor/fof/upload/src/Commands/UploadHandler.php(91): FoF\Upload\Repositories\FileRepository->moveUploadedFileToTemp()
        #5 [internal function]: FoF\Upload\Commands\UploadHandler->FoF\Upload\Commands\{closure}()
        #6 /app/vendor/illuminate/collections/Collection.php(695): array_map()
        #7 /app/vendor/fof/upload/src/Commands/UploadHandler.php(169): Illuminate\Support\Collection->map()
        #8 /app/vendor/illuminate/bus/Dispatcher.php(122): FoF\Upload\Commands\UploadHandler->handle()
        #9 /app/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}()
        #10 /app/vendor/illuminate/pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

        Some of this might be related to an earlier error, not sure what exactly causes these errors. Is your S3 configuration correct?

          TeamF FreeFlarum should manage HTTPS automatically, but it is possible that your forum's certificate couldn't be renewed because of an error from our side. May I know your forum name so that I can look at this in more detail please?

          TeamF I don't know, but I can confirm that the HTTPS is working fine for me too. Does your domain hosting offer SSL too?

          TB54 I mean by that have the less possible things to do on the FTP phase, and be able to access as soon as possible to an interface from which everything can be installed/downloaded/updated (a little like for a WordPress frontend)? Because I think a lot of people like me, aka kinda-newbies (no knowledge beyond html/css) are totally stuck and discouraged by the line codes and all which is asked in the installation.

          Exactly, most of the people looking for it. Nowadays people use wordpress because of its ease of use like installation and updates from the interface. Hopefully, flarum should add more priority to this, and soon we can see it in live. Until I keep flarum in my waiting list only.

          TazElite welcome, what can we help you with? If you are running a forum with FreeFlarum, they have a pretty good FAQ on their website you can start with.

          If you have questions or issues about self-hosted Flarum, please start a new support discussion.

          EDIT: I didn't notice your post linked an image, it doesn't seem like that was a valid link to embed, so I replaced it with just a link. Are you trying to replicate the theme visible in the screenshot?

          Hello,

          I don't know if it's the place to get help, but I have difficulties to enter my own domain name on my freeflarum forum.

          I bought a domain name (cinestudia.fr), and in the "DNS zone" tab of my web host, I created this entry (forum.cinestudia.fr) link to my current freeflarum forum (cinstudtest.freeflarum.com), more than 24h ago:

          (translation : MODIFY AN ENTRY IN THE DNS ZONE / Subdomain / TTL / Target / The CNAME currently generated is the following)


          Then I entered my domain url in freeflarum settings, but each time i try to save it:

          It refreshes the page and show me the old url:

          And the new url gives a 404 error. I read the advanced documentation but apart from the proxy thing (I can't find with what it could match on my web host), I don't find a solution.

          Any idea of what I'm doing wrong?

            TB54 remove https:// and the slash after from the URL in your settings, then save it