babyewok Posted December 3, 2021 Share Posted December 3, 2021 OK so the 1-click upgrade kept throwing an error at the point of unzipping, so I did a manual update (so much for using the super quick option). When I ran the upgrade.php I got this error: error on line 215 at column 1: Extra content at the end of the document then I got a 500 error on the back office so I cleared the cache and all seems OK....but how do I know if they really are OK?! Version says it is 1.7.8.1....? Link to comment Share on other sites More sharing options...
pullidea-dev Posted December 3, 2021 Share Posted December 3, 2021 You can turn on debug mode and play around on your back office and front pages. Link to comment Share on other sites More sharing options...
El Patron Posted December 3, 2021 Share Posted December 3, 2021 I wish PS would remove admin notification new version available. Don't upgrade unless there is new feature you are after. Why put your hard work in jeopardy for needless upgrade. And never upgrade to major release .8 in this example, ps considers open source, community tested. Link to comment Share on other sites More sharing options...
babyewok Posted December 3, 2021 Author Share Posted December 3, 2021 Well it is a new site, yet to go live (but with too much set up to want to start from scratch). The server has recently switched to PHP 7.4 so I thought it wise to upgrade to a version that supports 7.4 rather than start with a site that is already running on a version of PHP that apparently isn't supported by 1.7.7.3! Link to comment Share on other sites More sharing options...
babyewok Posted December 3, 2021 Author Share Posted December 3, 2021 Plus I hadn't considered 1.7.8 as a major update from 1.7.7.3. I would consider upgrading from 1.7 to 1.8 to be major. Link to comment Share on other sites More sharing options...
babyewok Posted December 13, 2021 Author Share Posted December 13, 2021 OK, so does anyone have any idea how I can get this upgrade to run properly? Someone suggested I downgrade to php 7.3 for the upgrade and then change back to 7.4 afterwards as 1.7.7.3 is not compatible with 7.4. I need to get this to work, so suggestions are more helpful, than "don't bother upgrading". I just don't understand why upgrading Prestashop always has to be so painful! Totally different message from Wordpress where upgrading is generally a breeze! Link to comment Share on other sites More sharing options...
SmartDataSoft Posted December 13, 2021 Share Posted December 13, 2021 @babyewok It is good do use 7.3 while update as many issue my arries for compatibility of lower version of PrestaShop. Secondly , made a back up, it is good practice to copy the site in a sub domain and then update their and apply what necessary adjustment need. Then move it to live site. In cpanel sub domain wise php settings is possible. We all need to rise a hand to PrestaShop to made the update process more smooth , like other cms. They they don't distribute only those file is changes rather than full cms file. Thank you Link to comment Share on other sites More sharing options...
ComGrafPL Posted December 13, 2021 Share Posted December 13, 2021 53 minutes ago, babyewok said: OK, so does anyone have any idea how I can get this upgrade to run properly? Someone suggested I downgrade to php 7.3 for the upgrade and then change back to 7.4 afterwards as 1.7.7.3 is not compatible with 7.4. I need to get this to work, so suggestions are more helpful, than "don't bother upgrading". I just don't understand why upgrading Prestashop always has to be so painful! Totally different message from Wordpress where upgrading is generally a breeze! Do you have any products already? Remove all the non presta modules, switch to classic theme. Try with that. Best in my opinion is to install the newest version from scratch and import all products to new, clean version. Install modules you need. It safe option, so you daunt have any unexpected problems in the future. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted December 13, 2021 Share Posted December 13, 2021 1 hour ago, ComGrafPL said: Do you have any products already? Remove all the non presta modules, switch to classic theme. Try with that. Best in my opinion is to install the newest version from scratch and import all products to new, clean version. Install modules you need. It safe option, so you daunt have any unexpected problems in the future. Just to know your feedback. If user need to do this each new update of PrestaShop they will stop update the shop and keep in old version. For a running bussienss which has sale , product image it is pain full. Do you have any alternate idea. Thank you my friend. 1 Link to comment Share on other sites More sharing options...
babyewok Posted December 13, 2021 Author Share Posted December 13, 2021 26 minutes ago, SmartDataSoft said: Just to know your feedback. If user need to do this each new update of PrestaShop they will stop update the shop and keep in old version. For a running bussienss which has sale , product image it is pain full. Do you have any alternate idea. Thank you my friend. I agree - Prestashop really need to sort out these issue with upgrading! It is not good enough to release new versions for security fixes and latest php versions but at the same time have such a flawed upgrade process. Link to comment Share on other sites More sharing options...
babyewok Posted December 13, 2021 Author Share Posted December 13, 2021 1 hour ago, ComGrafPL said: Do you have any products already? Remove all the non presta modules, switch to classic theme. Try with that. Best in my opinion is to install the newest version from scratch and import all products to new, clean version. Install modules you need. It safe option, so you daunt have any unexpected problems in the future. I am dreading it, but this may be the only way that I will get peace of mind that everything is as it should be! Link to comment Share on other sites More sharing options...
ComGrafPL Posted December 13, 2021 Share Posted December 13, 2021 On my client store i did clean store on new theme, on new presta version. Test the modules and migrate all the products and data from old to new one. After check i transfer new store to old store domain. For now ( for me ) is best way if you need an upgrade. We did from 1.7.6.7. But we all have our opinions and ways to do it. Link to comment Share on other sites More sharing options...
babyewok Posted December 13, 2021 Author Share Posted December 13, 2021 How did you migrate? Did you use a module or do it manually? Link to comment Share on other sites More sharing options...
ComGrafPL Posted December 13, 2021 Share Posted December 13, 2021 7 minutes ago, babyewok said: How did you migrate? Did you use a module or do it manually? For me best module to the the job was https://addons.prestashop.com/pl/migracja-backup/32298-migration-40-better-upgrade-and-migrate-tool.html It do full migration. If you need to learn more about or how to use it. Let me know in private. Link to comment Share on other sites More sharing options...
babyewok Posted December 17, 2021 Author Share Posted December 17, 2021 OK, so latest in my last attempt to upgrade this rather start with a fresh install, I set upi on my local test server with php7.3 and got a 500 error on running upgrade.php, with this in the error log: [Fri Dec 17 14:17:26.694681 2021] [php7:error] [pid 15928:tid 2100] [client ::1:50813] PHP Fatal error: Uncaught Symfony\\Component\\Intl\\Exception\\MethodNotImplementedException: The Symfony\\Component\\Intl\\Locale\\Locale::setDefault() is not implemented. Please install the "intl" extension for full localization capabilities. in C:\\UniServerZ\\www\\wolf.localhost\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Intl\\Locale\\Locale.php:318\nStack trace:\n#0 C:\\UniServerZ\\www\\wolf.localhost\\classes\\Language.php(1789): Symfony\\Component\\Intl\\Locale\\Locale::setDefault('en-GB')\n#1 C:\\UniServerZ\\www\\wolf.localhost\\classes\\Language.php(1603): LanguageCore->getCountries('en-GB')\n#2 C:\\UniServerZ\\www\\wolf.localhost\\classes\\Language.php(1576): LanguageCore::updateMultilangFromCldr(Object(Language))\n#3 C:\\UniServerZ\\www\\wolf.localhost\\classes\\Language.php(1552): LanguageCore::updateMultilangTables(Object(Language), Array)\n#4 C:\\UniServerZ\\www\\wolf.localhost\\src\\PrestaShopBundle\\Install\\Upgrade.php(737): LanguageCore::updateMultilangTable('gb')\n#5 C:\\UniServerZ\\www\\wolf.localhost\\src\\PrestaShopBundle\\Install\\Upgrade.php(838): PrestaSho in C:\\UniServerZ\\www\\wolf.localhost\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Intl\\Locale\\Locale.php on line 318 any ideas? Link to comment Share on other sites More sharing options...
SmartDataSoft Posted December 17, 2021 Share Posted December 17, 2021 @babyewok "intl" extension. is a php extension you need to edit your local server php.ini and enable the extension and then restart the apache and then check again Thank you Link to comment Share on other sites More sharing options...
babyewok Posted December 17, 2021 Author Share Posted December 17, 2021 Aaaah ok will try it out. Thanks Link to comment Share on other sites More sharing options...
falken76 Posted January 1, 2022 Share Posted January 1, 2022 On 12/3/2021 at 1:47 PM, El Patron said: I wish PS would remove admin notification new version available. Don't upgrade unless there is new feature you are after. Why put your hard work in jeopardy for needless upgrade. And never upgrade to major release .8 in this example, ps considers open source, community tested. I just take a snapshot of my VM that is running the website before I do any changes. If the upgrade doesn't work, I just restore the snapshot. Link to comment Share on other sites More sharing options...
babyewok Posted January 10, 2022 Author Share Posted January 10, 2022 (edited) Hey, so I enabled the intl extension, reinstated the backed-up 1.7.7.3 database and now get this on running upgrade.php This page contains the following errors: error on line 215 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error. I can't copy and paste the rest so have attached a screenshot. The same error I got before, so nothing to do with PHP version! 😢 😢 😢 😢 losing the will.... Edited January 10, 2022 by babyewok (see edit history) Link to comment Share on other sites More sharing options...
babyewok Posted January 11, 2022 Author Share Posted January 11, 2022 Well, with the shop set up on php 7.3 on my test server I decided to try the 1-click update again..... and it worked! Yay! Wish I had just tried that again first time round rather than assuming it was a lost cause. Link to comment Share on other sites More sharing options...
babyewok Posted January 11, 2022 Author Share Posted January 11, 2022 May have spoken too soon! After initially being able to log into the back office, I went to General settings and now get a 500 error on all admin pages. Debug says: Attempted to call function "curl_init" from namespace "PrestaShop\Module\Ps_metrics\Presenter\Store\Context". 😭 Link to comment Share on other sites More sharing options...
babyewok Posted January 11, 2022 Author Share Posted January 11, 2022 Disabled PS_Metrics module and all OK now..... 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