Page 1 of 1

PHP Version...

Posted: Thu 15 Nov 2018 1:24 pm
by gw3atz
Setting up replacement pi for my server. Present unit works fine on php5.6. W34 displays as expected. http://deewx.ddns.net/wx/index.php
New pi3B is running PHP version : 7.0.30-0+deb9u1 . easyweathersetup.php works ok. Displays and saves. Some standalone php pages work. Mooninfo.php etc... Other php pages work ok. (metar-display.php). BUT index.php just displays a blank white page. http://wxdeeside.ddns.net/wx/

Running latest W34 and 2018-10-09-raspbian-strech-lite. Any thoughts most welcome.!!

Thanks...........Geoff

Re: PHP Version...

Posted: Thu 15 Nov 2018 2:17 pm
by dazza1223
hey check the php logs then post the logs here

Re: PHP Version...

Posted: Thu 15 Nov 2018 3:34 pm
by gw3atz
If I could FIND the logs..!!?? The linux file structure I find very confusing.

Geoff

Re: PHP Version...

Posted: Thu 15 Nov 2018 3:51 pm
by dazza1223
sudo tail -f /var/log/apache2/error.log

then this will give you a live log when u refresh the index page you will see the new logs


and we all say this on here a link to your website wood help so we can see

Re: PHP Version...

Posted: Thu 15 Nov 2018 10:18 pm
by ConligWX
your website is on port 80 and your calling an ipaddress with port 8080

what are you trying to load on port 8080?
Capture.PNG

Re: PHP Version...

Posted: Fri 16 Nov 2018 10:39 am
by gw3atz
Thanks for suggestions. To clarify ports etc. My original w34 site that works on a pi2 is at deewx.ddns.net/wx/ It is OFF at the moment. The problem is on pi3b at wxdeeside.ddns.net/wx/

deewx is on port 80, wxdeeside is on 8080. Apache is set up for it, its forwarded in my router, and does work. http://wxdeeside.ddns.net SHOULD produce a web site. Also http://wxdeeside.ddns.net/metar-display.php works. (not the back button). Log of php is below.......

sudo tail -f /var/log/apache2/error.log
[Thu Nov 15 19:37:34.718929 2018] [:error] [pid 8546] [client 86.179.86.218:2569] PHP Warning: include(../shared.php): failed to open stream: No such file or directory in /var/www/html/wx/contact.php on line 1, referer: http://wxdeeside.ddns.net/wx/contact.php
[Thu Nov 15 19:37:34.719014 2018] [:error] [pid 8546] [client 86.179.86.218:2569] PHP Warning: include(): Failed opening '../shared.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/wx/contact.php on line 1, referer: http://wxdeeside.ddns.net/wx/contact.php
[Thu Nov 15 19:37:34.719082 2018] [:error] [pid 8546] [client 86.179.86.218:2569] PHP Notice: Undefined variable: stationName in /var/www/html/wx/contact.php on line 38, referer: http://wxdeeside.ddns.net/wx/contact.php
[Thu Nov 15 19:37:34.719137 2018] [:error] [pid 8546] [client 86.179.86.218:2569] PHP Notice: Undefined variable: close in /var/www/html/wx/contact.php on line 44, referer: http://wxdeeside.ddns.net/wx/contact.php
[Thu Nov 15 19:37:34.719191 2018] [:error] [pid 8546] [client 86.179.86.218:2569] PHP Notice: Undefined variable: email in /var/www/html/wx/contact.php on line 55, referer: http://wxdeeside.ddns.net/wx/contact.php
[Thu Nov 15 19:37:34.719289 2018] [:error] [pid 8546] [client 86.179.86.218:2569] PHP Notice: Undefined variable: touchme2 in /var/www/html/wx/contact.php on line 63, referer: http://wxdeeside.ddns.net/wx/contact.php
[Thu Nov 15 19:37:34.719342 2018] [:error] [pid 8546] [client 86.179.86.218:2569] PHP Notice: Undefined variable: twitter in /var/www/html/wx/contact.php on line 66, referer: http://wxdeeside.ddns.net/wx/contact.php
[Thu Nov 15 19:37:34.719459 2018] [:error] [pid 8546] [client 86.179.86.218:2569] PHP Notice: Undefined variable: twitter in /var/www/html/wx/contact.php on line 73, referer: http://wxdeeside.ddns.net/wx/contact.php
[Thu Nov 15 19:37:34.719507 2018] [:error] [pid 8546] [client 86.179.86.218:2569] PHP Notice: Undefined variable: touchme2 in /var/www/html/wx/contact.php on line 74, referer: http://wxdeeside.ddns.net/wx/contact.php
[Fri Nov 16 09:39:17.315665 2018] [:error] [pid 8544] [client 86.179.86.218:5405] PHP Warning: fopen(settings1.php): failed to open stream: Permission denied in /var/www/html/wx/easyweathersetup.php on line 104, referer: http://86.179.86.218:8080/wx/easyweathersetup.php


What is very odd is that contact.php does not exist. Its not in the download I have just done. However it is in a contact directory on the original site.!! Maybe easyweathersetup creates it..? At the moment wxdeeside has the files etc from the working pi. Still no joy. All permissions are as they should be. Easyweathersetup displays. Mooninfo displays. And some others.

Not going to spend much more time on this, but thanks for the help.

Cheers.................Geoff

Re: PHP Version...

Posted: Fri 16 Nov 2018 12:00 pm
by weatherist34
hi

your easyweathersetup shows you are using meteobridge version is that correct you are NOT using cumulus ?? .


when you installed/upgraded to php 7.x did you install additional modules and enable options . can always do a compare to your earlier PHP version to get an idea what might be disabled..

Sorry if I dont respond too frequently but this forum is so slow, it really is the slowest site I visit just hope it gets sorted out soon.. guess it is not the same for all..

anyway Im no RPi expert I wouldn't know where to start

Re: PHP Version...

Posted: Fri 16 Nov 2018 12:43 pm
by ConligWX
indeed Brian, the setup is Meteobridge, not sure how that relates to cumulus.

is the path to the Meteobridge data file correct? I know in the Cumulus setup I have to to have the full domain name listed for the datafile to work correctly.

Add Your Path to data file (mbridge/MBrealtimeupload.txt)

mbridge/MBrealtimeupload.txt


METEOBRIDGE-API path example: http://yourdomain/mbridge/MBrealtimeupload.txt

METEOBRIDGE path example: http://yourdomain/mbridge/MBrealtime.txt
set your data path accordingly.

Re: PHP Version...

Posted: Tue 20 Nov 2018 10:00 am
by gw3atz
Thanks for replies. Will look at php to see if I need to change or add something. Just did the standard apt-get download. It works ok for some php pages , just not the ones that matter..! Anyway for now leaving the working server running.

And many thanks Brian for your time and effort in creating and and upkeep of a great program.

Cheers................Geoff