Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.5 (build 3282) - 23 February 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Unable to open settings1.php

Discussion of the Weather34 web site template

Moderators: saratogaWX, weatherist34

Post Reply
gmcotton
Posts: 21
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 »

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: 1169
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 »

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: 21
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 »

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: 21
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 »

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: 3760
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Unable to open settings1.php

Post by PaulMy »

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

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
gmcotton
Posts: 21
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 »

Good day Paul,

Thanks for the reply,

http://ve9gc.gmcotton.com/PWS

Gordon
User avatar
PaulMy
Posts: 3760
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Unable to open settings1.php

Post by PaulMy »

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
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
gmcotton
Posts: 21
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 »

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: 3760
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Unable to open settings1.php

Post by PaulMy »

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
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
gmcotton
Posts: 21
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 »

Hi Paul,

It is set in easyweathersetup.

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

Gordon
User avatar
PaulMy
Posts: 3760
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Unable to open settings1.php

Post by PaulMy »

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
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
gmcotton
Posts: 21
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 »

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