Happy Linux Forum Index
   xlang : XOOPS Language Translation Support Module
  xlang 0.20 with ImpressCMS

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  sato-san
      sato-san
xlang 0.20 with ImpressCMS
#1
Quite a regular
Joined: 2006/5/10
From GERMANY
Posts: 49
Dear Ken-san,

thanks for update from xlang. I have installed on ImpressCMS and saved the charset.php

Now, i can not import the language files, i can see only "Token Error" without any debugger.


Thanks for help!
Posted on: 2008/12/29 5:43
Create PDF from Post Print
Top
  •  ken
      ken
Re: xlang 0.20 with ImpressCMS
#2
Webmaster
Joined: 2003/11/19
From Yokohama, Japan
Posts: 704
Quote:

i can not import the language files, i can see only "Token Error" without any debugger.


It works well in ImpressCMS 1.1

I use special way with session and token in "import the language files".
but I skimp on my work.

Do you customize session parameters ?
- Use custom session
- Use SSL for login

please get more infomation.

xlang/admin/import.php
function _execute()
{
$this->_xlang_token->original_session_start();

if ( !$this->_xlang_token->check_original_token() )
{
// add this
	print_r( $_SESSION );

	$this->_set_msg( '<h4 style="color:#ff0000;">Token Error</h4>' );
	return;
}
Posted on: 2008/12/30 21:47
Create PDF from Post Print
Top
  •  sato-san
      sato-san
Re: xlang 0.20 with ImpressCMS
#3
Quite a regular
Joined: 2006/5/10
From GERMANY
Posts: 49
Thanks a lot for your answer. We has changed the session on ImpressCMS 1.1.1 (security-bugfix).

Now, im has added your code for $session, but i can not see:

Quote:

Array ( ) Language Translation Support >> >>

System Configration
mysql charset :
charset : UTF-8
encoding from : UTF-8
mysql charset force : 0
convert flag : 0
uid :
language :
Import File
Token Error

GOTO index
GO back
execution time : 0.020 sec
memory usage : 1.123 MB


Do you have any idea?


(server informations)
Quote:

Server Information
OS: Linux server110 2.6.20-gentoo-r8 #7 SMP Wed Jul 25 18:59:32 CEST 2007 i686
MySQL: 5.0.54-log
PHP: 5.2.6
XOOPS: ImpressCMS 1.1.1 Final
include/charset.php
Show charset.php

XLANG_MY_LANGUAGE : german
XLANG_MYSQL_CHARSET : utf8
XLANG_CHARSET : utf-8
XLANG_MYSQL_CHARSET_FORCE : 0
XLANG_CONVERT_ENCODING : 0
XOOPS
language : german
_CHARSET : utf-8
MySQL
character_set_client : utf8
character_set_connection : utf8
character_set_database : utf8
character_set_filesystem : binary
character_set_results : utf8
character_set_server : latin1
character_set_system : utf8
character_sets_dir : /usr/share/mysql/charsets/
PHP
error_reporting: 6143
display_errors: 1
magic_quotes_gpc: 1

iconv: loaded
input_encoding : ISO-8859-1
output_encoding : ISO-8859-1
internal_encoding : ISO-8859-1

mbstring: loaded
internal_encoding : ISO-8859-1
http_input :
http_output : pass
func_overload : 0
func_overload_list : no overload
mail_charset : UTF-8
mail_header_encoding : BASE64
mail_body_encoding : BASE64
illegal_chars : 0
encoding_translation : Off
language : neutral
detect_order : ASCII UTF-8
substitute_character : 63
strict_detection : Off

Powered by Happy Linux
execution time : 0.053 sec
memory usage : 5.071 MB
Posted on: 2008/12/31 4:04
Create PDF from Post Print
Top
  •  ken
      ken
Re: xlang 0.20 with ImpressCMS
#4
Webmaster
Joined: 2003/11/19
From Yokohama, Japan
Posts: 704
Quote:

Array ( )


It means to fail session start.


Quote:

ImpressCMS 1.1.1 (security-bugfix).


session name is changed in 1.1.1


I change CVS. Try this.
http://xoops.cvs.sourceforge.net/xoops/modules/rssc/modules/xlang/
- admin/index.php
- admin/import.php
- class/token.php
- class/xoops_config_handler.php
Posted on: 2008/12/31 22:27
Create PDF from Post Print
Top
  •  sato-san
      sato-san
Re: xlang 0.20 with ImpressCMS
#5
Quite a regular
Joined: 2006/5/10
From GERMANY
Posts: 49
Dear Ken-san,
お誕生日おめでとうございます。

Im use your SVN Code now and can see the follow error:
Quote:

Fatal error: Class 'xlang_xoops_config_handler' not found in /srv/www/htdocs/webx/wwwroot/cms/impresscms_111_final_ger/root/modules/xlang/class/token.php on line 177


Thanks again for your hard work. But you have time for bugfixing, im travel to vietnam + hongkong.
Posted on: 2009/1/2 0:10
Create PDF from Post Print
Top
  •  sato-san
      sato-san
Re: xlang 0.20 with ImpressCMS
#6
Quite a regular
Joined: 2006/5/10
From GERMANY
Posts: 49
Wrong Kanji ... akemashite omedetou gozaimasu.
Posted on: 2009/1/2 6:33
Create PDF from Post Print
Top
  •  ken
      ken
Re: xlang 0.20 with ImpressCMS
#7
Webmaster
Joined: 2003/11/19
From Yokohama, Japan
Posts: 704
Quote:

Fatal error: Class 'xlang_xoops_config_handler' not found in token.php on line 177


It is odd.
xlang works well with CVS files.

try again !
you MUST update 4 files.
Posted on: 2009/1/11 18:31
Create PDF from Post Print
Top
  •  ken
      ken
Re: xlang 0.20 with ImpressCMS
#8
Webmaster
Joined: 2003/11/19
From Yokohama, Japan
Posts: 704
Quote:

akemashite omedetou gozaimasu.


reply in new topic
2009 happy new year
Posted on: 2009/1/11 19:07
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.
Donation
If you are satisfied with the distributed softwares, please donate us.
PageRank in each page
http://linux2.ohwada.net/ modules/newbb/viewtopic.php?
PageRank 0 PageRank
Main Menu
Login
Username:

Password:


Lost Password?

Register now!