Hello,
I tried installing the WXsim 3in1 and get no results when I run sivu2.php. It shows a blank page. I am sure I have my directory pointers incorrect in the settings page (always challenged with direct and absolute directory paths). I upload the files and directories in the readme.txt. The files are in my main directory folder at lebanontnwx.org. I would appreciate any help I can get to get this up and running. Thank you.
The page is not blank, it contains html but the script stops before it can display visible content.
If you view the source html of the page (with Chrome ==> right click on the blank page and select Pagesource or something like that - my system is Dutch ) you will get
<!DOCTYPE HTML>
<html lang="">
<head>
<title>WXSIM 3in1 testpage</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<!-- HEAD START -->
<!-- Put this part inside <head> and </head>-tags, needed on ALL pages using 3in1 -->
<!-- HEAD END -->
</head>
<body>
<!-- BODY START -->
<!-- Put this part where you want it to show up -->
<!-- You may want wrap it inside a div like this -->
<div style="width:870px;font: 72% Tahoma;">
This is the php code which was executed in the sivu2.php script
<!-- Put this part inside <head> and </head>-tags, needed on ALL pages using 3in1 -->
if(isset($_GET[lang])) {$lang = $_GET[lang]; }
else if (isset($SITE['lang'])) {$lang = $SITE['lang']; }
else {$lang = 'fi';} // not nessessary in Saratoga Templates where $lang defined
include 'wxall.settings.php';
echo $wxallhead;
As error reporting is normally suppressed, it would help to enable error reporting.
So put the following lines in your sivu2.php just on the next line after the line with needed on all pages
You would see the error messages which warn you that the includes did not fire, probably because the path to the 3in1 files is not correct.
Success, Wim
Hi I’m having a similar problem. I’m currently bringing my old website back online and got WXSIM up and running again. For now I’m just testing the scripts before buying the domain again.
These are the errors I’m getting on the sivu2.php
Warning: include() [function.include]: Unable to access /wxsim/wxall.plaintext.php in /membri/barraweather/wxsim/sivu2.php on line 85
Warning: include(/wxsim/wxall.plaintext.php) [function.include]: failed to open stream: No such file or directory in /membri/barraweather/wxsim/sivu2.php on line 85
Warning: include() [function.include]: Failed opening ‘/wxsim/wxall.plaintext.php’ for inclusion (include_path=‘.:’) in /membri/barraweather/wxsim/sivu2.php on line 85
This is what my wxall.settings.php looks like hope this helps.
# Paths
$wxallmainfolder = 'http://barraweather.altervista.org'; # Location of 3in1 scripts RELATIVE to page where shown
# Full paths
$wxallmainfolderfull = '/wxsim/';
$plaintextfolderfull = '/wxsim/';
$lastretfile = '/wxsim/lastret.txt';
$plaintextfile = '/wxsim/plaintext.txt';
# For easier debugging, ignore theese two ;)
//$lastretfile = '/home/web3/httpdocs/test/wxsim/lastret.txt';
#$plaintextfile = '/var/www/vhosts/nordicweather.net/httpdocs/test/wxsim/plaintext.txt';
If anyone can help me that would be great. It’s been years since I done all this so can’t really remember how it works :oops:
Very strange. There is no line 85 (as mentioned in the error message) in sivu2.php from the latest download version? The sivu2.php script contains is only 41 lines.
Warning: include() [function.include]: Unable to access /wxsim/wxall.plaintext.php in /membri/barraweather/wxsim/sivu2.php on line 85
This means that the script needed to process the plaintext file can not be found.
What we need is the command you want to use to run, the exact URL.
Thanks for the help it turns out something went wrong with sivu2.php while uploading it so uploaded it again and made sure it has 41 lines and it does. I also moved it to the root folder and changed the other settings you said to do.
I’m still getting this one error though,
Fatal error: Call to undefined function get_lang() in /membri/barraweather/sivu2.php on line 28
That way we see all errors occuring when the script is run.
Then change line 3 in wxall.settings.php from
ini_set('display_errors', '0');
to
ini_set('display_errors', '1');
In this case MORE errors is better to understand what is happening, as I am not familiar with these errors occuring at your site.
And all know-how in this forum thread and the others about this script since 2013 is lost in the server failure this year, as you can see on the post before your first one.
Attached a recently downloaded wxsim folder with the settings adapted for your site.
rename in the root:
1.1 the current wxsim folder to wxsim_old
1.2 the current sivu2.php to sivu2.php_old.
I can not locate your plantext.txt or lasteret.txt in the root.
Do NOT upload them until the script is OK.
Unzip the attachement and copy all contents to the root
2.1 the wxsim folder
2.2 sivu2.php
2.3 the two testfiles, plaintext.txt and lastret.txt
run sivu2.php
The output should be identical as in the attached scrteenshot.
The first big step is done this way
===
As I can not check your current lastret.txt there will be errors and or blank graphs after you replace the testfiles with your own files.
All american user files have no data at the full hour, so we have to change a few lines in the script
Thanks for doing that it really helped a lot I done everything you said to do and got it working first time. I put in my own lastret and plaintextfile and they work as well You can view it here http://barraweather.altervista.org/sivu2.php
Notice: the first is running in wxsim_wxall map, the second in wd-ajax-ml map.
If possible I want to run it in a Leuven-template page later or make a menu-link to it.
I cannot discover any icon map :-k, (?) to refer. Or… how can I change icons to the originals as standalone ?
All icons are generated in SVG.
The difference between the two versions is the css used.
Correct stand-alone uses ./clientraw/wd-ajax-ml/wxsim_wxall/css/wxall.css
Integretad one in Saratoga uses ./clientraw/wd-ajax-ml/css/wxall_old.css
You could try first to find this line in wx3in1_42.php
I have two versions in Saratoga as long the new one is not running good, the old Original and this New:
or the new version I use sivu28,wxall.functions8.php,wxall.plaintext8.php,wxall.settings8.php, to run it same time in same dir
For new pages with an iframe, same as with the Saratoga template, use the newpage (inside _my_scripts) and adapt the part for the iframe, add to the menu (wsMenuData.xml). Make sure that the width is set narrow/wide enough in the wxall.settings.php
For new pages with an iframe, same as with the Saratoga template, use the newpage (inside _my_scripts) and adapt the part for the iframe, add to the menu (wsMenuData.xml). Make sure that the width is set narrow/wide enough in the wxall.settings.php