voten-co / voten Goto Github PK
View Code? Open in Web Editor NEWThe code that powers voten.co
Home Page: https://voten.co
License: Apache License 2.0
The code that powers voten.co
Home Page: https://voten.co
License: Apache License 2.0
After make some changes in many .vue i do npm run production
and i got this
69% building modules 683/684 modules 1 active ...w/html/resources/assets/sass/app.scss[..................] | : info lifecy
so my changes applied not all...
i try npm run dev then npm run prod, same situation
and Voten stuck in dev mode
"You are running Vue in development mode.
Make sure to turn on production mode when deploying for production."
Any user can't load any file (IMG, GIF) from "Submission"
I tried with latest version, pusher configs are correct but i tested real-time chat, it look like not auto update messages. Need to refresh page to see notification (and browser not store state when in chat screen too)
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'voten.suggesteds' doesn't exist (SQL: select id, category_id from suggesteds group by category_id)
D:\www\htdocs\voten\vendor\laravel\framework\src\Illuminate\Database\Connection.php
catch (Exception $e) {
throw new QueryException(
$query, $this->prepareBindings($bindings), $e
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!
Do you think it will be useful if Rising button will hide if there are not contents?
Hello,
I have a fresh install of Voten however I can not create a channel it shows "
{
"message": "Server Error"
}
and in homepage is constantly a loading icon.
Can you please help what could be the reason?
Thanks.
From @sullyfischer's comment:
Laravel's notifications data formats for broadcast driver and database driver are different. This causes an error when a notification is broadcasted. But after a refresh user can load the same notification and it works just fine (because this time it's being fetched from database).
The production server however is working fine now and that's because back then I used to push /vendor files and in my local vendors files I've done this modification in Laravel core that takes care of it:
In BroadcastNotificationCreated.php:/** * Get the data that should be sent with the broadcasted event. * * @return array */ public function broadcastWith() { return [ 'data' => $this->data, 'id' => $this->notification->id, 'type' => get_class($this->notification), 'created_at' => Carbon::now(), 'read_at' => null ]; // return array_merge($this->data, [ // 'id' => $this->notification->id, // 'type' => get_class($this->notification), // ]); }Can you think of a "right way" for this?
Algolia installed, ID and KEY right in .env, but i get this
AlgoliaSearch \ AlgoliaException (400)
Not enough rights to add an object near line:1 column:113
$answer = Json::decode($response, true);
$context->releaseMHandle($curlHandle);
curl_close($curlHandle);
if (intval($http_status / 100) == 4) {
throw new AlgoliaException(isset($answer['message']) ? $answer['message'] : $http_status.' error', $http_status);
} elseif (intval($http_status / 100) != 2) {
throw new \Exception($http_status.': '.$response, $http_status);
}
error here
throw new AlgoliaException(isset($answer['message']) ? $answer['message'] : $http_status.' error', $http_status);
After Login there is nothing except top navbar.
such as
UC Browser (Android)
I see you use Pusher for local environments and socket.io for production environments. What's the reasoning behind this?
Why not use either for both?
<nav class="nav has-shadow user-select">
<div class="container">
<div class="nav-left">
<router-link :to="{ path: '/c/' + $route.params.name }" class="nav-item is-tab" :class="{ 'is-active': sort == 'hot' }">
=>>>> Горячее \ HOT
</router-link>
<router-link :to="{ path: '/c/' + $route.params.name + '?sort=new' }" class="nav-item is-tab" :class="{ 'is-active': sort == 'new' }">
=>>>> Новое \ NEW
</router-link>
<router-link :to="{ path: '/c/' + $route.params.name + '?sort=rising' }" class="nav-item is-tab" :class="{ 'is-active': sort == 'rising' }">
=>>>> Обсуждаемое \ RISING
</router-link>
</div>
So i change, save it and nothing happend. It stays like before...
Can you please link files in voten, where need to translate to other lang.
This will help with testing and also can be useful for first time setup for users
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:
I think it would be nice to Sort by Top of all time and then smaller time increments like year, month, week, day,etc.
Is there a reason why you used a json string and then json_decode
it to an array and then return the array as json response?
We could easily create the array and return directly. Laravel would create a Json response automatically.
We can create a migration and seeder to store the emojis in database and cache it in Redis. Thoughts?
Is there any language pack?
a ha 😁
I like to use voten app for my existing pligg.com(New name kliqq.com) based site. Is there any migration API available?
One example, only show them if they are set in the config (or .env)
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
I want to know if this project supports text posts like reddit does.
I want to find a project that I can use as an alternative to Forum cos I think threaded comments are superior to traditional forums.
Will this fit my usecase?
Laravel Docs: https://laravel.com/docs/5.5/upgrade
Or possibly: https://laravelshift.com (maybe ask owner if he'll do one for free because it's OSS)
please how can i configure redis in local i am using wamp and i have all the required intalled thanks
I got this error in console
,
Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":null,"message":"Invalid key in subscription auth data: 'xxxxxxxxx'"}}},
All configs for pusher are correct but i don't know why.
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?
Looking at this now, I'm concerned that the language used in CategoryController.php might be overly informal.
Is this something that we want to keep?
Undefined index: /js/backend.js (View: /var/www/html/community/fan/resources/views/layouts/backend-layout.blade.php) (View: /var/www/html/community/fan/resources/views/layouts/backend-layout.blade.php)
return new HtmlString($manifestDirectory.$manifest[$path]);
Hi @sullyfischer,
can you please add support for RTL languages (Arabic, Hebrew, etc), I really appreciate you effort.
& thanks in advance
npm run watch
and i got this
ErrorException (E_ERROR)
Undefined index: /css/app.css (View: /var/www/stegmat/data/www/test.fvds.ru/resources/views/layouts/guest.blade.php) (View: /var/www/stegmat/data/www/test.fvds.ru/resources/views/layouts/guest.blade.php)
$manifest = $manifests[$manifestPath];
if (! isset($manifest[$path])) {
report(new Exception("Unable to locate Mix file: {$path}."));
if (! app('config')->get('app.debug')) {
return $path;
}
}
return new HtmlString($manifestDirectory.$manifest[$path]);
}
}
Is app running at https://midd.voten.co open
source?
https://github.com/voten-co/voten/blob/master/app/Traits/Submit.php#L68
and
https://github.com/voten-co/voten/blob/master/app/Traits/Submit.php#L181
After installing Voten, doesn't show all news in "Hot" and other categories. Only when i'am log in then i see all news and left sidebar channels.
After a fresh install tried to create a Channel as admin user. However error message appeared that i do not have enough Karma. I can't submit new content because there are no channels and I can't create channels because not Karma... how to i supposed to get karma if i can't submit?
Thanks a lot for your help in advance.
Can't upload a profile picture or channel avatar.
The thumbnail is uploading to the temp map but not visible for crop.
Hi!! First of all, congratulations for this project, i think Laravel needs projects like this in order to rule in what frontend too.
I was looking at your code in order to understand how it works (i'm new in Vue) and i've noticed you are using a category_name in the sumissions model, when you've just could be joining submissions with categories with the category_id that it{s present in te model too by making a
protected $with = ['owner','category'];
in the Sumission model
and then accessing it data by submission.category.name instead of submission.category_name
Is there a reason about this redundant field? Performance may be?
I hope i've been clear about my point/question because my english is not too good!!
Bye!
Apologies if this is the incorrect place to report this, but after logging in via Google to https://voten.co/ , no pages load. None of the actions in the top bar work. This is what shows:
Here's the error log on page load:
This is the relevant lines for the hexadecimal error:
I think it would be very useful if /c/test
or #test
was parsed and embedded with a hyperlink to the channel.
Similar to how reddit handles /r/
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?
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.
Hi Voten!
I was thinking about the Feature option for Voten that submitting a story by clicking the bookmarklet in your browser. So You can easily submit your stories to Voten with just few clicks.
I think it would be useful for Voten users. What do you think?
npm run production
> @ production /media/kcloze/8685937c-af42-4319-aa9b-bb123ccd18ba/data/www/github/voten
> cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
/media/kcloze/8685937c-af42-4319-aa9b-bb123ccd18ba/data/www/github/voten/node_modules/laravel-mix/setup/webpack.config.js:24
let WebpackConfig = require('../src/builder/WebpackConfig');
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at requireConfig (/media/kcloze/8685937c-af42-4319-aa9b-bb123ccd18ba/data/www/github/voten/node_modules/webpack/bin/convert-argv.js:97:18)
at /media/kcloze/8685937c-af42-4319-aa9b-bb123ccd18ba/data/www/github/voten/node_modules/webpack/bin/convert-argv.js:104:17
at Array.forEach (native)
npm ERR! Linux 4.4.0-96-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "production"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! @ production: `cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ production script 'cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /media/kcloze/8685937c-af42-4319-aa9b-bb123ccd18ba/data/www/github/voten/npm-debug.log
hello
a have clone the projet in local and donne all what you recommend to do
bet a get that error
(1/1) ConnectionException
Aucune connexion n�a pu �tre �tablie car l�ordinateur cible l�a express�ment refus�e. [tcp://127.0.0.1:6379]
please help
ps:sorry for my wrong english
1\ submit a new post, with 1 point.
2\ another person up-vote the post, get 2 points on the screen.
3\ The up-voted person refresh the page, the up-voted icon shown as voted, but the counter back to 1 point.
If I want to delete my account which was created viá google. I am not able delete it because it says always I would have provided an invalid password.
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.