Skip to content
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 PHP_BOLT_KEY - assumed 'PHP_BOLT_KEY' #17

Open
jagadeeshanubavam opened this issue Feb 1, 2021 · 2 comments

Comments

@jagadeeshanubavam
Copy link

The following error in php7.2 and 7.3 and I am using bolt.so version 1.0.2

Warning: Use of undefined constant PHP_BOLT_KEY - assumed 'PHP_BOLT_KEY' (this will throw an Error in a future version of PHP) in index.php on line 1

Parse error: syntax error, unexpected end of file inindex.php on line 1
@delzey
Copy link

delzey commented Jun 28, 2021

You forgot to define your key...
Add this somewhere in the config files...
define('PHP_BOLT_KEY', 'YoUrKeYgOesHeRe');

@newgenesys
Copy link

Hello @delzey I am currently facing this error. Please where do I define the PHP_BOLT_KEY? what config file were you refering to?

Is it supposed to be within my project files or the phpBolt project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants