PHP 7.1.8 and 1&1

Post Reply
User avatar
Zedekia
Observer
Observer
Posts: 17
Joined: Mon Aug 21, 2017 7:41 am
Location: Hitfeld
Station model: Davis Pro2
Software: Meteobridge
Contact:

PHP 7.1.8 and 1&1

Post by Zedekia » Mon Aug 21, 2017 3:01 pm

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
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: PHP 7.1.8 and 1&1

Post by Jachym » Mon Aug 21, 2017 3:06 pm

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

User avatar
Zedekia
Observer
Observer
Posts: 17
Joined: Mon Aug 21, 2017 7:41 am
Location: Hitfeld
Station model: Davis Pro2
Software: Meteobridge
Contact:

Re: PHP 7.1.8 and 1&1

Post by Zedekia » Mon Aug 21, 2017 6:06 pm

Hello Jachym,

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

Alex.
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: PHP 7.1.8 and 1&1

Post by Jachym » Mon Aug 21, 2017 6:22 pm

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.

User avatar
scadie
Language Admin
Language Admin
Posts: 46
Joined: Sun Aug 20, 2017 2:56 pm
Location: Saint-Hubert, Québec, Canada
Station model: Davis Vantage Pro
Software: Meteobridge
Contact:

Re: PHP 7.1.8 and 1&1

Post by scadie » Mon Aug 21, 2017 9:13 pm

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......
Sylvain Cadieux
scadie@scadie.com

Meteo Saint-Hubert: http://www.meteosaint-hubert.com

Image

User avatar
Didiersm
Observer
Observer
Posts: 40
Joined: Sun Aug 20, 2017 1:05 pm
Location: Fontnilles France
Station model: WMR200
Software: Weathe rDisplay
Contact:

Re: PHP 7.1.8 and 1&1

Post by Didiersm » Tue Aug 22, 2017 7:15 pm

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
Station WMR200
Fontenilles Wheather - FR http://didiersm.16mb.com/template/indexDesktop.php
mailto:didier.sm@gmail.com
Image

User avatar
Johnny
Developer
Developer
Posts: 313
Joined: Sat Aug 19, 2017 10:16 pm
Location: Watford, Hertfordshire, England
Station model: Davis Vantage Pro2 Plus
Software: Meteobridge
Contact:

Re: PHP 7.1.8 and 1&1

Post by Johnny » Tue Aug 22, 2017 9:14 pm

I've just updated mine as well - great tip. :D
Image
Davis Vantage Pro2 Plus: http://www.watfordweather.uk

User avatar
John B
Forecaster
Forecaster
Posts: 211
Joined: Sun Aug 20, 2017 11:59 pm
Location: Blaxland, N.S.W., Australia
Station model: La Crosse WS2355
Software: Weather Display
Contact:

Re: PHP 7.1.8 and 1&1

Post by John B » Wed Aug 23, 2017 4:17 am

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

barbuser
Observer
Observer
Posts: 14
Joined: Thu Aug 24, 2017 8:37 am
Location: Texas USA
Station model: Davis Vantage Vue
Software: Cumulus
Contact:

Re: PHP 7.1.8 and 1&1

Post by barbuser » Thu Aug 24, 2017 9:48 am

I have updated mine to 7.X. Thanks so much for the tip!
Image

kd7eir
Advisor
Advisor
Posts: 61
Joined: Sun Aug 20, 2017 2:58 pm
Station model: Ecowitt Wittboy
Software: FOSHKplugin

Re: PHP 7.1.8 and 1&1

Post by kd7eir » Fri Aug 25, 2017 6:32 pm

I'm also with 1&1 on php 7.1.8, and I have not had any issues at all.
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: PHP 7.1.8 and 1&1

Post by Jachym » Fri Aug 25, 2017 8:44 pm

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.

Post Reply