I'm working for the first time in laravel while setting up the already developed project in my local computer and running php artisan serve i'm getting this error
In ProviderRepository.php line 208:
Class 'Laravelium\Sitemap\SitemapServiceProvider' not found
Issue is resolved by just follow these step. Go to your project > bootstrap->cache->config.php remove the provider and aliases from the cached array manually.
I'm trying to use the laravel 5.7 bootstrap4 preset, but have problems using it.
Do you guys know why I see this error? Why is the file missing? I have not changed the path to anything.
kgp43:~/workspace (master) $ php artisan preset bootstrap
In Bootstrap.php line 41:
copy(/home/ubuntu/workspace/resources/sass/_variables.scss): failed to open stream: No such file or directory
I found the error.
All folders in the Assets directory has to be moved up one level.
It should not be needed to move the content of the Assets folder (accoring to laravel - but it was for me to run the preset command.
https://laravel.com/docs/5.7/upgrade
I'm a newbie in Laravel World. I've downloaded a project from gitlab.com and tried several time to run that project in my laptop.
In that project I've 6 migration files:
users_table
password_resets
posts_table
comments_table
profiles_table
categories_table
When executing php artisan db:seed command I'm getting the following error:
C:\xampp\htdocs\photoblog-master\photoblog-master>php artisan db:seed
Seeding: UserTableSeeder
[ErrorException]
unlink(C:\xampp\htdocs\photoblog-master\photoblog-master\public\uploads/user-picture\61224db90375756038856cd51e1c48a7.jpg): Resource temporarily unavailable
Would you please tell me how can I solve this error?
Is the file C:\xampp\htdocs\photoblog-master\photoblog-master\public\uploads/user-picture\61224db90375756038856cd51e1c48a7.jpg in use?
I have a similar issue when I opened a file and tried to delete it without fclose it first.
I' upload the project from localhost to my dedicated server and after so many problems, finally some pages works domain.com | domain.com/home | domain.com/allsites etc..
But now, the routes "domain.com/site/create"
"domain.com/site/ID/manage", "domain.com/site/ID/edit" not found, i get this error, why?
InvalidArgumentException in FileViewFinder.php line 137: View [Site.create] not found.
in FileViewFinder.php line 137 at
FileViewFinder->findInPaths('Site.create',
array('/....../resources/views')) in FileViewFinder.php line 79 at
FileViewFinder->find('Site.create') in Factory.php line 151
I try artisan comands: cache:clear, route:clear, config:clear, config:cache and nothings works, i don't know where is the problem!
On localhost it works perfectly
also multiple times its found that config cache being problem. Use following commands to finetune them.
php artisan config:cache
php artisan config:clear
If your local OS is different from your production server OS you might be running into a case-sensitive issue and the file is not being found. make sure your files names are EXACTLY the same, case and all. This can happen especially if one environment is Mac and the other is Linux.
If the issue is not fixed, please go through the following link. It may help you
Laravel 5 - View [home] not found
Laravel 5.1 View not found
Laravel 5 InvalidArgumentException in FileViewFinder.php line 137: View [.admin] not found
I had same issue but cause was different. For me the problem was permissions on errors folder. In particular the folder was not executable.
To resolve on linux:
$ chmod +x ../views/errors
Try one of these commands:
php artisan dump-autoload or composer dump-autoload
check you passed argument are in database fields or not!
$mailData = array(
'type' => 'email_subscription',
'user_mail' => $obj->email_id
);
Mail::to($request->input('email'))->send(new SendMail($mailData));
I've found this page :
https://gist.github.com/rtconner/40b415073378da28b2bf
where it's shown a Service provider to be added in L5 in order to manage sftp connection driver in filesystem configs. Which is supposed to solve a issue.
Anyway once I executed via console:
php artisan make:provider SftpServiceProvider
And edited the SftpServiceProvider class as shown in the above webpage.
I went to config/app.php to add
'providers' => [
...
'App\Providers\SftpServiceProvider',
...
]
I tried a
composer dump-autoload --optimize (with and without the option)
But always I get a error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'App\Providers\SftpServiceProvider' not found
In fact, I cannot see in my vendor/composer/autoload_classmap.php
the line addressing to SftpServiceProvider
Also executing a
composer update #will not be ok.
Again the errors:
- Script php artisan clear-compiled handling the post-update-cmd event returned with an error
- [RuntimeException] Error Output: PHP Fatal error: Class 'App\Providers\SftpServiceProvider' not found
What do I miss in the ServiceProvider creation procedure?
Thanks