Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.2.4 build 3060 - 10 December 2019.
    Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

    See the Wiki for downloading either version.

    PHP Version...

    Discussion of the Weather34 web site template

    Moderators: saratogaWX, weatherist34

    Post Reply
    gw3atz
    Posts: 11
    Joined: Thu 27 Jun 2013 10:39 am
    Weather Station: WS 1081
    Operating System: Windows 10
    Location: Shotton NE Wales

    PHP Version...

    Post by gw3atz » Thu 15 Nov 2018 1:24 pm

    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
    Geoff Morris.
    Shotton NE Wales. IO83LE
    http://deewx.ddns.net/wx/index.php

    User avatar
    dazza1223
    Posts: 506
    Joined: Sun 25 Jan 2015 8:41 pm
    Weather Station: Davis Vantage Vue
    Operating System: raspberry pi 3 +
    Location: Worthing
    Contact:

    Re: PHP Version...

    Post by dazza1223 » Thu 15 Nov 2018 2:17 pm

    hey check the php logs then post the logs here
    Have fun and keep learning

    dazza :D

    gw3atz
    Posts: 11
    Joined: Thu 27 Jun 2013 10:39 am
    Weather Station: WS 1081
    Operating System: Windows 10
    Location: Shotton NE Wales

    Re: PHP Version...

    Post by gw3atz » Thu 15 Nov 2018 3:34 pm

    If I could FIND the logs..!!?? The linux file structure I find very confusing.

    Geoff
    Geoff Morris.
    Shotton NE Wales. IO83LE
    http://deewx.ddns.net/wx/index.php

    User avatar
    dazza1223
    Posts: 506
    Joined: Sun 25 Jan 2015 8:41 pm
    Weather Station: Davis Vantage Vue
    Operating System: raspberry pi 3 +
    Location: Worthing
    Contact:

    Re: PHP Version...

    Post by dazza1223 » Thu 15 Nov 2018 3:51 pm

    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
    Have fun and keep learning

    dazza :D

    User avatar
    ConligWX
    Posts: 751
    Joined: Mon 19 May 2014 10:45 pm
    Weather Station: Davis VPro2 Plus +DFARS
    Operating System: MeteoBridge Nano SD
    Location: Bangor, NI
    Contact:

    Re: PHP Version...

    Post by ConligWX » Thu 15 Nov 2018 10:18 pm

    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
    You do not have the required permissions to view the files attached to this post.
    Regards Simon

    https://www.conligwx.org - @conligwx
    Davis Vantage Pro2 Plus + DFARS - Meteobrige Nano SD + Saratoga Templates

    gw3atz
    Posts: 11
    Joined: Thu 27 Jun 2013 10:39 am
    Weather Station: WS 1081
    Operating System: Windows 10
    Location: Shotton NE Wales

    Re: PHP Version...

    Post by gw3atz » Fri 16 Nov 2018 10:39 am

    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
    Geoff Morris.
    Shotton NE Wales. IO83LE
    http://deewx.ddns.net/wx/index.php

    weatherist34
    Posts: 105
    Joined: Wed 13 Apr 2016 11:09 am
    Weather Station: Davis Vantage Pro2 Plus
    Operating System: OSX High Sierra
    Contact:

    Re: PHP Version...

    Post by weatherist34 » Fri 16 Nov 2018 12:00 pm

    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

    User avatar
    ConligWX
    Posts: 751
    Joined: Mon 19 May 2014 10:45 pm
    Weather Station: Davis VPro2 Plus +DFARS
    Operating System: MeteoBridge Nano SD
    Location: Bangor, NI
    Contact:

    Re: PHP Version...

    Post by ConligWX » Fri 16 Nov 2018 12:43 pm

    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.
    Regards Simon

    https://www.conligwx.org - @conligwx
    Davis Vantage Pro2 Plus + DFARS - Meteobrige Nano SD + Saratoga Templates

    gw3atz
    Posts: 11
    Joined: Thu 27 Jun 2013 10:39 am
    Weather Station: WS 1081
    Operating System: Windows 10
    Location: Shotton NE Wales

    Re: PHP Version...

    Post by gw3atz » Tue 20 Nov 2018 10:00 am

    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
    Geoff Morris.
    Shotton NE Wales. IO83LE
    http://deewx.ddns.net/wx/index.php

    Post Reply