Still trying to figure this out. I appreciate any help I can get in this matter. Thank you in advance.
Bob
Still trying to figure this out. I appreciate any help I can get in this matter. Thank you in advance.
Bob
<!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
ini_set('display_errors', 'On');
error_reporting(E_ALL);
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 85Warning: 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 85This 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.
It is now: WXSIM 3in1 testpage
So the script start inside the wxsim folder
The settings are RELATIVE to the executing script.
$plaintextfolderfull = '/wxsim/';
If you run your script from inside the wxsim folder, the pointer is already on the wxsim folder, and the settings asks to load a script from http://barraweather.altervista.org/wxsim/wxsim/wxall.plaintext.php
The setting should be in that case
$plaintextfolderfull = './';
Best solution: Put sivu2.php into the root were it should be according to your settings, and run the script as
http://barraweather.altervista.org/sivu2.php
Modify the first line in the settings you mention:
$wxallmainfolder = 'http://barraweather.altervista.org'; # Location of 3in1 scripts RELATIVE to page where shown
back to (if you are running from within the wxsim folder)
$wxallmainfolder = ''; # Location of 3in1 scripts RELATIVE to page where shown
or to
$wxallmainfolder = './wxsim/'; # Location of 3in1 scripts RELATIVE to page where shown
if you are running from the root.
Succes, Wim
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 is strange as that function is defined in the wxall.plaintext script which was missing last time
Are you sure you uploaded ALL scriptrs from a correct download, and that all scripts are what they should be?
To help you we need to know the errors that are occuring.
Please change line 9 in sivu2.php from
<?php
to
<?php ini_set('display_errors', 'On'); error_reporting(E_ALL);
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.
Wim
Attached a recently downloaded wxsim folder with the settings adapted for your site.
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
Wim
barraweather.zip (305 KB)
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
Thanks again,
Sean.
Very good, your lastret.txt contains information exactly on the hour, no adaptions needed for that.
Succes with customizing and with your new website,
Wim
Sorry to bump this topic up, but I noticed this week the new version of wx3in1.
My problem is probably easy but I could not discover any solution for it on the forum.
Problem is:
In stand alone mode I have it running with proper icons
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wxsim_wxall/sivu2.php (see att 1)
when running in a wd-ajax-ml page I have half a page more needed:
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wx3in1_42.php (see att 2)
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 ?
Thanx !
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
<link rel="stylesheet" type="text/css" media="screen" href="css/wxall_old.css?1452707765" />
And change it to point to the same css.
If that fails, we have to dig deeper.
Success, Wim
Oops little late sorry !
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
Integretad in Saratoga test version (using sivu28 and ./clientraw/wd-ajax-ml/css/wxall_old.css), result is tabs oke but still wrong icons :
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/sivu28.php
Using sivu28 in Saratoga page http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wx3in1_42.php
no tabs no icons.
In css style I see a path to
url(‘http://static.nordicweather.net//fonts/glyphicons-halflings-regular.woff’) that’s oke but not working in Saratoga page
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wx3in1_42.php
Not too confused all this I hope. :lol:
thnx Wim so far
It is confusing as the three scripts use different CSS files. Only the official stand-alone version (two posts back) runs OK.
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wxsim_wxall/sivu2.php
So maybe it is a better idea to run the script in a iFrame?
Wim
Frame works better Wim, thanks for reply.
Only in a frame it does not translate to Dutch.
I like this version because it compares temp data with MeteoConsult.
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wx3in1_42.php
Otherwise, I will send you a ticket to add comparisation MeteoConsult in Leuven template ?
(Thats of course most actual version)
Thanks so far
It will run in dutch if you add a ?lang=nl (or &lang=url) to the url for the iframe.
Wim
Did not work, Wim but thanks anyway.
What I did was adding plaintext-parser-lang-nl.txt to wxsim-wxall map, works !
Now I’m uptodate again
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wx3in1_42.php
Maybe offtopic:
How can I add this page in homepage of Leuven template ?
http://www.weersverwachtingen.eu/weather2/index.php
it’s about the possibility to compare WXsim, Meteoconsult and YR.NO
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
Done, thanks !
The width in Saratoga is adapted and fine
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wx3in1_42.php
The height wsLeuven is adapted as well but whatever I do in your page script (in px or in %) can’t change the width of the page :oops: #-o
http://www.weersverwachtingen.eu/weather2/index.php?p=400&lang=nl#data-area
In Leuven the width of the pages is set in the settings.
You should
Wim
In Leuven the width of the pages is set in the settings. You should 1. either increase the pagewidth in the settings or 2. decrease the width in the 3in1 settings.Wim
All done thanks