[GH-ISSUE #1117] error on application.php in windows #652

Closed
opened 2026-02-26 02:33:52 +03:00 by kerem · 5 comments
Owner

Originally created by @rohankhode18 on GitHub (Nov 9, 2019).
Original GitHub issue: https://github.com/koel/koel/issues/1117

i am using xampp as localhost server
i am getting this error when i run this command
$ php artisan koel:init

PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable
(T_VARIABLE) in C:\xampp\htdocs\koel-master\app\Application.php on line 18

Originally created by @rohankhode18 on GitHub (Nov 9, 2019). Original GitHub issue: https://github.com/koel/koel/issues/1117 i am using xampp as localhost server i am getting this error when i run this command $ php artisan koel:init PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in C:\xampp\htdocs\koel-master\app\Application.php on line 18
kerem closed this issue 2026-02-26 02:33:52 +03:00
Author
Owner

@phanan commented on GitHub (Nov 9, 2019):

What version of PHP do you have?

<!-- gh-comment-id:552132551 --> @phanan commented on GitHub (Nov 9, 2019): What version of PHP do you have?
Author
Owner

@rohankhode18 commented on GitHub (Nov 11, 2019):

php 7.0 and above

<!-- gh-comment-id:552544251 --> @rohankhode18 commented on GitHub (Nov 11, 2019): php 7.0 and above
Author
Owner

@phanan commented on GitHub (Nov 11, 2019):

Please upgrade to 7.1.

<!-- gh-comment-id:552545112 --> @phanan commented on GitHub (Nov 11, 2019): Please upgrade to 7.1.
Author
Owner

@rohankhode18 commented on GitHub (Nov 11, 2019):

After upgrading php to 7.1 this error coming

Fatal error: Uncaught ReflectionException: Class log does not exist in C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php:734 Stack trace: #0 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(734): ReflectionClass->__construct('log') #1 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Container\Container->build('log', Array) #2 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(697): Illuminate\Container\Container->make('log', Array) #3 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(849): Illuminate\Foundation\Application->make('log') #4 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(804): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter)) #5 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Containe in C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 734

<!-- gh-comment-id:552558885 --> @rohankhode18 commented on GitHub (Nov 11, 2019): After upgrading php to 7.1 this error coming Fatal error: Uncaught ReflectionException: Class log does not exist in C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php:734 Stack trace: #0 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(734): ReflectionClass->__construct('log') #1 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): Illuminate\Container\Container->build('log', Array) #2 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(697): Illuminate\Container\Container->make('log', Array) #3 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(849): Illuminate\Foundation\Application->make('log') #4 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(804): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter)) #5 C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Containe in C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 734
Author
Owner

@phanan commented on GitHub (Nov 11, 2019):

Please consult Google (a quick search showed quite a few solutions for
me), as this is not a Koel issue.

Am Mo., 11. Nov. 2019 um 19:29 Uhr schrieb rohankhode18 <
notifications@github.com>:

After upgrading php to 7.1 this error coming

Fatal error: Uncaught ReflectionException: Class log does not exist in
C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php:734
Stack trace: #0
C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(734):
ReflectionClass->__construct('log') #1
https://github.com/phanan/koel/issues/1
C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(629):
Illuminate\Container\Container->build('log', Array) #2
https://github.com/phanan/koel/issues/2
C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(697):
Illuminate\Container\Container->make('log', Array) #3
https://github.com/phanan/koel/pull/3
C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(849):
Illuminate\Foundation\Application->make('log') #4
https://github.com/phanan/koel/issues/4
C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(804):
Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 https://github.com/phanan/koel/issues/5
C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Containe
in
C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php
on line 734


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/phanan/koel/issues/1117?email_source=notifications&email_token=AB5O3UUXQR27W3BXQVIBM4TQTGP7PA5CNFSM4JLFZYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDXWCJI#issuecomment-552558885,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5O3US5PKB7QIKJIC47PNTQTGP7PANCNFSM4JLFZYJQ
.

<!-- gh-comment-id:552577590 --> @phanan commented on GitHub (Nov 11, 2019): Please consult Google (a quick search showed quite a few solutions for me), as this is not a Koel issue. Am Mo., 11. Nov. 2019 um 19:29 Uhr schrieb rohankhode18 < notifications@github.com>: > After upgrading php to 7.1 this error coming > > Fatal error: Uncaught ReflectionException: Class log does not exist in > C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php:734 > Stack trace: #0 > C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(734): > ReflectionClass->__construct('log') #1 > <https://github.com/phanan/koel/issues/1> > C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(629): > Illuminate\Container\Container->build('log', Array) #2 > <https://github.com/phanan/koel/issues/2> > C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(697): > Illuminate\Container\Container->make('log', Array) #3 > <https://github.com/phanan/koel/pull/3> > C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(849): > Illuminate\Foundation\Application->make('log') #4 > <https://github.com/phanan/koel/issues/4> > C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php(804): > Illuminate\Container\Container->resolveClass(Object(ReflectionParameter)) > #5 <https://github.com/phanan/koel/issues/5> > C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Containe > in > C:\xampp\htdocs\koel-master\vendor\laravel\framework\src\Illuminate\Container\Container.php > on line 734 > > — > You are receiving this because you modified the open/close state. > Reply to this email directly, view it on GitHub > <https://github.com/phanan/koel/issues/1117?email_source=notifications&email_token=AB5O3UUXQR27W3BXQVIBM4TQTGP7PA5CNFSM4JLFZYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDXWCJI#issuecomment-552558885>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AB5O3US5PKB7QIKJIC47PNTQTGP7PANCNFSM4JLFZYJQ> > . >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#652
No description provided.