Fatal error: Class 'OAuth' not found in

前端 未结 4 1727
别跟我提以往
别跟我提以往 2021-02-08 03:28

I\'m trying to connect to the LinkedIn API but everytime I try to access it I get the following error:

Fatal error: Class \'OAuth\' not found in /home/vh

4条回答
  •  不知归路
    2021-02-08 03:58

    I use hostgator for hosting and was having this problem so if your host also uses cpanel you should be able to do what I did.

    Go 1 directory up from the live directory in File Manager where you can see "public_html, www, tmp". (Or click the home folder icon to the left) and in there you should find a php.ini file. edit the file adding extension=oauth.so to the very end and save it.

    Checking phpinfo() after that you should find a section called "OAuth" and everything should work fine.

提交回复
热议问题