OAuth configuration script - missing oauth module?!
LeopoldKing opened this issue · comments
Hi everyone,
whenever I try to create my oauth configuration script, it only returns the following error:
Fatal error: Uncaught Error: Class 'OAuth' not found in /░░░/inakiabt/etsy-php/src/Etsy/EtsyClient.php:23
Stack trace:
#0 /░░░/inakiabt/etsy-php/scripts/auth-setup.php(41): Etsy\EtsyClient->__construct('░░░...', '░░░')
#1 {main}
thrown in /░░░/inakiabt/etsy-php/src/Etsy/EtsyClient.php on line 23
Any ideas what I can do about it? I'm running on a MacOS (mojave) and it seems that the MacOS php is not supporting OAuth. How can I install it?
Cheers,
Leopold
That's what I did and tried to follow but due a missing(?) OAuth module, I couldn't go on. Any ideas how to solve it?
Please read the readme
I spent a couple of hours on the same problem, in phpinfo oAuth was installed and enabled, but...
The reason was, what php has separate php.ini for terminal and browser, I forgot about it, so needed to add this line
extension=oauth.so
in both php.ini
/etc/php/8.1/apache2/php.ini
/etc/php/8.1/cli/php.ini