GamerWipes Posted September 6 Share Posted September 6 I need to edit my customers so I can change what group they are in. When I click on the edit button it gives me this error message. I have no other errors or site issues other than this. Not sure what to check. Any help is really appreciated. PS 8.1.5 + PHP 8.1 Link to comment Share on other sites More sharing options...
imjulien.dev Posted September 6 Share Posted September 6 Hello, Do yo have any module to add fields in the customer form on your back office ? You can enable the debug mode to have more details about this error, I think a class is missing the use statement: use PrestaShopBundle\Form\Admin\Type\SwitchType; Link to comment Share on other sites More sharing options...
GamerWipes Posted September 6 Author Share Posted September 6 (edited) 24 minutes ago, imjulien.dev said: Hello, Do yo have any module to add fields in the customer form on your back office ? You can enable the debug mode to have more details about this error, I think a class is missing the use statement: use PrestaShopBundle\Form\Admin\Type\SwitchType; That message is from debug mode. The error message I get with debug mode off is similar but abbreviated. It looks like this And then there's the info bar at the bottom with a bunch of data but i dont really see anything related to this or know what to look for. I have an affiliate program module that adds fields to the customer page, but I disabled it temporarily and it didnt fix the problem. I don't have any other modules that affect customers other than the free/default stats modules. I disabled those as well and still am getting this same error. Anything else I should check? Edited September 6 by GamerWipes new info (see edit history) Link to comment Share on other sites More sharing options...
Najam Sajid Posted September 21 Share Posted September 21 On 9/6/2024 at 12:50 PM, GamerWipes said: That message is from debug mode. The error message I get with debug mode off is similar but abbreviated. It looks like this And then there's the info bar at the bottom with a bunch of data but i dont really see anything related to this or know what to look for. I have an affiliate program module that adds fields to the customer page, but I disabled it temporarily and it didnt fix the problem. I don't have any other modules that affect customers other than the free/default stats modules. I disabled those as well and still am getting this same error. Anything else I should check? Hello sir. Have you resolved the issue? if yes, kindly share the solution. I have the same problem Thank you Link to comment Share on other sites More sharing options...
GamerWipes Posted September 21 Author Share Posted September 21 1 minute ago, Najam Sajid said: Hello sir. Have you resolved the issue? if yes, kindly share the solution. I have the same problem Thank you No I still have the issue. Nobody has suggested a solution to try. I don't know what to check based on the error message. Everything else in the store is working fine. Link to comment Share on other sites More sharing options...
Najam Sajid Posted September 21 Share Posted September 21 1 minute ago, GamerWipes said: No I still have the issue. Nobody has suggested a solution to try. I don't know what to check based on the error message. Everything else in the store is working fine. Same here sir. It's really weird. Kindly share the solution if you get it. I will too. Thank You Link to comment Share on other sites More sharing options...
Andrei H Posted September 22 Share Posted September 22 Hello, Do you guys have the src/PrestaShopBundle/Form/Admin/Type/SwitchType.php file? If not, it might be worth a shot creating it. You can get the source code for it from the official PrestaShop repository. Link to comment Share on other sites More sharing options...
GamerWipes Posted September 22 Author Share Posted September 22 2 minutes ago, Andrei H said: Hello, Do you guys have the src/PrestaShopBundle/Form/Admin/Type/SwitchType.php file? If not, it might be worth a shot creating it. You can get the source code for it from the official PrestaShop repository. Yes I have that file. Is there anything I should look for in it? Is there a way to manually change the customer data via ftp somehow? or is it encrypted? i just need to change the customer group for them Link to comment Share on other sites More sharing options...
Najam Sajid Posted September 22 Share Posted September 22 2 minutes ago, Andrei H said: Hello, Do you guys have the src/PrestaShopBundle/Form/Admin/Type/SwitchType.php file? If not, it might be worth a shot creating it. You can get the source code for it from the official PrestaShop repository. Yes it is confirmed that SwitchType.php file exists in /src/PrestaShopBundle/Form/Admin/Type/SwitchType.php in my case. Link to comment Share on other sites More sharing options...
Andrei H Posted September 23 Share Posted September 23 Hello, If the class is in place, then there are most likely two possibilities: 1. As Julien mentioned above, somewhere there is a potential missing use statement (use PrestaShopBundle\Form\Admin\Type\SwitchType;) 2. There is a misconfiguration for Symfony DI in one of the modules. Do you guys have any Experimental Features enabled? - you can find this by going to Advanced Parameters - New & Experimental Features - these can also potentially cause issues You should also try accessing the customer edit page again, so that error is freshly thrown, then look in your server logs, as there might be a stack trace for the exact file that throws the error. One other thing you can try is disabling all third party modules, then check again. If it works, you can enable them one by one, to see which one actually causes this issue. You should try this in a preprod environment. On a second note, you can change the customer group directly into the database, via SQL. The table that holds this information is called `ps_customer_group`. Nonetheless, you should also fix the issue. Link to comment Share on other sites More sharing options...
GamerWipes Posted September 23 Author Share Posted September 23 4 hours ago, Andrei H said: Hello, If the class is in place, then there are most likely two possibilities: 1. As Julien mentioned above, somewhere there is a potential missing use statement (use PrestaShopBundle\Form\Admin\Type\SwitchType;) 2. There is a misconfiguration for Symfony DI in one of the modules. Do you guys have any Experimental Features enabled? - you can find this by going to Advanced Parameters - New & Experimental Features - these can also potentially cause issues You should also try accessing the customer edit page again, so that error is freshly thrown, then look in your server logs, as there might be a stack trace for the exact file that throws the error. One other thing you can try is disabling all third party modules, then check again. If it works, you can enable them one by one, to see which one actually causes this issue. You should try this in a preprod environment. On a second note, you can change the customer group directly into the database, via SQL. The table that holds this information is called `ps_customer_group`. Nonetheless, you should also fix the issue. Thanks for all the info, to answer your questions... I do not have any experimental features enabled. I did months ago but it was causing me issues so i disabled them all. i personally have had this issue for months and have not been able to solve it. i had disabled all third party modules and still had the issue. since then they have been reenabled. when i first started using prestashop about 6 months ago. i installed a lot of modules to our site, testing them out and ended up deleting most of them. i still think one of them messed with my files. nothing i have done since then has been able to fix it. even updating prestashop versions hoping it would overwrite the bad files. i have no idea what to check changing them via SQL would work for now, but im not to knowledgeable on that, so id have to know the location of the file itself to edit. default theme 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