PDA

View Full Version : Need help. Can not edit map in 1.8.2


abenedicth
09-04-2010, 10:14
Hi,

I recently upgraded zabbix from 1.6 to 1.8.2.
Everything seems to be working fine except map editing.
No issue with map editing in 1.6.

Everytime map editing page is displayed, a message box with message "failed" always displayed.
I have tried with IE 6,7,8 as well as Firefox 2.0 and 3.6. Also tried with low security level. But all are same.

Checking through the codes, I think the error is produced by the following code in class.cmap.js (line 821):
new Ajax.Request('map.php'+'?sid='+url.getArgument('si d'),
{
'method': 'post',
'parameters':params,
// 'onSuccess': function(resp){SDI(resp.responseText);},
'onSuccess': this.set_mapimg.bind(this),
'onFailure': function(resp){ alert('failed'); }
}

FYI, OS is FreeBSD 8.0. PHP version is 5.2.12.

Anyone out there has the same problem?

Thank you,
Adi

abenedicth
12-04-2010, 10:06
I also found in apache log file, HTTP status is 500.

192.168.1.200 - - [12/Apr/2010:13:15:02 +0700] "POST /map.php?sid=edc0e075b8514364 HTTP/1.1" 500 - "http://192.168.1.10:8000/sysmap.php?sysmapid=181&sid=edc0e075b8514364" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"

Database already converted to UTF-8.

mma
12-04-2010, 10:31
I had a problem with maps, if just tried with Chrome, it works.
And I uninstall many plugins in FF (3.6.3) and it works on FF now... (chatzilla can be provoke problems)

I'm not sure that resolve your issue but it's a suggestion...

abenedicth
12-04-2010, 11:04
Hi mma, thanks for your feedback.
However I just tried with Chrome but still got the same message.
Seems like this is more related to server issue.

abenedicth
13-04-2010, 09:00
Hi,

I found the following error in php error log:
[13-Apr-2010 15:21:39] PHP Fatal error: Call to undefined function session_start() in /usr/local/www/zabbix/include/config.inc.php on line 951

I'm totally clueless. Any idea of this error?

Your help is really appreciated.

mma
13-04-2010, 09:24
You can open your session on your zabbix ?
It's just your only error ?
Somes clues : version of php, packages not installed...

Aly
13-04-2010, 09:25
You need to recompile php and add -enable-session..
Sessions are supported by default it's very strange that you have such problem :confused:

abenedicth
13-04-2010, 09:45
It works now.

I just installed php5-session from freesbd ports. Previously this port was not installed.

Thanks mma & Aly for your great help.