[FIXED] Errors on Joomla! Help Site - Components

If you have any 'mechanical' forum or Joomla! sites related issues/suggestions, please contact the Sites & Infrastructure Workgroup here.

Moderators: brad, Tonie

Forum rules
Forum Rules
READ ME <-- please read before posting, this means YOU.
Post Reply
User avatar
sc00zy
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 106
Joined: Thu Aug 18, 2005 9:07 am
Location: Assen, Netherlands
Contact:

[FIXED] Errors on Joomla! Help Site - Components

Post by sc00zy » Mon Mar 27, 2006 2:24 pm

Last edited by stingrey on Thu Mar 30, 2006 8:03 am, edited 1 time in total.
Arjan Menger
http://www.welldotcom.nl - Professionele Joomla! Design, Ontwikkeling en Hosting
http://www.joomlablog.nl - Nederlands Weblog Over Joomla!

User avatar
eddyyanto
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Tue Jan 17, 2006 7:42 am
Contact:

Re: Errors on Joomla! Help Site - Components

Post by eddyyanto » Mon Mar 27, 2006 2:27 pm

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
+ what's great about open-source? kindness of sharing
+ http://www.eddyyanto.com

User avatar
bascherz
Joomla! Intern
Joomla! Intern
Posts: 86
Joined: Mon Jan 16, 2006 1:33 am
Location: Vienna, VA
Contact:

Re: Errors on Joomla! Help Site - Components

Post by bascherz » Mon Mar 27, 2006 5:55 pm

I've seen this too. It might just be the site's global configuration setting for error reporting is not set to NONE.

Bruce
__________________
Bruce Scherzinger

User avatar
RobInk
Joomla! Guru
Joomla! Guru
Posts: 517
Joined: Thu Aug 18, 2005 10:41 am
Location: The Netherlands

Re: Errors on Joomla! Help Site - Components

Post by RobInk » Tue Mar 28, 2006 9:47 am

Thanks, have informed our Core members about this, hopefully they can restore this.
Regards Robin - Sites & Infrastructure

User avatar
Tom
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Thu Aug 18, 2005 1:08 pm
Location: Cleveland, OH

Re: Errors on Joomla! Help Site - Components

Post by Tom » Tue Mar 28, 2006 1:07 pm

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.
Last edited by Anonymous on Tue Mar 28, 2006 1:34 pm, edited 1 time in total.
Tom Parkison
Rochen Staff Member
http://www.rochen.com

User avatar
eddyyanto
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Tue Jan 17, 2006 7:42 am
Contact:

Re: Errors on Joomla! Help Site - Components

Post by eddyyanto » Thu Mar 30, 2006 1:47 am

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?  :)
Last edited by eddyyanto on Thu Mar 30, 2006 1:49 am, edited 1 time in total.
+ what's great about open-source? kindness of sharing
+ http://www.eddyyanto.com

User avatar
manuman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Fri Aug 12, 2005 1:58 am
Location: Albany - Western Australia
Contact:

Re: Errors on Joomla! Help Site - Components

Post by manuman » Thu Mar 30, 2006 6:01 am

@ Tom,

Thanks heaps for the fix, I have applied and all seems to be good now.

Cheers
Shayne
Core Team Member :: Project Manager & Foundation WG Coordinator
OSM Board Member :: Treasurer
Vote for Joomla! http://www.packtpub.com/nominations-homepage

User avatar
stingrey
Joomla! Engineer
Joomla! Engineer
Posts: 360
Joined: Mon Aug 15, 2005 4:36 pm
Location: Marikina, Metro Manila, Philippines
Contact:

Re: Errors on Joomla! Help Site - Components

Post by stingrey » Thu Mar 30, 2006 8:03 am

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
Joomla! Core Team Member
Software Coding and Design - Stability Team Leader

God grant me the Serenity to Accept the things I cannot change, the Courage to change the things I can and the Wisdom to know the Difference.

User avatar
TarantinoArchives
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Sep 17, 2005 5:58 pm
Location: Germany
Contact:

Re: [FIXED] Errors on Joomla! Help Site - Components

Post by TarantinoArchives » Mon Apr 10, 2006 3:31 pm



Post Reply