php artisan migrate error in Laravel 5.3 - laravel

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>

Related

migration Rollback error class not found in Laravel

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

Where is the laravel error file located? or Is there a default error log in Laravel?

I'm working on a medium project -with laravel- for quite a long time now and of course I use the debugger of the framework -laravel-, but now from time to time I see the page of error but there is just "whoops something went wrong without" without any specifications for the error, and I see it a lot in ajax requests, but I just actualize the page and its gone!;
Finally the error show up again and I could see it in my terminal with the command tail down here
this is what I got
[2016-12-28 14:54:04] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\shop\tess\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php:45
Stack trace:
#0 D:\shop\tess\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php(25): Illuminate\Encryption\EncryptionServiceProvider->getEncrypterForKeyAndCipher(NULL, 'AES-256-CBC')
#1 D:\shop\tess\vendor\laravel\framework\src\Illuminate\Container\Container.php(731): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
I've found this on github it helped https://github.com/orchestral/testbench/issues/93
Make sure APP_DEBUG is set to true in your .env file
You can check the errors with the following command tail -f storage/logs/laravel.log Could be different errors

Laravel Artisan Command show verbose error messages

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

cloning laravel project (non-compound name 'App')

I'm clonning my laravel project from my repo, then I run composer install and then composer update. But I'm getting an error:
php artisan clear-compiled
[ErrorException] The
use statement with non-compound name 'App' has no effect
Script php artisan clear-compiled handling the pre-update-cmd event
returned with an error
[RuntimeException] Error Output:
I can't figure out why is this happening and google couldn't help me this time. This is the log, what more disturbs me is that I can composer update from another machine in which I pushed the firsts commits.
[2015-12-15 18:41:42] local.ERROR: exception 'ErrorException' with
message 'The use statement with non-compound name 'App' has no effect'
in /var/www/html/anuncios.com/app/Http/routes.php:3 Stack trace:
0 /var/www/html/anuncios.com/app/Providers/RouteServiceProvider.php(41):
Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'The
use stateme...', '/var/www/html/a...', 3, Array)
1 /var/www/html/anuncios.com/app/Providers/RouteServiceProvider.php(41):
App\Providers\RouteServiceProvider::App\Providers{closure}()
...

Blank white page when finished uploading files to server laravel5

I have finished uploading files to server inside demo folder, but when i visited i got blank white page. when i visited somedomain.com/demo i got blank white page. Can anyone help me please. My folder directory start with demo. Inside demofolder i have app,bootstrap,config etc folders.
when i view storage/log file i got
[2015-09-20 06:38:00] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()' in C:\xampp\htdocs\sidinsu\project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ClearCompiledCommand.php:28
Stack trace:
#0 {main}
[2015-09-20 06:52:16] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()' in C:\xampp\htdocs\sidinsu\project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ClearCompiledCommand.php:28
Stack trace:
#0 {main}
[2015-09-20 06:53:23] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()' in C:\xampp\htdocs\sidinsu\project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ClearCompiledCommand.php:28
Stack trace:
#0 {main}
[2015-09-20 06:58:28] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()' in C:\xampp\htdocs\sidinsu\project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ClearCompiledCommand.php:28
Stack trace:
#0 {main}
The blank page suggests a 500 error and your logs back this up.
Looking at your logs it is an issue with the vendor/compiled.php file.
Just delete this file, run composer update, and then php artisan optimize after the update to rebuild compiled.php.
On a side note, the URL to view this should be somedomain.com/demo/public as this is where the index.php file is located - unless you have already dealt to this.
When you move Laravel 5 to a production server please do the following:
Change permissions of storage and bootstrap folders to 0755 or 0777 chmod -R 0777 storage/
composer install
composer update
artisan cache:clear
This will resolve your dependencies and make laravel functional.
When you get packages conflicts after doing the above steps remove the packages from app/config/app.php and delete their folders from vendor and run composer update.
Also make sure you will meet Laravel 5 minimum requirements. PHP 5.5.9 is required.

Resources