TwinkleEye Posted October 9, 2021 Share Posted October 9, 2021 (edited) Hi, I'm using Prestashop 1-Click Upgrade my Prestashop is currently on a 1.7.7.8 version (tried both with PHP 7.4 as well as 7.3) getting the same fatal error: [INTERNAL] /xxxxxxxx/public_html/override/classes/Product.php line 39 - Declaration of Product::getFieldsToUpdate() must be compatible with ObjectModelCore::getFieldsToUpdate(): ?array Anyone who have seen this ? Database MariaDB 10.4 best, Lasse Edited October 11, 2021 by TwinkleEye (see edit history) Link to comment Share on other sites More sharing options...
Crezzur.com Posted October 17, 2021 Share Posted October 17, 2021 Your override is not compatible. Open the overrided class to see which module is causing the issue and update it Link to comment Share on other sites More sharing options...
TwinkleEye Posted October 17, 2021 Author Share Posted October 17, 2021 Hi Crezzur - In the override - I have Classes, Controllers and modules - where do I look to have a direct navigation - Under modules - there is only php file ps.emailsubscription Thank you very much for your reply. all modules in my prestashop is up to date /Best, Lasse Link to comment Share on other sites More sharing options...
Crezzur.com Posted October 17, 2021 Share Posted October 17, 2021 Like the error state: public_html/override/classes/Product.php line 39 Decleration of Product::getFieldsToUpdate() is not compatible with new PS version Link to comment Share on other sites More sharing options...
TwinkleEye Posted October 17, 2021 Author Share Posted October 17, 2021 Hi Crezzur Thank you for your quick supply I have attached the file here although it is not clear to me what the module is unless it is the pagecache?? Product.php Link to comment Share on other sites More sharing options...
musicmaster Posted October 17, 2021 Share Posted October 17, 2021 Is it really too much work to look into the file - as Crezzur asked? Link to comment Share on other sites More sharing options...
TwinkleEye Posted October 17, 2021 Author Share Posted October 17, 2021 Hi Musicmaster, As I wrote I did not see a module unless it was the pagecache - sorry if I was not precise. Again - I thought the pagecache was built into Prestasshop and not somehting which could be either disabled or updated seperately - But based on what you indicate Im surely worng? I would be happy if you could share some light on this? Thank you /Lasse Link to comment Share on other sites More sharing options...
TwinkleEye Posted October 17, 2021 Author Share Posted October 17, 2021 Hi again, Or if this is still valid I could try this? *prestashop_directory*/html/app/config/parameters.php 'ps_cache_enable' You want to set the value to false, like this: 'ps_cache_enable' => false Link to comment Share on other sites More sharing options...
TwinkleEye Posted October 17, 2021 Author Share Posted October 17, 2021 and the current setting is : 'ps_cache_enable' => false, Link to comment Share on other sites More sharing options...
Crezzur.com Posted October 17, 2021 Share Posted October 17, 2021 Our you update pagecache our you remove it. Its not a default module of Prestashop Link to comment Share on other sites More sharing options...
TwinkleEye Posted October 17, 2021 Author Share Posted October 17, 2021 Thank you Crezzur and Im sorry for my incompetence - but how do I remove it - I cant seem to find it in the module list in the GUI - Im ononly having this: /applications/upqgguyrzr/public_html/modules/pagecache_old again thank you very much /LAsse Link to comment Share on other sites More sharing options...
Crezzur.com Posted October 17, 2021 Share Posted October 17, 2021 We all where in a point in life where you need to learn something. Just try to read the errors, this will help you to bypass some steps. The module name pagecache_old is invalid and is forsure a leftover. You can remove it without issues. The next step is to check your override files for leftovers from pagecache, manually remove them and upload them again to your server. These leftover where not correctly deleted upon removal of the module. If there is only code from pagecache inside the override file you can remove the whole file. Ofcourse you make a backup before starting to play with the code lines. We can do this task also for you if you want you can pm us our send and email to [email protected] Link to comment Share on other sites More sharing options...
TwinkleEye Posted October 19, 2021 Author Share Posted October 19, 2021 Hi all, removing the pagecache and associated files did the trick. Now on 1.7.8 - NExt step upgrading the Theme - Thank you all for the great support and ofcourse JPRESTA for looking into this. /Lasse 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