I keep on getting blank white screen on my project when routing some files with no error message. I have tried to clear routes, cache,views, and config using the artisan command with no effect.
Change Your php version to 7.2
Related
Using NetBeans 8.2 with Laravel, I'm setting the _ide_helper.php to my project as described in his link https://github.com/barryvdh/laravel-ide-helper,
it was set on terminal the command
composer require barryvdh/laravel-ide-helper
then after, it was added into config/app.php the line
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
and for last, the command on the project folder
php artisan ide-helper:generate
but nothing has changed apparently. No auto complete, no references. Here are some images comparing what is expected and what is happening.
Expected
Happening
Plus, NetBeans is marking an error inside the ide_helper file which confuses the syntax by the name of the function ('if'). I'll put an image of the part showing the error
Error_NetBeans_ide_helper
I've rebooted NetBeans, tried downloading and setting directly the file, but no lucky. Is the function 'if' causing the problem? Or is NetBeans not accepting the _ide_helper?
I got this error message when I tried to make an alias for artisan: [Settings | Tools | Command Line Tool Support ] -> add -> tool based on Symfony Console.
Problem:
Failed to parse output as xml: Error on line 3: Content is not allowed
in prolog..
Command:
C:\xampp\php\php.exe C:\xampp\htdocs\artisan list --format=xml
Output:
[Symfony\Component\HttpKernel\Exception\NotFoundHttpException]
Even when I try artisan serve or composer install,
then [Symfony\Component\HttpKernel\Exception\NotFoundHttpException] bug is occured.
I don't find any solution for this.
I'm using Laravel 5.2 + Angular 1.
I had recently issues running artisan commands (ide-helper for example) directly in phpstorm, I'd recommend you to use your OS terminal instead. It might help you.
I have the following issue. I am running laravel 5.4 and have a problem with my routes, when I navigate to my '/about-me' of my predefined routes I get the error:
1/1 NotFoundHttpException in RouteCollection.php line 179:
However the route is defined as shows here:
Route::get('about-me', function () {
return view('about-me');
});
On my view the link is pointing to that route as shown:
About Me
I have cleared my cached routes in SSH using the command:
php artisan route:clear
When I list my routes using the command:
`php artisan route:list`
I see an old version of my routes file. So this is the problem, however whatever I try they are not updating. I have cleared the cache locally and within laravel and still the old file file is showing when I type the route:list command.
I believe the code is all correct, however the new updated route file which contains the defined route for about-me is not being used. I have attached an image of the updated routes file on the server also.
Here is a link to the screenshot. Screenshot of route file on server
Thanks
In Laravel 5.4 (or in earlier version, I'm not sure) routes has been moved to the separate folder in app/routes/web.php (as you can see here: https://github.com/laravel/laravel).
You can find routes registration in app/Providers/RouteServiceProvider.php (https://github.com/laravel/laravel/blob/master/app/Providers/RouteServiceProvider.php#L52)
My Laravel project folder was "laravel" so i changed to "testsite", but now i cant access the site.
InvalidArgumentException in FileViewFinder.php line 137: View [pages.home] not found.
ErrorException in Filesystem.php line 109: file_put_contents(C:\Users\Zen\Google Drive\xampp\laravel\storage\framework/sessions/4d5b7c28f025c192658893a77c2d6bdb60b33d48): failed to open stream: No such file or directory
Full error can be found here:
PasteBin
Its visible in the paste that is something related with sessions from the old folder "laravel".
Using Xampp with virtualhosts, restarted Xampp, cleared browser cache, it didint solved the issue.
How can i fix this issue?
Problem solved, has described here: Laravel 5.1 View not found
php artisan cache:clear
php artisan config:cache
You have an inconsistent path, take a look of how you're setting the slashes:
xampp\laravel\storage\framework/sessions/
Besides that, make sure that the framework/session folder exists
Also check that pages.home hierarchy exists in your views folder:
View [pages.home] not found
I installed laravel in my new pc and i'm getting this error:
ErrorException mcrypt_get_iv_size(): Module initialization failed
I copied the project from my old pc. mcrypt is installed and enabled, and other pages that do not use laravel are working. I'm running ubuntu 14.04
I created a new laravel project (using laravel new command) and when i try to access i get:
"Whoops, looks like something went wrong."
I opened the log and the error was:
production.ERROR: exception 'ErrorException' with message
'mcrypt_get_iv_size(): Module initialization failed
any ideas?
On app/config/app.php just change:
'cipher' => MCRYPT_RIJNDAEL_256,
Run php artisan key:generate on your command line to refresh your application key.
Then clear your cache and sessions and try again.
I had this same problem today, and it was because of how Laravel 4.2 uses the new encryption method.
Make sure you run php 7.0, and add this string "MCRYPT_RIJNDAEL_256" (without the quotes) to the cipher in app.php. after generate a new key (php artisan key:generate) and add the new key.
This works for me.
Another solution:
Add "tomgrohl/laravel4-php71-encrypter": "^1.1" to the require of your composer.json
Run composer update
Add 'AES-256-CBC' to the cipher in app/config/app.php
Done!