-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Am I doing something stupid? #81
Comments
It looks like you forgot to include the <?php
include_once(__DIR__.'/vendor/autoload.php');
use OTPHP\TOTP;
$otp = TOTP::create(); |
Silly me.. I actually had the autoload, but forgot to include that here.. still same error.. The following works fine for me.. So it seems as if your changes to 9.0 are not being recognized. To help with some background info.. I used composer to install before realizing I only had php7.0.. so I reinstalled XAMPP completely, verified its using the right php directory and that it was the correct version.. composer update.. and this is where im stuck at. oh wait! found this in composer's installed.json.. Yes.. I was doing something stupid. So.. I used a symbolic link before upgrading XAMPP.. and I imported a new htdocs directory.. so I upgraded composer in my backup directory =/ Well, all seems to be working now. Great Work! |
Closing as it seems that you found how to solve that. Thanks. |
Use Doctrine's more generic ObjectManager interface
Code..
Error..
Fatal error: Uncaught Error: Call to undefined method OTPHP\TOTP::create() in /Applications/XAMPP/xamppfiles/htdocs/1log/test.php:7 Stack trace: #0 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/1log/test.php on line 7
Am I doing something stupid? Thanks
PHP version.. 7.1.7
Composer Latest Version..
The text was updated successfully, but these errors were encountered: