ElkArte Community

Project Support => Support => Topic started by: Zioclive on October 16, 2018, 05:19:12 am

Title: Php 7.2
Post by: Zioclive on October 16, 2018, 05:19:12 am
Hi everyone I'm going to migrate My forum from Smf 2.0.15 to Elkarte.
My hosting service is going to offer only php 7.2.
Does elkarte forum run on that php's Version?

Please when configuring elkarte there's something similar to the Smf's repair_settings. php?

Thanks everyone for supporting.  :)
Title: Re: Php 7.2
Post by: inter on October 16, 2018, 06:40:28 am
2) https://tools.elkarte.net/2014/12/repair_settings
Title: Re: Php 7.2
Post by: radu81 on October 16, 2018, 07:44:01 am
Hello and welcome to elkarte!
I am using elkarte 1.1.5 with PHP 7.2 and there other users with the same php version. I see some errors in Elkarte log, but after all is working fine.
Title: Re: Php 7.2
Post by: Zioclive on October 16, 2018, 10:15:14 am
Many thanks  ;)

Now it's time to begin...
Title: Re: Php 7.2
Post by: badmonkey on October 18, 2018, 10:42:38 pm
Going out on a limb here. Made to leap to php7.3. So far, so good.  8)
Title: Re: Php 7.2
Post by: ahrasis on October 21, 2018, 03:31:53 am
Awesome @badmonkey. I noticed it was out but still haven't got a chance to install and try it out.
Title: Re: Php 7.2
Post by: ahrasis on October 27, 2018, 10:07:18 am
Just found some free time to install php7.3 RC4. I am now testing EA 1.1 on it and so far so good.
Title: Re: Php 7.2
Post by: Zioclive on November 04, 2018, 03:41:48 am
Just passed to php 7.1.19 and I've got this error:
Parse error: syntax error, unexpected 'presto' (T_STRING) in /customers/e/6/c/hawkfriend.it/httpd.www/forum/Settings.php on line 40

Please help needed
(elkarte 1.1.5)
Title: Re: Php 7.2
Post by: tino on November 04, 2018, 04:48:42 am
What is on line 40? I would guess something isn’t closed correctly as it works ok for me on 7.1.19
Title: Re: Php 7.2
Post by: ahrasis on November 04, 2018, 07:16:29 am
I don't its EA problem or error but your own manual settings in Settings.php. Post the lines (10 above and below) here if you want us to help. Hide your database, username, password when sharing its content.

Plus, I think php7.1 will come to end of life (http://php.net/supported-versions.php) this 3rd December, right? So, may be its time to upgrade to php 7.2.
Title: Re: Php 7.2
Post by: Zioclive on November 04, 2018, 08:05:26 am
I've looked up the settings.php and at line  40 there was :

$mmessage = 'Cari Hawkfriend stiamo aggiornando alcuni software. Saremo  di nuovo online tra qualche ora.
A presto.';
A presto.';

The second A presto.';  ( see you soon) shouldn't bee there .

Deleted now seems everything is working ok.

Thank you very mach guys for supporting and  helping.

Now moving forward on 7.2...

update: now I'm using php 7.2.7 everything is fine.
 
Title: Re: Php 7.2
Post by: tino on November 04, 2018, 11:41:41 am
Quote from: ahrasis – I don't its EA problem or error but your own manual settings in Settings.php. Post the lines (10 above and below) here if you want us to help. Hide your database, username, password when sharing its content.

Plus, I think php7.1 will come to end of life (http://php.net/supported-versions.php) this 3rd December, right? So, may be its time to upgrade to php 7.2.

PHP 7.0 is EOL this year PHP 7.1 is EOL next December.

http://php.net/supported-versions.php
Title: Re: Php 7.2
Post by: emanuele on November 04, 2018, 04:35:06 pm
I think it's a bug in Elk, I noticed it recently (and fixed in dev because I thought it was related to it, but apparently not): if there is a "new line" in the maintenance text, when writing the settings to the file the last line (or at least "some lines") is written twice generating a broken file.

/me tracks it
Title: Re: Php 7.2
Post by: ahrasis on November 05, 2018, 06:32:09 am
Sorry, I supposed I think it was php7.1 but I did provide a link for it source and verification.  ;)