[FIXED] Errors on Joomla! Help Site - Components
- sc00zy
- Joomla! Enthusiast
- Posts: 106
- Joined: Thu Aug 18, 2005 9:07 am
- Location: Assen, Netherlands
- Contact:
[FIXED] Errors on Joomla! Help Site - Components
See http://help.joomla.org/content/category/12/112/159/
Press Hello World 1 - The first steps or Hello World 2 - Getting personal.
It will result in many warning messages.
Press Hello World 1 - The first steps or Hello World 2 - Getting personal.
It will result in many warning messages.
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!
http://www.welldotcom.nl - Professionele Joomla! Design, Ontwikkeling en Hosting
http://www.joomlablog.nl - Nederlands Weblog Over Joomla!
Re: Errors on Joomla! Help Site - Components
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
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
+ http://www.eddyyanto.com
Re: Errors on Joomla! Help Site - Components
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
__________________
Bruce Scherzinger
Bruce Scherzinger
Re: Errors on Joomla! Help Site - Components
Thanks, have informed our Core members about this, hopefully they can restore this.
Regards Robin - Sites & Infrastructure
Re: Errors on Joomla! Help Site - Components
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.
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.
Re: Errors on Joomla! Help Site - Components
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?
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
+ http://www.eddyyanto.com
- manuman
- Joomla! Enthusiast
- Posts: 211
- Joined: Fri Aug 12, 2005 1:58 am
- Location: Albany - Western Australia
- Contact:
Re: Errors on Joomla! Help Site - Components
@ Tom,
Thanks heaps for the fix, I have applied and all seems to be good now.
Cheers
Shayne
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
OSM Board Member :: Treasurer
Vote for Joomla! http://www.packtpub.com/nominations-homepage
- stingrey
- 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
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
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.
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.
- TarantinoArchives
- Joomla! Apprentice
- Posts: 6
- Joined: Sat Sep 17, 2005 5:58 pm
- Location: Germany
- Contact:
Re: [FIXED] Errors on Joomla! Help Site - Components
- The Quentin Tarantino Archives - http://www.tarantino.info
- The Spaghetti Western Database - http://www.spaghetti-western.net