issues with sunposa.php

Hi from France

My website works fine since a few years, but I still have some issues that I can’t fix.

It’s all about astronomy page, which is almost complete, but the module “sunposa.php” doesn’t work.

I tried to download several versions of it, but I can’t make it work.

I use modified Saratoga’s Template for all my pages
http://www.plebraud-baobab.org

Here is the message you get:
http://www.plebraud-baobab.org/sunposa.php

Is there something I haven’t seen ? A kind of very stupid thing maybe…?

The image in your link display the error 25049 which occurs when either

  1. There is no font-file found at the specified location
    => there should be arial.ttf and arialbd.ttf in the jpgraph/ttf/ folder
    or
  2. the path to the ttf folder is incorrect in jpgraph/src/jpg-config.inc.php
    On line 39 (approx. as different versions exists) you find the define for the font to use:
    define(‘TTF_DIR’,‘/Applications/MAMP/htdocs/update/weather2/jpgraph/ttf/’);

You can use absolute addressing as in this example (the first / is your root)
If you have problems finding the correct path, use the small script attached.

  1. rename it to hardpath.php
  2. upload it to the jpgraph/ttf/ folder
  3. run it by http://www.plebraud-baobab.org/..../jpgraph/ttf/hardpath.php
    it will display the exact path to the folder.

Succes, Wim


hardpath.php.txt (29 Bytes)

Thanks. :wink:

I’ll work on it, I think some of my site’s folders look like big mess #-o #-o
(For instance, I have “jpgraph-2.3” and “jpgraph-3.5” folders, with different files in it)

I’ll be back for news

To wvdkuil…

First investigation, I already have arial and arialbd *.ttf files in the “jpgraph/ttf” folder

I think I need to focus on folder settings, maybe some mistakes around.

Here are my settings in “sunposa.php”

include (“graphsconf.php”);
include (“graphlang.php”);
include ($jploc.“jpgraph.php”);
include ($jploc.“jpgraph_scatter.php”);
include ($jploc.“jpgraph_line.php”);
include ($jploc.“jpgraph_date.php”);
$clientrawextra = get_raw(“clientrawextra.txt”);

Here are the settings in “graphsconf.php”

$hostloc = “./jpgraph/”;
$jploc = “./jpgraph/src/”; //must have trailing slash

Here are the settings in “jpg-config.inc.php”

define(‘TTF_DIR’,‘/homepages/42/d609300052/htdocs/jpgraph/ttf/’);

The folder “jpgraph” is uploaded at the root of the site
“graphsconf.php” is also uploaded at the root (so is “graphlang.php”)

For now, I still have the same issue message…

I admit I’m little bit confused…

http://www.plebraud-baobab.org/jpgraph/ttf/hardpath.php => displays: /homepages/42/d609300052/htdocs/jpgraph/ttf/
But the error message says the script is looking for /homepages/42/d609300052/htdocs/jpgraph-2.3/ttf/arialbd.ttf

Seems to me a “which folder is the one I shall use this time” folder-name issue,

Wim


Well, It’s weird…

My “jpc-config.inc.php” settings are:
define(‘TTF_DIR’,‘/homepages/42/d609300052/htdocs/jpgraph/ttf/’);

Maybe the problem is here…

http://www.plebraud-baobab.org/sunposa.php

I got it !!

Simply, I create another folder named “jpgraph-2.3”, with a “ttf” subfolder, with the 2 “ttf” files in it…

It was just a real mess in my folder names and how to go to it…:roll: :roll: :roll::roll: :roll: :roll:

Thanks for your help, you make me awaked… :wink:

Now, I must work on my “thermometer.php” issue, but everything is fine on my website (I hope you like it)

Regards… from France…

Goodafternoon!

  1. I found a bug in diary plugin . If a month have zero percipitation then every day in this month diary displays “Day with highest precipitation of the month (0.000 mm).” .
  2. No translations work in diary ?