Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3050 - 1 May 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

Unable to open settings1.php

Discussion of the Weather34 web site template

Moderators: saratogaWX, weatherist34

Post Reply
gmcotton
Posts: 7
Joined: Fri 21 Jun 2019 9:51 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 10

Unable to open settings1.php

Post by gmcotton » Tue 25 Jun 2019 1:29 pm

Good day all,
If this has been addressed previously I apologize, it doesn't show up in the search function.

I am trying to setup Weather34 template on my website. I have downloaded the latest version (using git) copied the entire contents to my web server and then when I complete the easyweathersetup.php and when I click submit I get this :

Unable to open settings1.php file check file permissions !

File permissions are set to R W X for my access on the main directory and all subfolders. When I look in the folder both on my local machine and on the web server there is no file called settings1.php. Is it supposed to be created on "Submit" or is it to be modified on submit?
Only file in the directory is one called settings.php

PHP Version is 5.6.11

Any and all recommendations are welcome,

Gordon

User avatar
saratogaWX
Posts: 979
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Unable to open settings1.php

Post by saratogaWX » Tue 25 Jun 2019 6:29 pm

On initial installation, when you first run either index.php or easyweathersetup.php, it should copy settings-initial.php to settings1.php so there is a settings1.php in the document root.

Check the directory permissions in your document root .. they likely should be 0755 to allow creation/read/write for owner in the directory.

It would also be helpful to post the URL to your site having the problem.

gmcotton
Posts: 7
Joined: Fri 21 Jun 2019 9:51 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 10

Re: Unable to open settings1.php

Post by gmcotton » Tue 25 Jun 2019 8:14 pm

Thank you for your reply. I'll double check the settings on the folder. If it persists I'll get after my provider. I was using the easyweathersetup page and tried using the index page with the same results.

I'll report back.

gmcotton
Posts: 7
Joined: Fri 21 Jun 2019 9:51 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 10

Re: Unable to open settings1.php

Post by gmcotton » Sun 30 Jun 2019 11:56 am

So I now have the settings1 issue resolved on the linux server (still a problem on the windows side) .

Now when I load the page it shows the current date and local time, but everything else is what ever data was generated with the page development. It also shows the weather station being offline. The path to the cumulus realtime.txt is correct and is being refreshed on the scheduled times.

What am I missing?

User avatar
PaulMy
Posts: 1920
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Unable to open settings1.php

Post by PaulMy » Sun 30 Jun 2019 12:29 pm

Hi, could you provide a link to the page as that would be very helpful.

Enjoy,
Paul

gmcotton
Posts: 7
Joined: Fri 21 Jun 2019 9:51 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 10

Re: Unable to open settings1.php

Post by gmcotton » Sun 30 Jun 2019 2:05 pm

Good day Paul,

Thanks for the reply,

http://ve9gc.gmcotton.com/PWS

Gordon

User avatar
PaulMy
Posts: 1920
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Unable to open settings1.php

Post by PaulMy » Sun 30 Jun 2019 3:00 pm

Hi Gordon,
Looks like the historical data charts are working up to past Wednesday, so that is a start and that the WU settings are current in your easyweathersetup.

I've looked for your realtime.txt but have not found it.

When I click on Settings I get a warning -
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pem/vhosts/224336/webspace/httpdocs/ve9gc.gmcotton.com/PWS/settings1.php:1) in /usr/local/pem/vhosts/224336/webspace/httpdocs/ve9gc.gmcotton.com/PWS/easyweathersetup.php on line 173
and also -
Your Current PHP version is : 5.3.3
(PHP 5.6 or higher PHP 7+ is advised if you are not already using these versions)
I know you mentioned earlier that you are using v5.6.11 and not sure why it is giving that 5.3.3 message until due to the warning message. This could be the cause of your issue. And sorry I can't help on this issue but will gladly share my experiences on the other settings if needed.

Enjoy,
Paul

gmcotton
Posts: 7
Joined: Fri 21 Jun 2019 9:51 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 10

Re: Unable to open settings1.php

Post by gmcotton » Sun 30 Jun 2019 6:35 pm

Once again, thanks Paul,

The realtime.txt file is locate in the Cumulus Directory and settings1 points to that directory. Is there a spot in the index.php that I should edit and again point to where it is located?

There is little I can do about the php version as that is provided by the hosting company. At the moment they are in the midst of a major upgrade so access to certain functions is very limited.

I was hoping that mine site would end up looking somewhat like yours less the web cam for now.

Gordon

User avatar
PaulMy
Posts: 1920
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Unable to open settings1.php

Post by PaulMy » Sun 30 Jun 2019 9:31 pm

The realtime.txt file is locate in the Cumulus Directory and settings1 points to that directory. Is there a spot in the index.php that I should edit and again point to where it is located?
No, it needs to be set in the easyweathersetup page. As I still can't find your realtime.txt it is hard to suggest what your settings should be. But for me my realtime.txt is www.komokaweather.com/weather/realtime.txt. My PWS template is in www.komokaweather.com/pws. So my path in easyweathersetup is ../weather/realtime.txt

Enjoy,
Paul

gmcotton
Posts: 7
Joined: Fri 21 Jun 2019 9:51 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 10

Re: Unable to open settings1.php

Post by gmcotton » Mon 01 Jul 2019 1:08 am

Hi Paul,

It is set in easyweathersetup.

www.ve9gc.gmcotton.com/Cumulus/web/realtime.txt

Gordon

User avatar
PaulMy
Posts: 1920
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Unable to open settings1.php

Post by PaulMy » Mon 01 Jul 2019 2:19 am

As your template is in http://www.ve9gc.gmcotton.com/PWS/ then I think in easyweathersettings it should be ../Cumulus/web/realtime.txt

Enjoy,
Paul
Happy Canada Day

gmcotton
Posts: 7
Joined: Fri 21 Jun 2019 9:51 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 10

Re: Unable to open settings1.php

Post by gmcotton » Mon 01 Jul 2019 10:17 am

Happy Canada to you Paul,

Thanks for the assistance. The page is finally stating to work for the most part. For some reason it is not picking up some of the images and showing Darksky and Current Conditions offline. The respective API keys have been double checked, no added spaces fore and aft and all characters accounted for.

Cheers,

Gordon

Post Reply