Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[SOLVED] v0.941: Problems with the editor

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
dagonet
Cacti User


Joined: 29 Oct 2005
Posts: 76
Location: Wuerzburg

PostPosted: Sat Dec 22, 2007 2:52 am    Post subject: [SOLVED] v0.941: Problems with the editor Reply with quote

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

PostPosted: Sat Dec 22, 2007 5:22 am    Post subject: Reply with quote

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

PostPosted: Sat Dec 22, 2007 3:30 pm    Post subject: Reply with quote

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

PostPosted: Tue Jan 01, 2008 10:17 am    Post subject: solved Reply with quote

Problem with the editor is solved.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group