|
|
| Author |
Message |
dagonet Cacti User
Joined: 29 Oct 2005 Posts: 76 Location: Wuerzburg
|
Posted: Sat Dec 22, 2007 2:52 am Post subject: [SOLVED] v0.941: Problems with the editor |
|
|
Hi community,
I have to problems with the editor:
If I create/create as a copy from a existing map, the map does not show up in the editor view. I just have a red cross in a white square. So the image is not found. Any hints?
Second, can I get rid of this realy annoying message:
Notice: A session had already been started - ignoring session_start() in /usr/local/apache/htdocs/cacti-0.8.6j/include/config.php on line 141
Turning of the notices in php.ini is not an option.
Regards
Dagonet
btw. I want to use weathermap as a cacti plugin.
Last edited by dagonet on Tue Jan 01, 2008 10:17 am; edited 1 time in total |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Sat Dec 22, 2007 5:22 am Post subject: |
|
|
Does your www user (or whichever user runs apache) have write permission on the configs/ directory? That sounds like it couldn't create a new file in there.
For the session message... do you only get it in weathermap or all through cacti? |
|
| Back to top |
|
 |
dagonet Cacti User
Joined: 29 Oct 2005 Posts: 76 Location: Wuerzburg
|
Posted: Sat Dec 22, 2007 3:30 pm Post subject: |
|
|
I only get the session message when I call the editor.php. Anyway, I solved it. It was not a permission problem. It is a problem with including the include/config.php in my case.
I disabled the inclusion of config.php:
...
elseif( is_dir($cacti_base) && file_exists($cacti_base."/include/config.php") )
{
// include the cacti-config, so we know about the database
// include_once($cacti_base."/include/config.php");
$config['base_url'] = "/cacti/";
$config['base_path'] = $cacti_base;
$cacti_found = TRUE;
}
and put the database portion of the config.php at the beginning of editor.php:
?php
$use_jquery = TRUE;
require_once 'editor.inc.php';
require_once 'Weathermap.class.php';
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "somepassword";
$database_port= "3306";
...
Now it works:)
Regards
Dagonet |
|
| Back to top |
|
 |
dagonet Cacti User
Joined: 29 Oct 2005 Posts: 76 Location: Wuerzburg
|
Posted: Tue Jan 01, 2008 10:17 am Post subject: solved |
|
|
| Problem with the editor is solved. |
|
| Back to top |
|
 |
|