Jump to content

Error when I click modify customer info - ERROR: Could not load type "SwitchType": class does not exist..


Najam Sajid

Recommended Posts

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:

Screenshotfrom2024-09-2222-47-28.thumb.png.42b3e5c39b040938f7c331c6fd0a49e8.png


Kindly help if someone know the solution.

Thank you.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...