Comments (7)
@simondahla what is the php version do you have? This application does't work until you have the version of php 7.0 or after release.
from opus.
vagrant@scotchbox:/var/www/opus.local$ php -v
PHP 7.0.17-2+deb.sury.org~trusty+1 (cli) (built: Mar 15 2017 09:38:47) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.17-2+deb.sury.org~trusty+1, Copyright (c) 1999-2017, by Zend Technologies
I tried to rewrite that line to
use App\Models\User;
use App\Models\Space;
use App\Models\Wiki;
use App\Models\Team;
use App\Models\Page;
use App\Models\Role;
It seems to fix the problem, but the that kind of error is then found in Wiki.php and probably all other files with that syntax...
from opus.
Also tried to upgrade to PHP 7.1 but without success.
vagrant@scotchbox:/var/www/opus.local$ php -v
PHP 7.1.3-2+deb.sury.org~trusty+1 (cli) (built: Mar 15 2017 09:53:03) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.3-2+deb.sury.org~trusty+1, Copyright (c) 1999-2017, by Zend Technologies
from opus.
@simondahla This is strange because I have PHP 7.0.9 and everything is working fine. As you can see in PHP documentation we can group use statements like this:
// PHP 7+ code
use some\namespace\{ClassA, ClassB, ClassC as C};
use function some\namespace\{fn_a, fn_b, fn_c};
use const some\namespace\{ConstA, ConstB, ConstC};
from opus.
Solved after PHP 7 installation.
from opus.
@ZeeSHANU I hear you. As you can see I'm using PHP 7.1.3 and it's still not working.
Any other suggestions on how to solve this?
from opus.
@simondahla To solve your issue just explode the grouped use statements like this
use {ClassA, ClassB};
with
use ClassA;
use ClassB;
from opus.
Related Issues (20)
- php artisan db:seed fails HOT 2
- Logo Enhancement
- Error add wiki permissions HOT 7
- Error in edit wiki
- Searching in the body wiki or page HOT 1
- Wiki feedback
- Failed opening required '/var/www/bootstrap/../vendor/autoload.php' HOT 4
- docker-compose file missing HOT 1
- (1/1) UnexpectedValueExceptionThe stream or file "/var/www/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied HOT 1
- Add images to wiki?
- docker-compose -up error step HOT 1
- Whoops, looks like somethings went wrong
- Getting 401 Unauthorized from api/team/members without any other errors HOT 1
- Composer Problem
- Fork under MIT License
- Whoops, looks like something went wrong. HOT 1
- Is this project still maintained? HOT 1
- Any chance to upgrade to Laravel 6? HOT 1
- Docker Instructions
- Translation for persian language farsi HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opus.