snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Adding/Editing Assets

Open Nubianprince opened this issue 12 years ago • 4 comments

Thanks for creating such a cool software, i installed the software all seems fine except I cannot add or edit assets. I have debug enabled and this is what i get.

Symfony \ Component \ Debug \ Exception \ FatalErrorException syntax error, unexpected '[', expecting ')' open: /var/www/app/storage/views/0d5dac40091b7d84e8bea1f6b127436b

'POST', 'files' => true, 'class' => 'form-horizontal' ]); ?>
<!-- CSRF Token -->
<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>" />

Nubianprince avatar Nov 04 '14 15:11 Nubianprince

I had this issue as well check what version of PHP you have installed. You need 5.4 or later.

SeanLebeau avatar Nov 04 '14 17:11 SeanLebeau

I have the latest version of PHP installed, i did fix the problem by deleting the contents in folder app/storage/views then set permissions(777) to that folder.

Nubianprince avatar Nov 04 '14 19:11 Nubianprince

Sounds like that cached view was created before PHP had been upgraded. At any rate, glad you got it sorted.

snipe avatar Nov 04 '14 20:11 snipe

This has come up a few times recently, so I've added a note to the common issues section of the docs: http://docs.snipeitapp.com/installation/common_issues.html

snipe avatar Nov 04 '14 20:11 snipe