Page 1 of 1
betel_datasummary.php error
Posted: Tue 28 Feb 2023 9:29 pm
by Super-T
I have been using the betel_datasummary.php to display history and all of a sudden it stopped working with the following error:-
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at
webmaster@janter.co.nz to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."
Address:-
https://www.janter.co.nz/weather/betel_datasummary.php
Nothing has changed that I know of. Maybe corrupted file somewhere?
Any Ideas please?
I have tried refreshing all of the betel files with no luck.
Re: betel_datasummary.php error
Posted: Tue 28 Feb 2023 10:24 pm
by broadstairs
I suspect your host has updated PHP and it is failing on the new PHP, additionally there is a problem trying to post an error document. You might be able to find the error in PHP by looking at any error logs on your hosting site and be able to fix the PHP.
Stuart
Re: betel_datasummary.php error
Posted: Tue 28 Feb 2023 10:34 pm
by flort
Hi Terry,
I also noticed your dayfile.txt only goes up to 05/08/20 so something has gone wrong with your upload.
Regards,
Trevor
Re: betel_datasummary.php error
Posted: Wed 01 Mar 2023 8:55 pm
by Super-T
Thanks, I'll look into the suggestions.
I had a lot of power failures after the recent cyclones and had to recover the data.
Not sure why the dayfile is wrong as it should update overnight and it is OK on the laptop.
Can I just manually upload the correct dayfile.txt?
Getting ftp errors with no such directory. See attached log
Have to see what the Website provider has to say.
More info:- Ran FTP2Weather.bat This explains the errors
"C:\Cumulus\FTP-Data>cd\cumulus\ftp-data\
C:\Cumulus\FTP-Data>ftp -a -s:daily.ftp
ftp> open 223.165.64.192
Connected to 223.165.64.192.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 3 of 50 allowed.
220-Local time is now 11:04. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
504 Unknown command
User (223.165.64.192:(none)):
331 User janterco OK. Password required
230 OK. Current restricted directory is /
ftp> cd weather
550 Can't change directory to weather: No such file or directory
ftp> put c:\cumulus\data\dayfile.txt
501 Syntax error in IP address
ftp> bye
221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
221 Logout."
Re: betel_datasummary.php error
Posted: Wed 01 Mar 2023 10:16 pm
by flort
Hi Terry,
You can just upload the correct dayfile but that won't solve your problem. It might be helpful to turn on debug for a few minutes and then post the MXDiag file. That should show what file or directory it can't open.
EDIT: You posted again while I was typing the above. Does the weather directory exist on your server when you view through your FTP client?
Regards,
Trevor
Re: betel_datasummary.php error
Posted: Wed 01 Mar 2023 11:02 pm
by Super-T
yes, I can access in filezilla.
I found that I had to remove the - a from the FTP2Weather.bat
cd\cumulus\ftp-data\
ftp -s:daily.ftp
Perhaps my Host changed the ftp requirements.
Seems like it updated now. Will see what happens overnight

Thanks for suggestion
Re: betel_datasummary.php error
Posted: Thu 02 Mar 2023 4:04 am
by Super-T
Still chasing this problem. Has anyone seen the error before?
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at
webmaster@janter.co.nz to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."
Host says they see this in the error log
"[Thu Mar 02 13:16:52.552696 2023] [core:error] [pid 26188] [client 101.98.96.121:53764] End of script output before headers: betel_datasummary.php, referer:
https://www.janter.co.nz/weather/"
Any help?
Re: betel_datasummary.php error
Posted: Thu 02 Mar 2023 4:48 am
by Super-T
Getting further on.
Would someone have a copy of their .htaccess file from an Apache server hosting cumulus1?
It may be a hidden file on the website so you would need to "Allow" viewing.
Mine didn't get backed up as it was hidden...I think.
Easy to rebuild in a text editir if I can find out what content is needed ?
Re: betel_datasummary.php error
Posted: Thu 02 Mar 2023 9:19 am
by Super-T
Can someone please supply me with a link to the betel-datasummary.php install file that Betel wrote? I want to reload it and I haven't located a source.
Re: betel_datasummary.php error
Posted: Thu 02 Mar 2023 10:27 am
by Mapantz
Re: betel_datasummary.php error
Posted: Fri 03 Mar 2023 12:36 am
by Super-T
All problems now fixed. Panic over.
I had a corrupted /weather directory. I copied all the files and then deleted the directory. Then recreated the directory and copied all the files back. Fixed.
Comparing permissions etc., I couldn't see any difference. Go figure!
PHP was just not working in the old /weather directory.