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

Uncaught Error: Call to undefined function jwt_encode() #29

Open
Aniruddh-J opened this issue Jul 20, 2019 · 4 comments
Open

Uncaught Error: Call to undefined function jwt_encode() #29

Aniruddh-J opened this issue Jul 20, 2019 · 4 comments

Comments

@Aniruddh-J
Copy link

Well, this weird but I have compiled and installed the module but I am still getting Uncaught Error: Call to undefined function jwt_encode() .

I have verified from phpinfo() that jwt.ini is loading.

I am using PHP 7.3 on runcloud.

I installed module using:

/RunCloud/Packages/php73rc/bin/phpize && ./configure --with-openssl=/usr/bin/openssl --with-php-config=/RunCloud/Packages/php73rc/bin/php-config
make
sudo make install

Am I missing something here?

@ecjep
Copy link

ecjep commented Dec 15, 2019

Hi,
after you compile, go to modules directory, you will find jwt.so file
add this to php.ini file
extension= jwt_install_path/modules/jwt.so

and it will work

@Aniruddh-J
Copy link
Author

@ecjep Already done that. Besides, I switched to another library.

@ecjep
Copy link

ecjep commented Dec 16, 2019

@Aniruddh-J
i guessed, any way this might help for others

@mmontone
Copy link

Hi, after you compile, go to modules directory, you will find jwt.so file add this to php.ini file extension= jwt_install_path/modules/jwt.so

and it will work

This works for me. Why doesn't this appear in install instructions in README? It should.

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