-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error migration m201207_124200_add_product_types_to_sitemap::dropCheck() #486
Comments
I wouldn't absolutely rely on this but what if you change the access modifier on the method "dropCheck" to public instead of it being protected? |
Thanks for your help :) Yes, if I pass the method in public, I get this error :
This method exists in the parent class with the required parameters. I don't understand.
|
Does anyone have any ideas on how I can continue upgrading? :) |
@gmonseur My team ended up running into this same issue. We had to get into the m201207_124200_add_product_types_to_sitemap.php file and made it compatible with the Yii dropCheck function by adding the needed parameters and adjusting the function calls to use those parameters. So our m201207_124200_add_product_types_to_sitemap.php file ended up looking like:
Running the updated migration with a fresh database fixed the issue. |
Hi everyone,
Description
I get this error when upgrading from craft 3 to 4 with seo 4.0 plugin.
Can you help me please ?
Steps to reproduce
requires
craftcms/cms ^4.0 (4.12.5)
ether/seo 4.0.0 (4.0.0)
composer install (Composer version 2.5.2 2023-02-04 14:33:22)
Additional info
"clubstudioltd/craft-asset-rev": "^7.0",
"craftcms/cms": "^4.0",
"craftcms/contact-form": "^3.1.0",
"craftcms/contact-form-honeypot": "^2.1.0",
"craftcms/redactor": "^3.0",
"ether/seo": "4.0.0",
"la-haute-societe/craft-google-tag-manager": "^2.0",
"nystudio107/craft-imageoptimize": "^4.0",
"nystudio107/craft-minify": "^4.0",
"nystudio107/craft-templatecomments": "^4.0",
"topshelfcraft/environment-label": "^4.0",
"verbb/navigation": "^2.0",
"verbb/super-table": "^3.0",
"vlucas/phpdotenv": "5.4.0",
"wbrowar/craft-admin-bar": "^3.0.3",
"wrav/oembed": "^3.1.1"
The text was updated successfully, but these errors were encountered: