Najam Sajid Posted September 22 Share Posted September 22 Hello Everyone, need help! I have an issue with editing customer info. When I click modify for any customer it show this error and redirect me to customer list and I am unable to modify the customer info. Error: Une erreur inattendue s'est produite. [Symfony\Component\Form\Exception\InvalidArgumentException code 0] : Could not load type "SwitchType": class does not exist.. Debug mode is on. Prestashop 8.1.7 (Upgraded from 1.7.7.8 using 1-click upgrade) PHP 7.4 The SwitchType.php file does exist in /src/PrestaShopBundle/Form/Admin/Type/SwitchType.php directory. No clue from the inspect->Network or console Error screenshot: Kindly help if someone know the solution. Thank you. Link to comment Share on other sites More sharing options...
ComGrafPL Posted September 22 Share Posted September 22 Have you tried to switch to PHP 8.0 / 8.1? Link to comment Share on other sites More sharing options...
Najam Sajid Posted September 22 Author Share Posted September 22 1 hour ago, ComGrafPL said: Have you tried to switch to PHP 8.0 / 8.1? Thanks for responding. Yes, I have tried both PHP 8.0 and 8.1. The problem still exists. Link to comment Share on other sites More sharing options...
Najam Sajid Posted September 27 Author Share Posted September 27 Still waiting for response if anyone know how to fix it! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now