Page 1 of 1

Unable to open settings1.php

Posted: Tue 25 Jun 2019 1:29 pm
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

Re: Unable to open settings1.php

Posted: Tue 25 Jun 2019 6:29 pm
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.

Re: Unable to open settings1.php

Posted: Tue 25 Jun 2019 8:14 pm
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.

Re: Unable to open settings1.php

Posted: Sun 30 Jun 2019 11:56 am
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?

Re: Unable to open settings1.php

Posted: Sun 30 Jun 2019 12:29 pm
by PaulMy
Hi, could you provide a link to the page as that would be very helpful.

Enjoy,
Paul

Re: Unable to open settings1.php

Posted: Sun 30 Jun 2019 2:05 pm
by gmcotton
Good day Paul,

Thanks for the reply,

http://ve9gc.gmcotton.com/PWS

Gordon

Re: Unable to open settings1.php

Posted: Sun 30 Jun 2019 3:00 pm
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

Re: Unable to open settings1.php

Posted: Sun 30 Jun 2019 6:35 pm
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

Re: Unable to open settings1.php

Posted: Sun 30 Jun 2019 9:31 pm
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

Re: Unable to open settings1.php

Posted: Mon 01 Jul 2019 1:08 am
by gmcotton
Hi Paul,

It is set in easyweathersetup.

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

Gordon

Re: Unable to open settings1.php

Posted: Mon 01 Jul 2019 2:19 am
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

Re: Unable to open settings1.php

Posted: Mon 01 Jul 2019 10:17 am
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