Trying to Rollback but its giving me error that class'task' not found. Can someone please tell me why I am getting that error,
I also tried to remove the schema drop line but still its giving the same error
In your command line run:
composer dump-autoload
Related
I know there is a lot similar questions of this one. But non of them fixed my issue.
I run php artisan serve without any issue but when i try to load the page I get this error with no explicit message:
Undefined
Exception
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
I've got the same project file + php version + laravel version that my teamate but he does not get the error.
Do you have any more ideas please ?
I'm trying to create migration table in my particular path
php artisan make:migration create_options_table --create=site_options --path='Nitseditor/Nitseditor/Database'
I'm getting an error
[ErrorException]
Array to string conversion
My directory structure:
Help me out in this.
Well, it is always hard to have just Exception without knowing what file should I check and which line.
First check logs tail storage/logs/laravel.log -n 100 to get a trace of an exception thrown. There you will find the key to solve your problem. Example:
[2017-02-03 22:44:53] local.ERROR: exception 'ErrorException' with message
<message> in <path>:<line>
Stack trace: ...<details>
Typically I run a laravel artisan command like
php artisan Command -v
and if there is an error I can find the file/line#, using the -v flag.
For some reason the -v is not working on one of my commands. I am therefore receiving a pretty limited error message:
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to a member function getArgument() on null
This command happens to be calling some code that is extending someone else's code.
Any ideas how to get the file/line output in the error message?
Old, but relates to a questions / answer I had...
...verbosity levels...
// -v|vv|vvv Increase the verbosity of messages:
// 1 for normal output, 2 for more verbose output and 3 for debug
php artisan --verbose
Good reference here...
https://github.com/JesseObrien/laravel-cheatsheet (moved to github)
It's been caught by laravel
You can dump the detail in the "handle" function in this file
/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php
When running artisan migrate on a Laravel 5 project, it is failing with the following FatalErrorException:
$ artisan migrate -vvv --force
[Symfony\Component\Debug\Exception\FatalErrorException] syntax
error, unexpected '$table' (T_VARIABLE)
How do I get the file and line that is causing the error?
If in anyway relevant, I'm on a Windows 7 x64 machine with WAMP - PHP 5.6 and Laravel Framework version 5.1.10 (LTS).
There might be a semicolon or bracket missing a line
Check all in your migration files.
Laravel is configured to create daily log files for your application
which are stored in the storage/logs directory.
http://laravel.com/docs/5.1/errors#logging
This class Symfony\Component\Debug\Exception\FatalErrorException has some differences compared with the other Exception classes and it is not properly presented by the "error renderers" or "error notifiers".
A New sentry "error notifier" ("getsentry/sentry-php" version >= "2.0") will give you a proper stack trace.
Here is issue where is reported : https://github.com/getsentry/sentry-php/issues/761
Here is the PR for fix : https://github.com/getsentry/sentry-php/pull/763
My first time using Doctrine + CodeIgniter and trying to use orm:schema-tool:create command I get this error message:
C:\>C:\xampp\php\php.exe c:\xampp\htdocs\doctrine\application\doctrine.php orm:schema-tool:create
Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch() in C:\xampp\htdocs\doctrine\application\libraries\Doctrine\Common\Cache\ApcCache.php on line 52
What am I doing wrong?
Thanks in advance for any help.
I've found the solution, it was pretty obvious.
On my Doctrine.php I had a line trying to use cache using APC and I don't have APC installed...commented those lines and problem solved.
Hope it helps.