I guess you're using a slightly outdated version of PHP (< 5.2.x). I 
changed in the SVN the line in js_session.php from

print ("PM.grouplist = " . json_encode($_SESSION['grouplist']) .
 > ";");

to

print ("PM.grouplist = " . PMCommon::parseJSON($_SESSION['grouplist'], 
false) . ";");

so it should work also with PHP 5.1/5.0

Either download the file here
http://svn.pmapper.net/trac/browser/pmapper/trunk/pmapper/incphp/js/js_session.php?format=txt

or change this line by hand.

Or, recommended for security reasons, swap to a more recent PHP version.
The same error however should appear for language set to EN.

armin


On 02/04/2009 16:59, Cristian Vera wrote:
> Dear list,
> 
> I'm testing pmapper v4 beta1, when i set the language to spanish, pmapper
> doesn't take this option and send me back the following error code.
> 
> Error: missing ; before statement
> Archivo de origen: http://mysite/mypmapperversion/incphp/js/js_session.php?
> Line: 136, column: 3
> <b>Fatal error</b>:  Call to undefined function json_encode() in
> <b>/var/www/html/pmapper/incphp/js/js_session.php</b> on line <b>24</b><br
> />
> 
> Searching and searching in the code finally i found this:
> 
> File: js_session.php
> Line 24: print ("PM.grouplist = " . json_encode($_SESSION['grouplist']) .
> ";");
> 
> When i comment this function i don't get the error code. When i leave it OK
> for execution y get the error code and an extra couples of plugins doesn't
> work at all. I see this error code whit the Error Console of Firefox when i
> load pmapper.
> 
> Can you help me with this please?.
> 
> Regards,
> 
> Cristian.
> ------------------------------------------------------------------------------
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> 

------------------------------------------------------------------------------
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to