The code that powers voten.co

Overview

Voten

Where your vote(n) matters

Voten.co

Voten.co is an open-source, beautiful, highly customizable yet deadly simple, and warm community. To get a quick taste of what Voten is written with please check our credits page.


Update:

I currently don't have the time that is required to maintain Voten. I am however open to contract work in case you need help with developing your fork of Voten, or any other development gig. You can reach me at [email protected]

My new open-source project is Jesse, an advanced cryptocurrency algo-trading framework written in Python.




Contributing

Thank you for considering contributing to the Voten. Here's a list of things you can do to support Voten:

  • Discuss Voten's development at #votendev channel. (Voten's editor supports markdown syntax just like Github's)
  • Send PRs. Voten uses Gitbook for help center and API documentation, and Github to host our source code. All of which support PRs.
  • Follow me on Twitter
  • If you're a blogger, write about Voten. If you're a user on Reddit, Twitter, etc, spread the word.
  • Help us write unit tests! That's where the code needs help the most.

Resources

Comments
  • 401 Unauthorized Errors

    401 Unauthorized Errors

    The site is set up on my local machine. I'm using Valet. Followed the installation commands and configured the .env. Can you help me figure this out? Thanks.

    screen shot 2018-09-15 at 5 49 20 am
    opened by trchristensen 14
  • Upload Profile Photo - Stuck Constantly

    Upload Profile Photo - Stuck Constantly

    Hi Voten!, Quick question, when I'M trying to upload a profile picture it's shows constantly "Please position and size your photo" but nothing happen just stuck constantly. Anyone can help me what could be the reason? Thanks in advance.

    owwwe!

    opened by owwwe 11
  • Fix PHP version requirements

    Fix PHP version requirements

    For composer, this should be a given because of dependencies that require it and usage of ?? null coalescing operator. For the readme, I believe that this project will run just swell on PHP 7.0 even though you might have 7.1 installed for now.

    opened by lancepioch 9
  • Categories

    Categories

    Love voten!

    Just wondering, The channels are being sucesfully created and are saved & visible for me only as long as the user is signed in.

    No channels are displayed for non logged in users or are searchable.

    It doesn't seem to be based on Auth permissions and was just wondering, how can I change this?

    opened by tangod0wn 9
  • after creating a user, throws an exeception

    after creating a user, throws an exeception

    Type error: Argument 1 passed to __construct() must be of the type array, null given, called in

    it then proceeds to point to the User.php file. What is up?

    opened by gumpyyyy 9
  • Feature/live-nested-comments

    Feature/live-nested-comments

    Comments positioning for new comments is fixed. Works for both hot and new sort type, we should look for top comments aswell. Needs proper testing though.

    opened by darorl89 8
  • Channel Issue

    Channel Issue

    Hello After Fresh i tried to create a channel and it shows error message

    { "message": "Uncaught InvalidArgumentException: Type is not supported in /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71\nStack trace:\n#0 /var/www/voten/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\\Http\\JsonResponse->setData(Array)\n#1 /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(27): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 500, Array)\n#2 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(435): Illuminate\\Http\\JsonResponse->__construct(Array, 500, Array, 192)\n#3 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(186): Illuminate\\Foundation\\Exceptions\\Handler->prepareJsonResponse(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException))\n#4 /var/www/voten/app/Exceptions/Handler.php(76): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException))\n#5 /var/www/voten/vendor/laravel/fr", "exception": "Symfony\\Component\\Debug\\Exception\\FatalErrorException", "file": "/var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php", "line": 71, "trace": [] }

    My Log file [2017-09-10 21:29:54] production.ERROR: Type is not supported {"userId":1,"email":"[email protected]","exception":"[object] (InvalidArgumentException(code: 0): Type is not supported at /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71) [stacktrace] #0 /var/www/voten/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\\Http\\JsonResponse->setData(Array) #1 /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(27): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 500, Array) #2 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(435): Illuminate\\Http\\JsonResponse->__construct(Array, 500, Array, 192) #3 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(186): Illuminate\\Foundation\\Exceptions\\Handler->prepareJsonResponse(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #4 /var/www/voten/app/Exceptions/Handler.php(76): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #5 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(83): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #6 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(55): Illuminate\\Routing\\Pipeline->handleException(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #7 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #8 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Router.php(612): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #9 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Router.php(571): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request)) #10 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Router.php(549): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request)) #11 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request)) #12 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request)) #13 /var/www/voten/app/Http/Middleware/Firewall.php(26): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #14 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\Http\\Middleware\\Firewall->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #15 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #16 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #17 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #18 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #19 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #20 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #21 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #22 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #23 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #24 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) #25 /var/www/voten/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #26 {main} "} [2017-09-10 21:29:54] production.ERROR: Type is not supported {"userId":1,"email":"[email protected]","exception":"[object] (InvalidArgumentException(code: 0): Type is not supported at /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71) [stacktrace] #0 /var/www/voten/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\\Http\\JsonResponse->setData(Array) #1 /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(27): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 500, Array) #2 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(435): Illuminate\\Http\\JsonResponse->__construct(Array, 500, Array, 192) #3 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(186): Illuminate\\Foundation\\Exceptions\\Handler->prepareJsonResponse(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #4 /var/www/voten/app/Exceptions/Handler.php(76): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #5 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(83): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #6 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): Illuminate\\Routing\\Pipeline->handleException(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #7 /var/www/voten/app/Http/Middleware/Firewall.php(26): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #8 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\Http\\Middleware\\Firewall->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #9 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #10 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #11 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #12 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #13 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #14 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #15 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #16 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #17 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #18 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) #19 /var/www/voten/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #20 {main} "} [2017-09-10 21:29:54] production.ERROR: Type is not supported {"userId":1,"email":"[email protected]","exception":"[object] (InvalidArgumentException(code: 0): Type is not supported at /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71) [stacktrace] #0 /var/www/voten/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\\Http\\JsonResponse->setData(Array) #1 /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(27): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 500, Array) #2 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(435): Illuminate\\Http\\JsonResponse->__construct(Array, 500, Array, 192) #3 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(186): Illuminate\\Foundation\\Exceptions\\Handler->prepareJsonResponse(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #4 /var/www/voten/app/Exceptions/Handler.php(76): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #5 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(83): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #6 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(55): Illuminate\\Routing\\Pipeline->handleException(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #7 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #8 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #9 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #10 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #11 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #12 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #13 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #14 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #15 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) #16 /var/www/voten/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #17 {main} "} [2017-09-10 21:29:54] production.ERROR: Type is not supported {"userId":1,"email":"[email protected]","exception":"[object] (InvalidArgumentException(code: 0): Type is not supported at /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71) [stacktrace] #0 /var/www/voten/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\\Http\\JsonResponse->setData(Array) #1 /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(27): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 500, Array) #2 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(435): Illuminate\\Http\\JsonResponse->__construct(Array, 500, Array, 192) #3 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(186): Illuminate\\Foundation\\Exceptions\\Handler->prepareJsonResponse(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #4 /var/www/voten/app/Exceptions/Handler.php(76): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #5 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(83): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #6 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(55): Illuminate\\Routing\\Pipeline->handleException(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #7 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #8 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #9 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #10 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #11 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #12 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) #13 /var/www/voten/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #14 {main} "} [2017-09-10 21:29:54] production.ERROR: Type is not supported {"userId":1,"email":"[email protected]","exception":"[object] (InvalidArgumentException(code: 0): Type is not supported at /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71) [stacktrace] #0 /var/www/voten/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\\Http\\JsonResponse->setData(Array) #1 /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(27): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 500, Array) #2 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(435): Illuminate\\Http\\JsonResponse->__construct(Array, 500, Array, 192) #3 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(186): Illuminate\\Foundation\\Exceptions\\Handler->prepareJsonResponse(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #4 /var/www/voten/app/Exceptions/Handler.php(76): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #5 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(83): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #6 /var/www/voten/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(55): Illuminate\\Routing\\Pipeline->handleException(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #7 /var/www/voten/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #8 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #9 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) #10 /var/www/voten/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #11 {main} "} [2017-09-10 21:29:54] production.ERROR: Type is not supported {"userId":1,"email":"[email protected]","exception":"[object] (InvalidArgumentException(code: 0): Type is not supported at /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71) [stacktrace] #0 /var/www/voten/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\\Http\\JsonResponse->setData(Array) #1 /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(27): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 500, Array) #2 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(435): Illuminate\\Http\\JsonResponse->__construct(Array, 500, Array, 192) #3 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(186): Illuminate\\Foundation\\Exceptions\\Handler->prepareJsonResponse(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #4 /var/www/voten/app/Exceptions/Handler.php(76): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #5 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(326): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #6 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(120): Illuminate\\Foundation\\Http\\Kernel->renderException(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #7 /var/www/voten/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #8 {main} "} [2017-09-10 21:29:55] production.ERROR: Uncaught InvalidArgumentException: Type is not supported in /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71 Stack trace: #0 /var/www/voten/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\Http\JsonResponse->setData(Array) #1 /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(27): Symfony\Component\HttpFoundation\JsonResponse->__construct(Array, 500, Array) #2 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(435): Illuminate\Http\JsonResponse->__construct(Array, 500, Array, 192) #3 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(186): Illuminate\Foundation\Exceptions\Handler->prepareJsonResponse(Object(Illuminate\Http\Request), Object(InvalidArgumentException)) #4 /var/www/voten/app/Exceptions/Handler.php(76): Illuminate\Foundation\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(InvalidArgumentException)) #5 /var/www/voten/vendor/laravel/fr {"userId":1,"email":"[email protected]","exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 1): Uncaught InvalidArgumentException: Type is not supported in /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71 Stack trace: #0 /var/www/voten/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\\Http\\JsonResponse->setData(Array) #1 /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(27): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct(Array, 500, Array) #2 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(435): Illuminate\\Http\\JsonResponse->__construct(Array, 500, Array, 192) #3 /var/www/voten/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(186): Illuminate\\Foundation\\Exceptions\\Handler->prepareJsonResponse(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #4 /var/www/voten/app/Exceptions/Handler.php(76): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(InvalidArgumentException)) #5 /var/www/voten/vendor/laravel/fr at /var/www/voten/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:71) [stacktrace] #0 {main} "}

    Any idea?

    Thanks a lor fot your help

    opened by ceffah 8
  • guest.blade install stage

    guest.blade install stage

    Error:

    Parse error: syntax error, unexpected ')', expecting ']' (View:voten/resources/views/layouts/guest.blade.php)
    

    the code

        <script>
            window.Laravel = <?php echo json_encode([
                'csrfToken' => csrf_token(), 'env' => config('app.env'), 'pusherKey' => config('broadcasting.connections.pusher.key')) ?>
        </script>
    

    I tried to revert to json_encode but then the page was locked up.

    note: a goat told me about your site and then I found out it was laravel so had to try it out.

    EDIT:

    The token and env variables are causing the issue. If I take them out of the array I can see the page but then can't login with the default admin/password.

    opened by illuminate3 7
  • fixed hoverover timestamp when viewing messages

    fixed hoverover timestamp when viewing messages

    when a user hovered over the "Sent At" timestamp on a message page, it would be the current date. there was a problem with the way momentjs was being initialized and used with utc(). this probably exists elsewhere but this is the fix for the message page. (-aaa)

    opened by raffertyj 7
  • Installation Steps Questions

    Installation Steps Questions

    1. I'm trying to edit .env and I've few fields I don't know how to populate.
    ECHO_HOST=https://echo.voten.co
    ECHO_PORT=6001
    ECHO_BEARER_TOKEN=
    ECHO_APP_ID=
    ECHO_AUTH_KEY=
    

    I can't figure out what goes in here, where do I get these values from?

    FTP_HOST=0.0.0.0
    FTP_PORT=21
    FTP_USERNAME=
    FTP_PASSWORD=
    CDN_URL=https://cdn.voten.co/
    FTP_ROOT=/
    

    What is the purpose of the FTP credentials, and should these files uploaded be available via HTTP under CDN_URL?

    DO_SPACES_KEY=
    DO_SPACES_SECRET=
    DO_SPACES_ENDPOINT=https://nyc3.digitaloceanspaces.com
    DO_SPACES_REGION=nyc3
    DO_SPACES_BUCKET=
    

    Are these necessary, or are they an alternative to the FTP credentials?

    1. When I navigate to /backend, I get 404 from nginx, what could be the problem? I see a .htaccess file in the public/ folder, but that doesn't seem to apply for nginx.

    Any help is appreciated.

    opened by vg-github 6
  • Admin user

    Admin user

    Hello how do i create a admin user ?

    i have created a admin user with role administrator but i get this error

    HttpException in Application.php line 900:

    opened by ghost 6
  • Img submission in home page and full submission

    Img submission in home page and full submission

    Please tell me, the image in the submission is only available if you open full submission. The submission image is not displayed on the main page (home). How to solve this problem?

    opened by amiller911 0
  • Show channel for guest

    Show channel for guest

    How to make the entire list of channels on the site visible, not only to authorized users, but also to guests. If you try to subscribe to a channel for unauthorized users, a window with authorization should appear.

    How do I make a list of all channels available to guests?

    opened by amiller911 0
  • Federation/ActivityPub support

    Federation/ActivityPub support

    It would be nice to see ActivityPub support in this project, so the platform could communicate with Prismo, Lemmy and soon Themis and littr.go + not reddit-like platforms like Mastodon, Friendica, Pleroma etc. You can take a look at Friendica AP implementation (in PHP) or being under development activitypub-php library.

    opened by mkljczk 0
  • Login/Signup with Google doesn't work

    Login/Signup with Google doesn't work

    This is my UI here: https://www.plainpotato.com/. For some reason Google auth doesn't work, am I doing anything wrong? I configured the API with the right credentials and I authorised the callback URL as well.

    opened by vg-github 0
Owner
Voten
An open-source, beautiful, highly customizable yet deadly simple, and warm community.
Voten
A full-scale PHP 5.3.2+ sandbox class that utilizes PHPParser to prevent sandboxed code from running unsafe code.

##DEPRECATED: The PHPSandbox project has transfered to Corveda/PHPSandbox and will be actively maintained there. This branch is no longer being active

Elijah Horton 219 Sep 2, 2022
Mind is the PHP code framework designed for developers. It offers a variety of solutions for creating design patterns, applications and code frameworks.

Mind Mind is the PHP code framework designed for developers. It offers a variety of solutions for creating design patterns, applications and code fram

null 0 Dec 13, 2021
30 seconds of code Short PHP code snippets for all your development needs

30 seconds of code Short PHP code snippets for all your development needs Visit our website to view our snippet collection. Use the Search page to fin

30 seconds of code 2.5k Jan 1, 2023
Library for counting the lines of code in PHP source code

sebastian/lines-of-code Library for counting the lines of code in PHP source code. Installation You can add this library as a local, per-project depen

Sebastian Bergmann 715 Jan 5, 2023
Laravel quickly creates a verification code tool similar to Google verification code

laravel-gridCaptcha Laravel quickly creates a verification code tool similar to Google verification code laravel 快速创建一个类似于 Google 点图验证码的本地验证码扩展 介绍 lar

delete DB Flee 14 Mar 1, 2022
thinkphp6 quickly creates a verification code tool similar to Google verification code

tp-gridCaptcha thinkphp6 quickly creates a verification code tool similar to Google verification code thinkphp6 快速创建一个类似于 Google 点图验证码的本地验证码扩展 介绍 tp-g

听风吹雨 2 Oct 27, 2021
Result of our code-along meetup writing PHP 8.1 code

PHP 8.1 Demo Code This code demonstrates various PHP 8.0 and 8.1 features in a realistic, functional (but incomplete) codebase. The code is part of so

azPHP 2 Nov 14, 2021
⚗️ Adds code analysis to Laravel improving developer productivity and code quality.

⚗️ About Larastan Larastan was created by Can Vural and Nuno Maduro, got artwork designed by @Caneco, is maintained by Can Vural, Nuno Maduro, and Vik

Nuno Maduro 4.4k Jan 4, 2023
Free ZIP Code API - Free Access to Worldwide Postal Code Data

About Zipcodebase - Free Zip Code API Zipcodebase is a zip code API that was founded in 2019 to solve common issues with postal code data. As we have

SaaS Industries 2 Nov 26, 2022
Dead Code Detector (DCD) for PHP code.

This project is no longer maintained and its repository is only kept for archival purposes. PHP Dead Code Detector (PHPDCD) phpdcd is a Dead Code Dete

Sebastian Bergmann 406 Dec 30, 2022
Preload your sweet sweet code to opcache with a composer command, making your code faster to run.

Composer Preload Preload your sweet sweet code to opcache with a composer command, making your code run faster. Composer Preload is a composer plugin

Ayesh Karunaratne 197 Dec 6, 2022
The SensioLabs DeprecationDetector runs a static code analysis against your project's source code to find usages of deprecated methods, classes and interfaces

SensioLabs DeprecationDetector CAUTION: This package is abandoned and will no longer receive any updates. The SensioLabs DeprecationDetector runs a st

QOSSMIC GmbH 389 Nov 24, 2022
🔌 Convert Bootstrap CSS code to Tailwind CSS code

Tailwindo This tool can convert Your CSS framework (currently Bootstrap) classes in HTML/PHP (any of your choice) files to equivalent Tailwind CSS cla

Awssat 938 Dec 24, 2022
Stash makes it easy to speed up your code by caching the results of expensive functions or code

Stash - A PHP Caching Library Stash makes it easy to speed up your code by caching the results of expensive functions or code. Certain actions, like d

Tedious Developments 943 Dec 15, 2022
A full-scale PHP sandbox class that utilizes PHP-Parser to prevent sandboxed code from running unsafe code

A full-scale PHP 7.4+ sandbox class that utilizes PHP-Parser to prevent sandboxed code from running unsafe code. It also utilizes FunctionParser to di

Corveda 192 Dec 10, 2022
Webman quickly creates a verification code tool similar to Google verification code

webman-captcha-grid webman quickly creates a verification code tool similar to Google verification code webman 快速创建一个类似于 Google 点图验证码的本地验证码扩展 介绍 webma

听风吹雨 6 Dec 5, 2022
sample code for several design patterns in PHP 8

DesignPatternsPHP Read the Docs of DesignPatternsPHP or Download as PDF/Epub This is a collection of known design patterns and some sample codes on ho

null 21k Jan 1, 2023
PHP class to generate bookmarklets from Javascript code

Bookmarklet Gen Convert readable Javascript code into bookmarklet links Features removes comments compresses code by removing extraneous spaces, but n

྅༻ Ǭɀħ ༄༆ཉ 13 Oct 5, 2022
GitHub action to setup PHP with required extensions, php.ini configuration, code-coverage support and various tools like composer...

Setup PHP in GitHub Actions Setup PHP with required extensions, php.ini configuration, code-coverage support and various tools like composer in GitHub

Shivam Mathur 2.4k Jan 6, 2023