-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of undefined constant HTTP_OK - assumed 'HTTP_OK' (this will throw an Error in a future version of PHP) #1065
Comments
Please use self::HTTP_XXXX in RestController.php. |
He has already uploaded it, only the composer doesn't update to the right version... for months now :| |
What is pretty annoying, because I have 4 instances in local/dev/stage/master env, so I have to copy this file 16 cases manually on every deployment... |
@chriskacerguis are you planning to make a release any time soon which will contain this fix? |
Thanks for the pointer ! |
As a workaround for composer, you could set the value to "dev-master" in composer.json for now until the latest fixes updated to packagist. |
I get this error after installing this, before making any changes to the config. So basically there's an error out of the box
Changing line 659 as follows...
...causes a further error |
Thanks @nerdv2 - setting the version to "dev-master" resolves this |
I have same problem like @aderowbotham. I think there is some issues with some code in RestController.php. Then I try to changes the code at the line 659 From : To : And I do change several code because I think that type of code is no longer supported on PHP 7. It's working well like I'm expected it would be. Please correct me if I was wrong. |
Like in this case, I change it from
Into this :
|
@AlfanMudhofir sudah selesai masalahnya |
I get some error lik @AlfanMudhofir and @aderowbotham and i try to chenge config/rest.php $config['rest_enable_keys'] = TRUE; i used PHP 7.2.27 |
That is i chenge it on RestController |
should be fixed now. |
it works, thanks.. |
i change $config['rest_enable_keys'] = true; in src/rest.php
and i get this error
I used jwt for token authentication but there were no problems there.
if i changing the config file nothing happens, logs and key doesn't working.
im using php version 7.3.1.
in the version that does not use vendor there are no problems
Thanks Sir
The text was updated successfully, but these errors were encountered: