Since1953 Posted March 22, 2013 Share Posted March 22, 2013 I just uninstalled and tried to reinstall a module Prestablog and this is the error I'm getting. Anyone know a way around this? The following module(s) were not installed properly: - prestablog : Unable to install override: The method loadRoutes in the class Dispatcher is already overriden. Link to comment Share on other sites More sharing options...
Dh42 Posted March 23, 2013 Share Posted March 23, 2013 What version of Prestashop are you using? Also what module are you using that already has an override, they are more than likely conflicting. 1 Link to comment Share on other sites More sharing options...
vekia Posted March 23, 2013 Share Posted March 23, 2013 i think that this error occur because... this override already exists. You should try to delete this override from /override/ directory in your root prestashop folder and then try to install it once again Link to comment Share on other sites More sharing options...
Dh42 Posted March 23, 2013 Share Posted March 23, 2013 If he is running 1.5.x that won't work if the module is using automatic overrides. It will just recreate it at runtime won't it? Link to comment Share on other sites More sharing options...
vekia Posted March 23, 2013 Share Posted March 23, 2013 not exactly, i don't know how it exactly works - sometimes i must delete old override, without that new one won't work. I'd have to examine carefully the code that he use (and code of new override feature) 1 Link to comment Share on other sites More sharing options...
Since1953 Posted March 25, 2013 Author Share Posted March 25, 2013 Thank you for the responses. I'm running 1.5.0.17 and had this all working but I've been doing some FTP back and forth because the upgrade to 1.5.3 didn't work properly. What files in /override/ should be deleted? The module is Prestablog, but I don't see and files with a name close to that. Link to comment Share on other sites More sharing options...
Paul C Posted March 26, 2013 Share Posted March 26, 2013 If you manually remove the function "loadRoutes" from the Dispatcher class definition in /override/classes/Dispatcher.php that should get you back to where you would have been if the module had uninstalled properly (unless it overrides any other functions in there in which case you'll need to keep removing the function it complains about until it doesn't complain anymore!). If no other module has overrides in there - and you haven't added any manually, then you should also be able to just delete the file /override/classes/Dispatcher.php and the install should use the copy from the module's override/classes directory when you install it. Link to comment Share on other sites More sharing options...
Since1953 Posted March 26, 2013 Author Share Posted March 26, 2013 I think some of my files became corrupted in the process of moving things back and forth. I'm running a test server at 1.5.3 that isn't having any issues with this. Thank you for all the input! Link to comment Share on other sites More sharing options...
meccabooks Posted December 1, 2013 Share Posted December 1, 2013 I am getting below error when I am trying to install below module - ILLICOPRESTA_P15_StockManagement : Unable to install override: The method getAllProductSupplierPrice in the class ProductSupplier is already overriden. Urgent help will be appreciated.. this is my code in the file ProductSupplier.php <?php class ProductSupplier extends ProductSupplierCore { public static function getAllProductSupplierPrice($id_product, $id_product_attribute, $with_currency = false) { // build query $query = new DbQuery(); $query->select('ps.product_supplier_price_te, s.name as supplier_name'); if ($with_currency) $query->select('ps.id_currency'); $query->from('product_supplier', 'ps'); $query->where('ps.id_product = '.(int)$id_product.' AND ps.id_product_attribute = '.(int)$id_product_attribute ); $query->leftJoin('supplier', 's', 'ps.id_supplier = s.id_supplier'); if (!$with_currency) return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query); } } Link to comment Share on other sites More sharing options...
vekia Posted December 1, 2013 Share Posted December 1, 2013 communicate you see means that override of this file already exists in your store. moreover, it looks like you use paid module from ILLICOPRESTA, why not to ask module developer first? Link to comment Share on other sites More sharing options...
meccabooks Posted December 1, 2013 Share Posted December 1, 2013 I did email yesterday, however no response yet.. however I need the solution as I have to update qty's before tonight as I have a sale coming up Link to comment Share on other sites More sharing options...
vekia Posted December 1, 2013 Share Posted December 1, 2013 open overrides directory and check if there is override of ProductSupplier class /overrides/classes/ProductSupplier.php inside class there, paste code from module override (/modules/ILLICOPRESTAMODULE_I_DONT_KNOW_NAME/overrides/classes/) this is all what i can do in this case, due to the fact that i don't have enough information about this addon. and in my opinion, they should help you if you paid them for this addon Link to comment Share on other sites More sharing options...
Dh42 Posted December 1, 2013 Share Posted December 1, 2013 You can email me your login information and I will merge the override for you. Link to comment Share on other sites More sharing options...
meccabooks Posted December 1, 2013 Share Posted December 1, 2013 You can email me your login information and I will merge the override for you. Just emailed you the info.. thanks a lot for your help Link to comment Share on other sites More sharing options...
tuk66 Posted December 5, 2013 Share Posted December 5, 2013 Rename Dispatcher.php in the override/classes directory, install your module, look for differencies in both "Dispatcher" files and manually join both files. Link to comment Share on other sites More sharing options...
hkao Posted May 24, 2014 Share Posted May 24, 2014 What version of Prestashop are you using? Also what module are you using that already has an override, they are more than likely conflicting. Link to comment Share on other sites More sharing options...
hkao Posted May 24, 2014 Share Posted May 24, 2014 Hello, I have installed the Search Term module successfully on local host, when I try to install on the web site, I got an issue of override dispatcher, I even replace the dispatcher comes with the module, and reset the promission to 777. Just won't work. Any help from you? Thanks in advanced Link to comment Share on other sites More sharing options...
vekia Posted May 24, 2014 Share Posted May 24, 2014 I got an issue of override dispatcher, what kind of issue you've got? any error code available? Link to comment Share on other sites More sharing options...
GrandeLupo Posted March 20, 2018 Share Posted March 20, 2018 HEPL ME PLEASE!!! Il modulo seguente (s) non sono stati installati con successo: - recaptcha : Impossibile installare l'override: Il metodo preProcess nella classe AuthController è già sovrascritto. Unable to install override: The method loadRoutes in the class Dispatcher is already overriden. PrestaShop™ 1.5.4.1 Link to comment Share on other sites More sharing options...
shobhitverma Posted January 30, 2019 Share Posted January 30, 2019 my problem got fixed by deleting class_index.php 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