Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions regarding planned update #146

Open
ElephantTrail opened this issue Apr 15, 2020 · 5 comments
Open

Questions regarding planned update #146

ElephantTrail opened this issue Apr 15, 2020 · 5 comments

Comments

@ElephantTrail
Copy link

Hi,

I have three questions regarding a planned upgrade:

  1. It seems we are running Ariadne CMS 9.5 currently. Is it possible to do a direct upgrade to 10.0RC1, or is it necessary to do it step by step, f.e. 9.5 > 9.6 > 9.7 > 10RC1?

  2. What would you say is the optimal MySQL version for 10RC1?

  3. Out of curiosity: are you running 10RC1 with PHP 7.3 or 7.4 perhaps and is it working like it should?

Would like to hear, thanks in advance.

@poef
Copy link
Member

poef commented Apr 15, 2020

Hi, you can do a direct upgrade. The upgrade script will then run through all the upgrade steps, step by step. You can just press the 'next' button until all upgrades are done.

The optimal version of MySQL is probably the latest, or a recent MariaDB. Just make sure to unset all the strict mode options.

We're testing 10RC1 with php 7.1, 7.2, 7.3 and 7.4. Ariadne runs fine. However... there are quite a few changes in PHP that impact the code you've written yourself in PINP templates. Many of these will be automatically fixed in one of the upgrade steps, by recompiling the templates. However some changes can't be fixed like that and you'll have to do manually.
In our experience it wasn't that much, but it means that you should probably update a staging environment first and fix any PHP notices, warnings and errors that pop up before upgrading the live environment.

@ElephantTrail
Copy link
Author

Hi Poef,

Thanks! :) Another question: we updated to 10RC1 with no problem. After we install PHP 7.3, is it necessary to recompile the templates, since you said: 'Many of these will be automatically fixed in one of the upgrade steps, by recompiling the templates.'

If so, how do we manually recompile all templates?

Thanks

@poef
Copy link
Member

poef commented Jun 10, 2020

Hi,

I don't think the upgrade automatically recompiles all templates, but I could be wrong. You should do this yourself to make sure. Do this in a test setup first, because if you used deprecated PHP calls in your own templates, things will break. The recompile step will tell you which calls are no longer allowed though. To do this, follow these steps:

  • su to your web user (e.g. www-data)
  • cd ariadne/bin/
  • php ./recompile-templates.php

@ElephantTrail
Copy link
Author

Hi poef,

Thanks! Just did the upgrade with PHP 7.3. Question, got the following error:

Got error 'PHP message: PHP Fatal error: Cannot use 'object' as class name as it is reserved in ../public_html/ariadne/lib/configs/ariadne.phtml on line 11'

Which I fixed manually in the config file. All other templates where 'object' was renamed to 'baseObject', were already fixed during the 10RC1 upgrade, but the config file NOT. Why?

Thanks

@poef
Copy link
Member

poef commented Jun 24, 2020

The config file (ariadne.phtml) is not part of the distribution. You create it by copying either ariadne.phtml-unix or ariadne.phtml-win. These files were fixed. We can't fix your local configuration file :)
But its probably a good idea to mention this in the release notes...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants