Correction; got it to work!.. Re-installed from scratch and got the site config file to pick up the composer generated autoload file. Must have rearranged the file structure per the “use” statement not understanding that it’s a namespace not a path… To get Metabase, Wordpress, Windows, PHP, Apache et. al., MySQL, Composer, lcobucci/jwt, etc. to all play nice together is a VERY messy business to say the least!
The next big challenge is how to divide users up into groups A, B, & C and make sure each can only see the charts & dashboards they are meant to see.
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How does one go from the class related namespace:
use Lcobucci\JWT\Signer\Hmac\Sha256;
to using it in a function:
$signer = new Sha256();
Keep getting this error which refers to the above two lines:
Fatal error: Uncaught Error: Class ‘Lcobucci\JWT\Signer\Hmac\Sha256’ not found in C:\Users\Mesquest\Documents\Websites\www.example.dev.cc\wp-content\mu-plugins\MetabasePlugin.php:17
Where the Sha256.php is located at
C:\Users\Mesquest\Documents\Websites\www.example.dev.cc\wp-content\mu-plugins\Lcobucci\JWT\Signer\Hmac\Sha256.php
Does it have anything to with the Composer generated autoload.php located at:
C:\Users\Mesquest\Documents\Websites\www.example.dev.cc\wp-content\mu-plugins\Lcobucci\vendor\autoload.php