Page 1 of 1
[FIXED] Errors on Joomla! Help Site - Components
Posted: Mon Mar 27, 2006 2:24 pm
by sc00zy
Re: Errors on Joomla! Help Site - Components
Posted: Mon Mar 27, 2006 2:27 pm
by eddyyanto
yeah, you were right.

gotta report this...
Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/help/public_html/mambots/content/geshi/geshi.php on line 1361
Re: Errors on Joomla! Help Site - Components
Posted: Mon Mar 27, 2006 5:55 pm
by bascherz
I've seen this too. It might just be the site's global configuration setting for error reporting is not set to NONE.
Bruce
Re: Errors on Joomla! Help Site - Components
Posted: Tue Mar 28, 2006 9:47 am
by RobInk
Thanks, have informed our Core members about this, hopefully they can restore this.
Re: Errors on Joomla! Help Site - Components
Posted: Tue Mar 28, 2006 1:07 pm
by Tom
Hmm...I Googled this and there seems to be a small bug with the geshi.php module.
EDIT!
Workaround found!
Find the lines that looks like this...
[php]$geshi = new GeSHi( $text, $lang, dirname( __FILE__ ) . '/geshi/geshi' );
if ($lines == 'true') {
$geshi->enable_line_numbers( GESHI_NORMAL_LINE_NUMBERS );
}[/php]
Make it so that it is like this...
[php]$geshi = new GeSHi( $text, $lang, dirname( __FILE__ ) . '/geshi/geshi' );
$geshi->set_encoding('iso-8859-1'); # Fixes bug with htmlentities() warning
if ($lines == 'true') {
$geshi->enable_line_numbers( GESHI_NORMAL_LINE_NUMBERS );
}[/php]
The idea is that you have to set the encoding type before you use Geshi.
I have not modified any Joomla source files, so if a Dev Team Members wants to step in and apply this little patch, then go ahead.
Re: Errors on Joomla! Help Site - Components
Posted: Thu Mar 30, 2006 1:47 am
by eddyyanto
Sorry for bringing it up. Just curious.
Is the help.joomla.org geshi bot and joomla 1.0.8 geshi bot are same?
Or has it been modified?
As i see in my local Joomla! 1.0.8 testing server, the encoding were set to null.
=================================================================================
var $encoding =
'';
// The encoding to use for htmlentities() calls--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function set_encoding ( $encoding )
{
$this->encoding
= $encoding;
}
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$result .=
$this->indent
(htmlentities($this->source, ENT_COMPAT,
$this->encoding));
=================================================================================
And what was causing this? An unrecognised character?

Re: Errors on Joomla! Help Site - Components
Posted: Thu Mar 30, 2006 6:01 am
by manuman
@ Tom,
Thanks heaps for the fix, I have applied and all seems to be good now.
Cheers
Shayne
Re: Errors on Joomla! Help Site - Components
Posted: Thu Mar 30, 2006 8:03 am
by stingrey
1.0.9 will contain the latest version of Geshi:
Geshi 1.0.7.8
This problem looks to have been an issue with Geshi 1.0.4, which we were running in 1.0.8.
I have upgraded the help site Geshi to 1.0.7.8
Re: [FIXED] Errors on Joomla! Help Site - Components
Posted: Mon Apr 10, 2006 3:31 pm
by TarantinoArchives