Kristian Bowler Posted April 23, 2020 Share Posted April 23, 2020 (edited) Hi everyone!! I went to update a new module yesterday and the update failed. Since then and to my surprise I cannot access the module manager area at all and I get thrown the following: Quote The server returned a "500 Internal Server Error". Upon starting debug mode and heading to the module page I get: Quote ClassNotFoundException HTTP 500 Internal Server Error Attempted to load class "FormModifier" from namespace "PrestaShop\Module\FacetedSearch\Form\Feature". Did you forget a "use" statement for "PrestaShop\Module\FacetedSearch\Form\Feature\FormModifier"? in modules/ps_facetedsearch/src/Hook/Feature.php (line 53) with the following result Quote public function __construct(Ps_Facetedsearch $module) { parent::__construct($module); $this->formModifier = new FormModifier($module->getContext()); $this->dataProvider = new FormDataProvider($module->getDatabase()); } const AVAILABLE_HOOKS = [ 'actionFeatureSave', Anyone have any ideas? Any help would be much appreciated! Thanks Y'all Edited April 23, 2020 by Kristian Bowler (see edit history) Link to comment Share on other sites More sharing options...
idnovate.com Posted April 23, 2020 Share Posted April 23, 2020 Which is your PS version? Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 23, 2020 Author Share Posted April 23, 2020 3 hours ago, idnovate.com said: Which is your PS version? Hi! I'm using the latest PS version on PHP 7.2! Thanks Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 23, 2020 Author Share Posted April 23, 2020 Anyone? I can't make any further progress till this is resolved Link to comment Share on other sites More sharing options...
idnovate.com Posted April 23, 2020 Share Posted April 23, 2020 Do you have use PrestaShop\Module\FacetedSearch\Form\Feature\FormModifier; at the beginning of /modules/ps_facetedsearch/src/Hook/Feature.php? Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 23, 2020 Author Share Posted April 23, 2020 3 hours ago, idnovate.com said: Do you have use PrestaShop\Module\FacetedSearch\Form\Feature\FormModifier; at the beginning of /modules/ps_facetedsearch/src/Hook/Feature.php? Thanks for your reply. I do indeed have that at the start. I'm totally lost myself! Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 23, 2020 Author Share Posted April 23, 2020 Unsure if this helps at all Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 24, 2020 Author Share Posted April 24, 2020 Just to add if I rename PS_faccatedsearch to something else I can re-gain access to my modules manager! however I still need this fixing as I require this search feature! Thanks Link to comment Share on other sites More sharing options...
MattWithCurls Posted April 24, 2020 Share Posted April 24, 2020 1 hour ago, Kristian Bowler said: Unsure if this helps at all 1 hour ago, Kristian Bowler said: Unsure if this helps at all Hi Kristian For the php exception error you have to open up that Feature.php file and edit it so first check if you're importing the class at the top of the script. For example (use Your/Class/Here). Link to comment Share on other sites More sharing options...
Kristian Bowler Posted April 24, 2020 Author Share Posted April 24, 2020 (edited) *******FIXED****** For anyone wondering or reading this I have managed to fix this. I got this error because I clicked "update" on the modules page and then my modules manager section of BO crashed. I renamed /modules/ps_facetedsearch to something random like "ps_facetedsearchOLD" and re-uploaded this file via FTP: Quote https://github.com/PrestaShop/ps_facetedsearch/releases/tag/v3.0.5 Once uploaded faceted search should show up in your modules list again but requiring an update. Click "update" (I know risky right lol) and this time it should complete successfully. Voila! All fixed Edited April 24, 2020 by Kristian Bowler (see edit history) 1 Link to comment Share on other sites More sharing options...
MattWithCurls Posted April 24, 2020 Share Posted April 24, 2020 Is it your e-commerce website you setting up. 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