manage to install meteotemplate after some isues, default page even looks interesting.
but when i want to config the stuff using the controlpanel, i only get a white page.
i use xampp 6.2.2 for testing purpose, php, and all stuff checked out ok, got it on any browser i have.
sugestions ??
p.s
As you see, i got stickers working perfectly, hehe
this is my vhost entry on my server.
path-to/htdocs/VHOST/pws/template
and in config.php
$path = '/';
$pageURL = 'http://pws.xs4non.nl:85';
cant do much withy the white page.
newby isue, white page when going admin site
- MonyMony
- Forecaster
- Posts: 180
- Joined: Sun Aug 20, 2017 12:54 pm
- Location: Elkton, Maryland, US
- Station model: Davis Pro 2
- Software: WeatherCat/Meteobridge
- Contact:
Re: newby isue, white page when going admin site
Hello and Welcome,
Did a quick look and I am not sure your site is installed properly. I noticed a lot of the images you should see when connecting to the admin page appear to be missing.
To me either the installation was not complete or there is some odd permissions on your site that is preventing access. Either way I would suspect the white pages you are seeing are somehow related. Unfortunately I am not sure I can be more specific than this with my guess.
Hopefully others might have some other ideas.
Did a quick look and I am not sure your site is installed properly. I noticed a lot of the images you should see when connecting to the admin page appear to be missing.
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
pws.xs4non.nl
Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15
To me either the installation was not complete or there is some odd permissions on your site that is preventing access. Either way I would suspect the white pages you are seeing are somehow related. Unfortunately I am not sure I can be more specific than this with my guess.
Hopefully others might have some other ideas.
-
- Newbie
- Posts: 5
- Joined: Fri Nov 02, 2018 2:59 pm
- Location: kerkrade, netherlands
- Station model: pce-fws 20
- Software: cumulus
Re: newby isue, white page when going admin site
sorry late response.
i tested it with 2 builds from xampp, the newer 7, shows me more as the one in use (6.5).
but some sitestuff can run only on 6.5 ,and not yet on 7, trying to modd the config for the xampp 7 build so that
it runs on difrent ports, but takes a while, to busy with other projects.
so, eh, localy, work in progress.
i tested it with 2 builds from xampp, the newer 7, shows me more as the one in use (6.5).
but some sitestuff can run only on 6.5 ,and not yet on 7, trying to modd the config for the xampp 7 build so that
it runs on difrent ports, but takes a while, to busy with other projects.
so, eh, localy, work in progress.
-
- Newbie
- Posts: 5
- Joined: Fri Nov 02, 2018 2:59 pm
- Location: kerkrade, netherlands
- Station model: pce-fws 20
- Software: cumulus
Re: newby isue, white page when going admin site
as for my self, welcome back.
i did a hold on the project due personal isues, so i give it a new try to install it.
the main problem where i am getting stuck is the API key.
they changed the registration site to make a key, and the apikeyguide is now not working for me anymore
as it should be (imho)
it now includes payment information, and that, is what is possible for me....
using cumulus software to get the realtime.txt is the only thing to get my data.
oh, still getting the white page.
also, not sure if i mentiont it, i am use windows with xampp
not sure, but i have the idea that that is giving the problem ,despite all setup is working is correctly.
Any sugestions ?
Tom.
i did a hold on the project due personal isues, so i give it a new try to install it.
the main problem where i am getting stuck is the API key.
they changed the registration site to make a key, and the apikeyguide is now not working for me anymore
as it should be (imho)
it now includes payment information, and that, is what is possible for me....
using cumulus software to get the realtime.txt is the only thing to get my data.
oh, still getting the white page.
also, not sure if i mentiont it, i am use windows with xampp
not sure, but i have the idea that that is giving the problem ,despite all setup is working is correctly.
Any sugestions ?
Tom.
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: newby isue, white page when going admin site
I'm using xampp ( 7.4.12 ) on windows 10, as a test setup, and it works correctly so I'm confident it should work for you.
I'd leave the google api key for a second moment ( as it is not critical for meteotemplate execution ).
Let's start from the beginning ( from the meteotemplate main setup page ):
- did you complete the setup process?
0) via phpmyadmin create a database and an user
a) click the check server button
b) set the admin and update passwords
c) set the mysql section ( with the data from point 0), click the Test connection button ( as this will create the necessary tables in the database )
d) set the path section ( I think should be similar to that in the image )
If you completed correctly the above steps you should be able to access the main page ( quite empty dough ) and the control panel
If you can't access these pages you can try:
- see in the browser 'javascript console' for any useful warning/error message
- add a '?errors' at the end of the page url ( for example: http://localhost/template/indexDesktop.php?errors ), this will print php warning/errors inside the page ( very useful to diagnose problems )
- 'open a port in your firewall' and make your server accessible from the outside ( only for a limited period, for this setup phase, so that I can take a look )
P.S.
In your initial post you had:
$pageURL = 'http://pws.xs4non.nl:85';
I don't think it is ok for a local installation
P.P.S.
After you install xampp remember to run the script setup_xampp.bat, now if you point the browser to http://localhost you should see the xampp welcome page
I'd leave the google api key for a second moment ( as it is not critical for meteotemplate execution ).
Let's start from the beginning ( from the meteotemplate main setup page ):
- did you complete the setup process?
0) via phpmyadmin create a database and an user
a) click the check server button
b) set the admin and update passwords
c) set the mysql section ( with the data from point 0), click the Test connection button ( as this will create the necessary tables in the database )
d) set the path section ( I think should be similar to that in the image )
If you completed correctly the above steps you should be able to access the main page ( quite empty dough ) and the control panel
If you can't access these pages you can try:
- see in the browser 'javascript console' for any useful warning/error message
- add a '?errors' at the end of the page url ( for example: http://localhost/template/indexDesktop.php?errors ), this will print php warning/errors inside the page ( very useful to diagnose problems )
- 'open a port in your firewall' and make your server accessible from the outside ( only for a limited period, for this setup phase, so that I can take a look )
P.S.
In your initial post you had:
$pageURL = 'http://pws.xs4non.nl:85';
I don't think it is ok for a local installation
P.P.S.
After you install xampp remember to run the script setup_xampp.bat, now if you point the browser to http://localhost you should see the xampp welcome page
-
- Newbie
- Posts: 5
- Joined: Fri Nov 02, 2018 2:59 pm
- Location: kerkrade, netherlands
- Station model: pce-fws 20
- Software: cumulus
Re: newby isue, white page when going admin site
Hello.
xampp is not my first run, so dont worry.
mySQL ,works, i got 3 green checkmarks back.
as for the pws.xs4non.nl:85 ,
this is my entry in the vhost section
<VirtualHost *:85>
DocumentRoot "d:/games/xampp/htdocs/VHOST/pws/template"
ErrorLog "logs/pws-error_log"
CustomLog "logs/pws-access_log" common
ServerName pws.xs4non.nl
ServerAlias pws.xs4non.nl
<Directory "d:/games/xampp/htdocs/VHOST/pws/template">
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>
as for the template path i use /template/ ,NOT sure if i still need it, but even with a / only white page.
on pws.xs4non.nl:85 it redirects me to http://pws.xs4non.nl:85/indexDesktop.php
As for the ?errors
Wel.
Deprecated: Function date_sunrise() is deprecated in D:\games\xampp\htdocs\VHOST\pws\template\homepage\css\themeSetter.php on line 3
Deprecated: Function date_sunset() is deprecated in D:\games\xampp\htdocs\VHOST\pws\template\homepage\css\themeSetter.php on line 4
Warning: file_get_contents(D:\games\xampp\htdocs\VHOST\pws\template/lang/<br /> <b>Warning</b>: Undefined variable $lang in <b>D:\games\xampp\htdocs\VHOST\pws\template\install\setup.php</b> on line <b>1309</b><br /> .php): Failed to open stream: No such file or directory in D:\games\xampp\htdocs\VHOST\pws\template\header.php on line 30
This i got fixed by setting language forced to US.
Fatal error: Uncaught ValueError: mb_http_input(): Argument #1 ($type) must be one of "G", "P", "C", "S", "I", or "L" in D:\games\xampp\htdocs\VHOST\pws\template\scripts\functions.php:28 Stack trace: #0 D:\games\xampp\htdocs\VHOST\pws\template\scripts\functions.php(28): mb_http_input('UTF-8') #1 D:\games\xampp\htdocs\VHOST\pws\template\header.php(48): include('D:\\games\\xampp\\...') #2 D:\games\xampp\htdocs\VHOST\pws\template\indexDesktop.php(84): include('D:\\games\\xampp\\...') #3 {main} thrown in D:\games\xampp\htdocs\VHOST\pws\template\scripts\functions.php on line 28
port is open, i only forgot to start the server, no need run it when i am still in config mode.
tbh, i am heavy abusing xampp for other stuff to, so, it should be open perma now.
But one silly question remain,, does it automaticly fetched the realtime.txt data?, and where to i place this file.
using the cumulus software here to read the station every 5 minutes.
Tom
xampp is not my first run, so dont worry.
mySQL ,works, i got 3 green checkmarks back.
as for the pws.xs4non.nl:85 ,
this is my entry in the vhost section
<VirtualHost *:85>
DocumentRoot "d:/games/xampp/htdocs/VHOST/pws/template"
ErrorLog "logs/pws-error_log"
CustomLog "logs/pws-access_log" common
ServerName pws.xs4non.nl
ServerAlias pws.xs4non.nl
<Directory "d:/games/xampp/htdocs/VHOST/pws/template">
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>
as for the template path i use /template/ ,NOT sure if i still need it, but even with a / only white page.
on pws.xs4non.nl:85 it redirects me to http://pws.xs4non.nl:85/indexDesktop.php
As for the ?errors
Wel.
Deprecated: Function date_sunrise() is deprecated in D:\games\xampp\htdocs\VHOST\pws\template\homepage\css\themeSetter.php on line 3
Deprecated: Function date_sunset() is deprecated in D:\games\xampp\htdocs\VHOST\pws\template\homepage\css\themeSetter.php on line 4
Warning: file_get_contents(D:\games\xampp\htdocs\VHOST\pws\template/lang/<br /> <b>Warning</b>: Undefined variable $lang in <b>D:\games\xampp\htdocs\VHOST\pws\template\install\setup.php</b> on line <b>1309</b><br /> .php): Failed to open stream: No such file or directory in D:\games\xampp\htdocs\VHOST\pws\template\header.php on line 30
This i got fixed by setting language forced to US.
Fatal error: Uncaught ValueError: mb_http_input(): Argument #1 ($type) must be one of "G", "P", "C", "S", "I", or "L" in D:\games\xampp\htdocs\VHOST\pws\template\scripts\functions.php:28 Stack trace: #0 D:\games\xampp\htdocs\VHOST\pws\template\scripts\functions.php(28): mb_http_input('UTF-8') #1 D:\games\xampp\htdocs\VHOST\pws\template\header.php(48): include('D:\\games\\xampp\\...') #2 D:\games\xampp\htdocs\VHOST\pws\template\indexDesktop.php(84): include('D:\\games\\xampp\\...') #3 {main} thrown in D:\games\xampp\htdocs\VHOST\pws\template\scripts\functions.php on line 28
port is open, i only forgot to start the server, no need run it when i am still in config mode.
tbh, i am heavy abusing xampp for other stuff to, so, it should be open perma now.
But one silly question remain,, does it automaticly fetched the realtime.txt data?, and where to i place this file.
using the cumulus software here to read the station every 5 minutes.
Tom
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: newby isue, white page when going admin site
Ok I can access your site.
As you reported, the main page stops with an error in scripts/functions.php on line 28.
You may substitute this file with the attached one ( I slightly modded it for compatibility with php 8.0 ).
For example line 28 is commented out as it is not needed/not correctly used.
As you say, if the DocumentRoot of your site is d:/games/xampp/htdocs/VHOST/pws/template the 'path' setting in meteotemplate should be / ( or /template/ ; - ).
For the realtime.txt file you can place anywhere ( in the document root directory for example ).
In the meteotemplate control panel -> 'database update' you have to set the correct path.
As you reported, the main page stops with an error in scripts/functions.php on line 28.
You may substitute this file with the attached one ( I slightly modded it for compatibility with php 8.0 ).
For example line 28 is commented out as it is not needed/not correctly used.
As you say, if the DocumentRoot of your site is d:/games/xampp/htdocs/VHOST/pws/template the 'path' setting in meteotemplate should be / ( or /template/ ; - ).
For the realtime.txt file you can place anywhere ( in the document root directory for example ).
In the meteotemplate control panel -> 'database update' you have to set the correct path.
- Attachments
-
- functions.zip
- (9.23 KiB) Downloaded 37 times
-
- Newbie
- Posts: 5
- Joined: Fri Nov 02, 2018 2:59 pm
- Location: kerkrade, netherlands
- Station model: pce-fws 20
- Software: cumulus
Re: newby isue, white page when going admin site
Good morning..
busy on setup on the new template.
Same isue as before.
How ever !, in functions.php line 28 mb_http_input('UTF-8');
i got a error message on that..
i gues that is the whitepage here.
busy on setup on the new template.
Same isue as before.
How ever !, in functions.php line 28 mb_http_input('UTF-8');
i got a error message on that..
i gues that is the whitepage here.