php-jwt icon indicating copy to clipboard operation
php-jwt copied to clipboard

Uncaught Error: Call to undefined function jwt_encode()

Open Aniruddh-J opened this issue 6 years ago • 4 comments

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?

Aniruddh-J avatar Jul 20 '19 05:07 Aniruddh-J

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

ecjep avatar Dec 15 '19 23:12 ecjep

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

Aniruddh-J avatar Dec 16 '19 00:12 Aniruddh-J

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

ecjep avatar Dec 16 '19 07:12 ecjep

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.

mmontone avatar Sep 12 '23 14:09 mmontone