Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Oil console - PHP Fatal error: Class 'Auth' not found
I get this errors when I try: Auth::create_user('admin', 'password', 'firstname.lastname@example.org', 100); in oil console:
# oil console
Fuel 1.1 - PHP 5.3.10 (cli) (Feb 2 2012 23:20:54) [Linux]
>>> Auth::create_user('admin', 'password', 'email@example.com', 100);
PHP Fatal error: Class 'Auth' not found in /var/www/vhosts/domain.com.net/fuel.domain.com.net/fuel/packages/oil/classes/console.php(91) : eval()'d code on line 1
Warning - file(/var/www/vhosts/domain.com.net/fuel.domain.com.net/fuel/packages/oil/classes/console.php(91) : eval()'d code): failed to open stream: No such file or directory in COREPATH/classes/debug.php on line 241
Warning - array_unshift() expects parameter 1 to be array, boolean given in COREPATH/classes/debug.php on line 242
Warning - array_slice() expects parameter 1 to be array, boolean given in COREPATH/classes/debug.php on line 257
Warning - Invalid argument supplied for foreach() in COREPATH/classes/debug.php on line 264
Error - Class 'Auth' not found in PKGPATH/oil/classes/console.php(91) : eval()'d code on line 1 This is a standard installation, I try to follow the tutorial on nettuts:
Did you load the 'Auth' package in your app/config/config.php?
you point me right, I forgot to upload the config.php after activating Auth thx
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion