Page 1 of 1

PHP 7.1.8 and 1&1

Posted: Mon Aug 21, 2017 3:01 pm
by Zedekia
Hello Jachym and the other member,

I would like to post my problem in your new forum, maybe someone has the same problem in the future.

My new hoster is 1&1 and the PHP-Version is 7.1.8

As soon as I have registered in the admin area .../admin/login.php and I've entered my pwd., it does not go on and the website remains with ... / admin / authorize.php.
Jachym told me, I should temp. modify the config.php with add the line

error_reporting(E_ALL);ini_set('display_errors', 'On');

The result are the following error-messages:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; moonPhase has a deprecated constructor in /homepages/9/d694096150/htdocs/zedekia/wetter/mt/template/scripts/functions.php on line 2169

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /homepages/9/d694096150/htdocs/zedekia/wetter/mt/template/scripts/functions.php:2169) in /homepages/9/d694096150/htdocs/zedekia/wetter/mt/template/admin/authorize.php on line 41

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /homepages/9/d694096150/htdocs/zedekia/wetter/mt/template/scripts/functions.php:2169) in /homepages/9/d694096150/htdocs/zedekia/wetter/mt/template/admin/authorize.php on line 41

Warning: Cannot modify header information - headers already sent by (output started at /homepages/9/d694096150/htdocs/zedekia/wetter/mt/template/scripts/functions.php:2169) in /homepages/9/d694096150/htdocs/zedekia/wetter/mt/template/admin/authorize.php on line 111


I have also modified the php.ini like this:

zlib.output_compression=1
zlib.output_compression_level=9
error_reporting = E_ALL & ~E_NOTICE | E_DEPRECATED

display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
allow_url_fopen = On

track_errors = Off
xmlrpc_errors = 0

html_errors = Off
error_log = php-error.log

register_globals = on
allow_url_fopen = on
allow_url_include = on


No results.

The "master" Jachym is already concerned about the problem.

Best Regards (and sorry for my broken English)

Alexander

Re: PHP 7.1.8 and 1&1

Posted: Mon Aug 21, 2017 3:06 pm
by Jachym
Hi Alex

the errors you see are fine, the first is a notice (irrelevant to this issue), the following errors are due to this notice being displayed. It really is a mystery to me. I was looking at your page again, but it just doesn´t show any errors and ends up with a blank page.

Do you have access to error log?

Btw. I use PHP 7.1 too, so it should not be an issue

Re: PHP 7.1.8 and 1&1

Posted: Mon Aug 21, 2017 6:06 pm
by Zedekia
Hello Jachym,

Problem solved. I make a clean-install. Great. PHP 7.1 is so fast.......
Thank you Jachym.

Alex.

Re: PHP 7.1.8 and 1&1

Posted: Mon Aug 21, 2017 6:22 pm
by Jachym
Great :-)

Yes, PHP 7+ is about twice as fast compared to PHP 5.x.

It is also easier for programmers to do certain things, but unfortunately this is something I cannot use because it would not work on 5.x servers.

Re: PHP 7.1.8 and 1&1

Posted: Mon Aug 21, 2017 9:13 pm
by scadie
Hi,

I like this new forum, following your discussion, I check my hosting and see running PHP 5.6... I change it to 7.0 and run really much faster......

Re: PHP 7.1.8 and 1&1

Posted: Tue Aug 22, 2017 7:15 pm
by Didiersm
I have changed my PHP version from 5.6 to 7 too... waouuu as faster is it compare to the 5.6.
Thanks Jachym for this tips, really usefull :P

Re: PHP 7.1.8 and 1&1

Posted: Tue Aug 22, 2017 9:14 pm
by Johnny
I've just updated mine as well - great tip. :D

Re: PHP 7.1.8 and 1&1

Posted: Wed Aug 23, 2017 4:17 am
by John B
What a difference!

I too have changed from 5.XX to 7.1 and am most pleased with the performance (relatively speaking, of course). It had never occurred to me that shifting to a later version of PHP would make such a difference.

Thanks to all for bringing the subject to our attention.

Cheers,
John

Re: PHP 7.1.8 and 1&1

Posted: Thu Aug 24, 2017 9:48 am
by barbuser
I have updated mine to 7.X. Thanks so much for the tip!

Re: PHP 7.1.8 and 1&1

Posted: Fri Aug 25, 2017 6:32 pm
by kd7eir
I'm also with 1&1 on php 7.1.8, and I have not had any issues at all.

Re: PHP 7.1.8 and 1&1

Posted: Fri Aug 25, 2017 8:44 pm
by Jachym
Thanks for letting me know, this means the person who had problems with 7.1.8 must have some missing parts of PHP. I have seen this with one other user before, where some functions which should normally be available were not installed.