GA4 1.12.5 cannot complete setup:upgrade
M 2.3.7-p4, using correct installation files for WeltPixel\GA4
GA4 1.12.5 cannot be installed. Previous version installed correctly.
With setup:upgrade, I get a Type Error
main.CRITICAL: Type Error occurred when creating object: WeltPixel\GA4\Model\ServerSide\JsonBuilder, Too few arguments to function WeltPixel\GA4\Model\ServerSide\JsonBuilder::__construct(), 4 passed in
What is the solution?
-
Official comment
If you're seeing errors when running a setup:upgrade command, it's most likely because the instance is using old data from the generated folder in the root of the the Magento 2 project.
The solution is to place the store in developer mode with the php bin/magento deploy:mode:set developer command (even if you're already in developer mode) as this will clear the generated folder. Afterwards, just run php bin/magento setup:upgrade again.
Comment actions
Please sign in to leave a comment.

Comments
2 comments