Grocy: PHP-Error - Use of undefined constant GROCY_USER_ID

Created on 25 Oct 2018  路  3Comments  路  Source: grocy/grocy

I'm on shared hosting. When i use the PHP Version 7.2.8 I get this PHP error:

Warning: Use of undefined constant GROCY_USER_ID - assumed 'GROCY_USER_ID' (this will throw an Error in a future version of PHP) in /home/www/grocy/controllers/BaseController.php on line 47

When i choose PHP Version 7.1.20 it seems fine. No such error messsage.

question

All 3 comments

Is (for now) only a warning, so should be no problem, and is also already fixed in https://github.com/berrnd/grocy/commit/f13abf483ebaa5e5d5317b9c15ee57a0cefbad6f (not part of a released version yet).

I still get that ( just used the https://github.com/grocy/grocy-docker/ to run it )

Screenshot from 2020-03-21 18-13-23

And I still don't really care about warnings (disable them, php.ini).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jglauche picture jglauche  路  4Comments

skettydog picture skettydog  路  4Comments

Festeazy picture Festeazy  路  5Comments

schildgenb picture schildgenb  路  3Comments

Forceu picture Forceu  路  3Comments