After update from laravel 7 to version 8 all test failing with same error:
Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 1 no such index: IDX_426EF39216FE72E1 (SQL: DROP INDEX IDX_426EF39216FE72E1)
I am also using legacy-factories package for old factories approach
I finally solve this problem using laravel shift because there is lot of things to be done after upgrade and list in my case is huge because I use custom namespace and I must handle that in AppServiceProvider. Shift also refactor all of mine factories that I have
Related
I didn't change any backend code .I dont know it triggers when I hit any url of laravel app it will show this error.I dont know why this happend and also need solution for this .My laravel version in 5.8 and php 7.2
Fatal error : Class Illuminate\Routing\RouteCollection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods C:\xampp\htdocs\pmf\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php on line 14 this is file it is saying.
Reinstall or update composer wont solve the problem. In my case, you just need to restart the local development server, because the problem is just temporary.
Just need to restart the local development server.
I`m new to Larvel Aimeos. I have used the following command to setup Aimeos.
composer create-project aimeos/aimeos myshop
But I`m stuck on the following issue while installing the same.
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-pr
oduct-custom-8' for key 'unq_msattr_sid_dom_cod_tid'
Any ideas on how to fix this?
There was a problem with the duplicate custom price attribute when installing the demo data. This has been fixed in a new Aimeos core release yesterday, so please try again
I think you are using this project https://github.com/aimeos/aimeos-laravel
So if you wanna to install the same project again you should create a new database to connect within your config/database.php file.
Or don't install the dummy data php artisan aimeos:setup --option=setup/default/demo:1 that the project required because it's already created.
We started using Dusk but have existing test suites that use Browserkit. Because Browserkit testing is faster than using Dusk, we do not want to convert our existing test suites.
However, when using both Dusk and Browserkit testcases in the same run, the Dusk tests fail with an error:
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1
no such table: users (SQL: select * from "users" where "users"."id" =
1 and "users"."deleted_at" is null limit 1)
When we run them alone, Dusk test cases work.
I realize it's related to the setup of the tests but have not succeeded in either reusing the DB setup/connection or resetting properly in the BaseTestCase, and I haven't seen traces of people doing it. I'm pretty sure it can be done but how not to "break" laravel phpunit testing?
Thx
You could use
trait DatabaseMigration
I am trying to migrate back to a previous step, I have accidentally deleted my current migration step '56'. When I run
php symfony doctrine:migrate 51
As expected, it throws an error "Could not find migration class for migration step: 56" -- this is due to me deleting the migration 56 class
What is the solution to roll back to the previous step "51", without having the current class already there
I am using an older version of symfony v 1.2
I fixed this issue by accessing the localhost/phpmyadmin and locating the table called 'migration version'
I ran a quick update query, and change the value to '51'
As follows
UPDATE `migration_version` SET `version`=51 WHERE 1
I hope this helps people in the future
im trying to use pay paypal sdk in laravel 4 then it shows an error like this "Class 'PayPal\Rest\ApiContext' not found in laravel 4"
I think you haven't included the requirements in your composer.json or in your service-providers. Maybe that helps:
http://jslim.net/blog/2014/09/19/integrate-paypal-sdk-into-laravel-4/