Page 1 of 1

Yet Another Dayfile Reader error

Posted: Fri 03 Nov 2023 9:19 am
by flort
I use a modified version of beteljuice's YADR and it has been working fine until recently. I have a local website on my RPi as well as a website on a public server. The issue I have only appears on the public server and not on the RPi.

Using the public website if I select 'Rain 24H' it returns "Data FAIL!!". On my RPi the data is displayed correctly. The files on both instances are identical and I haven't made any changes recently. Up until a few weeks ago the public website worked fine. All other measurements are displayed correctly when selected.

You can view the page at http://flor.byethost24.com/weather/yadr.php.

Using Microsoft Edge, the Developer Tool returns the following:
GET http://flor.byethost24.com/weather/bete ... =0&lang=en 500 (Internal Server Error)

I have also tried using Chrome and get the same result.

Does anyone have any suggestions as to what the issue might be?

Regards,
Trevor

Re: Yet Another Dayfile Reader error

Posted: Fri 03 Nov 2023 9:41 am
by freddie
Is there anything in the web server error log?

Re: Yet Another Dayfile Reader error

Posted: Fri 03 Nov 2023 10:44 am
by mcrossley
I suspect the PHP has been upgraded on your public server and the script is using a call that has been dropped. As @freddie says the web server error log should give you a pointer.

Re: Yet Another Dayfile Reader error

Posted: Fri 03 Nov 2023 11:28 am
by flort
Unfortunately I'm using a free webhosting services and they don't provide access to the web server error log with the free account. It just tells me that apache errors have been logged. I tried adding 'php_value display_errors on' to my .htaccess file but it didn't give me any additional information.

Every measurement uses the same type of calls so I would have thought they should all fail if a call has been dropped. I'll do a bit more digging around and see if I can get to the bottom of it.

Thanks for your suggestions.

Regards,
Trevor

Re: Yet Another Dayfile Reader error

Posted: Sat 04 Nov 2023 4:38 am
by flort
Just an update that I've resolved the problem. There was a syntax error with an AND/OR statement that was never an issue in the past. They must have updated the software and the new version didn't like it.

Regards,
Trevor

Re: Yet Another Dayfile Reader error

Posted: Sat 04 Nov 2023 7:55 am
by water01
Any chance of telling us what PHP version was being used and where the error was in the source as many of us use that PHP.

Re: Yet Another Dayfile Reader error

Posted: Sat 04 Nov 2023 11:50 am
by flort
My webhost is using PHP 7.4.8. I doubt whether anyone else will see this as it was in a bit of code I had created to include 24hr rain. My YADR is highly modified from the original.

Regards,
Trevor

Re: Yet Another Dayfile Reader error

Posted: Mon 06 Nov 2023 10:52 am
by Mrc
There is also problem with UV. If UV data is zero, then there is black spot where data should be. If UV is 1.0 or higher everything is fine.