voten-co / voten

The code that powers voten.co
https://voten.co
Apache License 2.0
1.26k stars 233 forks source link

guest.blade install stage #206

Closed illuminate3 closed 6 years ago

illuminate3 commented 6 years ago

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.

illuminate3 commented 6 years ago

update: I upgrade brew and started a fresh install on a different machine. I got to the site. I had to refresh after entering the admin/password but I got in.

I went to change some settings and now I see this:

chmod(/Users/asus/Sites/voten/storage/oauth-public.key): Operation failed: Operation not permitted

storage is already 777.

Also, what services do I need to sign up for to make all this work properly?

I got pusher, sentry, redis.

Do I need echo and oauth?

akhilvarma commented 6 years ago

remove that script it works

illuminate3 commented 6 years ago

I tried that but I got basically a blank screen. The sign in / login in button becomes disabled.

saleh-old commented 6 years ago

Have you tried running npm run dev?

peanut24 commented 6 years ago

Your array doesn't have a closing tag

rethinkpattern commented 6 years ago

Any fix for this, please I need to fix this.

saleh-old commented 6 years ago

fixed