djpat99 Posted June 30, 2023 Share Posted June 30, 2023 (edited) As the title mentions - I can't upgrade any module at all. I have ensure the correct PHP version on the server, I have trawled internet searches and tried all suggestions without success. I can see others with the same issue with no solution. Tearing my hair out. I have tried both upgrading from the BO, and uploading new modules and neither work. When upgrading, the error message says: Cannot upgrade module "any module". Unfortunately, the module did not return additional details. Server logs show: AH01071: Got error 'PHP message: PHP Warning: Declaration of BWDisplay::setTemplate($template) should be compatible with FrontControllerCore::setTemplate($template, $params = Array, $locale = NULL) in /var/www/vhosts/gamer-tech.co.uk/httpdocs/modules/affinityitems/backward_compatibility/Display.php on line 30\n', referer: https://gamer-tech.co.uk/dan/index.php/improve/modules/manage?_token=YEuIIfnrztuIfiCu88EsI2_d0nfvPPYlw7LtbkbLQbI With debug mode on the BO, the error message when an update fails changes to: Exception thrown by module "any module" on upgrade. Warning: Declaration of BWDisplay::setTemplate($template) should be compatible with FrontControllerCore::setTemplate($template, $params = Array, $locale = NULL) Desperate for help on this Edited June 30, 2023 by djpat99 (see edit history) Link to comment Share on other sites More sharing options...
juanrojas Posted June 30, 2023 Share Posted June 30, 2023 Hello, surely there is a solution, but I'll give you another output in case it works for you, download the updated zip of your module, unzip it and upload it to the /modules folder, then go to BO and update Link to comment Share on other sites More sharing options...
djpat99 Posted June 30, 2023 Author Share Posted June 30, 2023 Thank you for the suggestion but it didn't work The error that came up said: Exception thrown by module ***** on upgrade. Class Core_Foundation_Database_EntityManager does not exist Link to comment Share on other sites More sharing options...
juanrojas Posted June 30, 2023 Share Posted June 30, 2023 report it to the module developer or reinstall the module or restart the module Link to comment Share on other sites More sharing options...
djpat99 Posted June 30, 2023 Author Share Posted June 30, 2023 2 hours ago, juanrojas said: report it to the module developer or reinstall the module or restart the module The problem is with all modules and new ones that won't install. This seems like a Prestashop problem rather than an individual module problem. Link to comment Share on other sites More sharing options...
Nickz Posted June 30, 2023 Share Posted June 30, 2023 It could be a permission error, some folder with the wrong settings could cause that. That shop comes from which version? A 1.7.xxxx or prior? 1 Link to comment Share on other sites More sharing options...
ps8modules Posted June 30, 2023 Share Posted June 30, 2023 (edited) It's not Prestashop's fault, but one specific module that uses an outdated setTemplate call. In some modules it is clearly written with which version of Prestashop it is compatible. If the developer specified that it is compatible up to "any" version, then the problem is on the side of the module developer. Find in problematic module: $this->ps_versions_compliancy = ['min' = ??? 'max' => _PS_VERSION_]; _PS_VERSION_ means that it is still compatible with your version of Prestashop, but in reality it is not true. Edited June 30, 2023 by ps8moduly.cz (see edit history) Link to comment Share on other sites More sharing options...
djpat99 Posted June 30, 2023 Author Share Posted June 30, 2023 24 minutes ago, Nickz said: It could be a permission error, some folder with the wrong settings could cause that. That shop comes from which version? A 1.7.xxxx or prior? It has been 1.7 for a while. It was working on 1.7.7.5 before but just stopped. The only thing I added since the last upgrade was the Prestashop Facebook module. I have uninstalled it in case that caused issues but hasn't helped at all. Link to comment Share on other sites More sharing options...
djpat99 Posted June 30, 2023 Author Share Posted June 30, 2023 (edited) 12 minutes ago, ps8moduly.cz said: It's not Prestashop's fault, but one specific module that uses an outdated setTemplate call. In some modules it is clearly written with which version of Prestashop it is compatible. If the developer specified that it is compatible up to "any" version, then the problem is on the side of the module developer. Find in problematic module: $this->ps_versions_compliancy = ['min' = ??? 'max' => _PS_VERSION_]; _PS_VERSION_ means that it is still compatible with your version of Prestashop, but in reality it is not true. Thank you, this is something to check then. So I will go through all the module files and see if I can find one that is not compatible. I can try searching using the code you have provided. Thank you for this. And I guess just one bad module could cause this error for all of them? Edited June 30, 2023 by djpat99 (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted June 30, 2023 Share Posted June 30, 2023 Yes, just one bad module will cause such a problem. The controller for the modules loads them all according to the basic function _construct ... 1 Link to comment Share on other sites More sharing options...
ps8modules Posted June 30, 2023 Share Posted June 30, 2023 According to the error, some of the older and incompatible modules contain $this-context->setTemplate or something similar. 1 Link to comment Share on other sites More sharing options...
ps8modules Posted June 30, 2023 Share Posted June 30, 2023 There may be more technical errors in an incompatible module. Sorry, but without the exact error I can't identify the problem 100%. It gave you a detailed error in debug mode and it would be good if you could post the full listing or screen of the error page here. 1 Link to comment Share on other sites More sharing options...
ps8modules Posted June 30, 2023 Share Posted June 30, 2023 In the error you provided us with: BWDisplay::setTemplate($template) should be compatible with .... Link to comment Share on other sites More sharing options...
ps8modules Posted June 30, 2023 Share Posted June 30, 2023 So it will be some module from BW... 1 Link to comment Share on other sites More sharing options...
juanrojas Posted June 30, 2023 Share Posted June 30, 2023 hace 11 minutos, ps8moduly.cz dijo: Así que será algún módulo de BW... In 1 single message you did not fit everything you wanted to say? you write every 3 minutes one after the other does not make sense and being in this thread prestashop notifies me every 3 minutes by email Link to comment Share on other sites More sharing options...
ps8modules Posted June 30, 2023 Share Posted June 30, 2023 (edited) You can unsubscribe. I write what comes to mind and I write about the topic. You have now contributed nothing as I have to your answer. And you still have to use a translator for that 🙂 Edited June 30, 2023 by ps8moduly.cz (see edit history) Link to comment Share on other sites More sharing options...
juanrojas Posted June 30, 2023 Share Posted June 30, 2023 control your mind a bit, this is not whatsapp so that you write every 3 minutes, it's boring and I don't see that every 3 minutes is a contribution that leads to a solution, they should put a captcha on you and from what I see it is your tendency to do this kind of thing, it would be nice if a forum administrator would rate this performance Link to comment Share on other sites More sharing options...
endriu107 Posted June 30, 2023 Share Posted June 30, 2023 If posting many times is only for increase counter to achieve higher rank in forum, users should be aware that we can low those users rank. Instead putting post by post in few seconds delay user should use "edit" post option. 1 1 Link to comment Share on other sites More sharing options...
djpat99 Posted July 1, 2023 Author Share Posted July 1, 2023 (edited) Thanks for the guidance so far. I am revisiting the issue now, and I am now getting a different error message when clicking upgrade on a module. It is: Exception thrown by module ps_checkout on upgrade. Class Core_Foundation_Database_EntityManager does not exist Edited July 1, 2023 by djpat99 (see edit history) Link to comment Share on other sites More sharing options...
djpat99 Posted July 1, 2023 Author Share Posted July 1, 2023 And now to make things worse for me, for some reason if I turn on debug mode, and turn it back off again, the checkout stops working. When clicking continue to checkout I get a 500 error. I'm rolling everything back now but feel like something is really broken. Link to comment Share on other sites More sharing options...
Nickz Posted July 1, 2023 Share Posted July 1, 2023 On 6/30/2023 at 9:00 AM, djpat99 said: It has been 1.7 for a while. It was working on 1.7.7.5 before but just stopped. That shop has history. Why don't you make it all new? Turn those happenings into a whole new renewal. For those occasions it's great to have a second shop as a doublette, run as double and you could just point the domain towards the double. 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