Page 1 of 1

GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 8:29 am
by Lux
Hi

I think with the update from 0.70 to 0.80 something went wrong.

If you take a look here: http://www.deimeke.net/dirk/blog/index. ... n-....html

The source for this is the following:

Code: Select all

[geshi lang=perl]
$CPAN::Config = {
	'build_cache' => q[10],
	'build_dir' => q[~/.cpan/build],
	'cache_metadata' => q[1],
	'cpan_home' => q[~/.cpan],
	'cpan_version_check' => q[1],
	'dontload_hash' => {  },
	'ftp' => q[/usr/bin/ftp],
	'ftp_proxy' => q[],
	'getcwd' => q[cwd],
	'gpg' => q[/usr/bin/gpg],
	'gzip' => q[/bin/gzip],
	'histfile' => q[~/.cpan/histfile],
	'histsize' => q[100],
	'http_proxy' => q[],
	'inactivity_timeout' => q[0],
	'index_expire' => q[1],
	'inhibit_startup_message' => q[0],
	'keep_source_where' => q[~/.cpan/sources],
	'lynx' => q[/usr/bin/lynx],
	'make' => q[/usr/bin/make],
	'make_arg' => q[],
	'make_install_arg' => q[UNINST=0],
	'makepl_arg' => q[PREFIX=~/PerlMod/lib LIB=~/PerlMod/lib INSTALLMAN1DIR=~/PerlMod/man/man1 INSTALLMAN3DIR=~/PerlMod/man/man3],
	'ncftpget' => q[/usr/bin/ncftpget],
	'no_proxy' => q[],
	'pager' => q[/usr/bin/less],
	'prerequisites_policy' => q[ask],
	'scan_cache' => q[atstart],
	'shell' => q[/bin/bash],
	'tar' => q[/bin/tar],
	'term_is_latin' => q[0],
	'unzip' => q[/usr/bin/unzip],
	'urllist' => [q[http://cpan.mirror.solnet.ch]],
	'wget' => q[/usr/bin/wget],
};
1;
__END__[/geshi]
All was good before the update.

Any help is appreciated.

Cheers

Dirk

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 10:59 am
by garvinhicking
Hi!

What exactly is wrong? At first look, the code does long in order to me - what do I need to look for specifically?

Regards,
Garvin

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 12:18 pm
by Lux
Hi Garvin,

this is what GeShi makes otu of the first line

Code: Select all

'build_cache' => {FNAMEL}.html">q[10],
There is no reference to "{FNAME}.html" in the code.

Thanks for your support

Dirk

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 2:10 pm
by garvinhicking
Hi!

Hm, could be that other markup plugins are interfering. Which ones are you using? Try to place geshi as the very first or the very last markup plugin?

It seems {FNAME} is a new Geshi functio that prefixes perl function names and links them to the documentation of perl.

Regards,
Garvin

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 2:32 pm
by Lux
Hi Garvin

This is the order of formatting plugins I use
- Textformatierung: GeSHi
- Textformatierung: NL2BR
- Textformatierung: Serendipity
- Textformatierung: Smilies

No change when I reorder them.
garvinhicking wrote:It seems {FNAME} is a new Geshi functio that prefixes perl function names and links them to the documentation of perl.
Is it possible to deactivate this behaviour?

Many thanks!

Cheers

Dirk

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 2:36 pm
by garvinhicking
Hi!

Which other event plugins do you use? Maybe you are using the extended properties caching? In this case, changing the order will not immediately change the outuput unless you rebuild the cache.
Is it possible to deactivate this behaviour?
Sadly I know nothing of GeShi - I only updated the library because I did not expect such a change, and there was a bug in older geshi versions that was fixed with the newer version...

Regards,
Garvin

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 2:49 pm
by Lux
No, I do not use that plugin.

Do I have any chance to use the old plugin again?

Cheers

Dirk

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 3:01 pm
by garvinhicking
Hi!

Did you overread my question about which other event plugins you are using?

I just used your code to reproduce the situation on my blog, with the markup plugins you mentioned - it works fine there. So there must be some event plugin interfering in your case.

Regards,
Garvin

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 3:28 pm
by Lux
garvinhicking wrote:Did you overread my question about which other event plugins you are using?
Yes, sorry for that!

These are all event-plugins I am using:

1. Textformatierung: GeSHi
2. Textformatierung: NL2BR
3. Textformatierung: Serendipity
4. Textformatierung: Smilies
5. Browser-Kompatibilität
6. Spamschutz
7. Statistiken
8. Smilie-Auswahlleiste
9. Spartacus
10. Suchmaschinen-Sitemap Generator
11. Spamschutz (SURBL)
12. Spamschutz (RBL)
13. Freie Artikel-Tags
14. Statische Seiten
15. Sample!
16. Dashboard
17. Einträge ankündigen
18. Einträge via XML-RPC erstellen

Cheers

Dirk

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 3:52 pm
by garvinhicking
Hi!

Just as a test, could you move Geshi as the VERY last plugin of them all?

Apart from that, I'm not sure what is happening here. Could it be that the latest geshi plugin version is not complete on your server? Could you try the ZIP file from http://spartacus.s9y.org/cvs/additional ... _geshi.zip and extract those files over your plugin directory?

Regards,
Garvin

Re: GeSHi 0.8 defect?

Posted: Tue Mar 03, 2009 4:03 pm
by Lux
garvinhicking wrote:Just as a test, could you move Geshi as the VERY last plugin of them all?
Did that. Nothing changed.
garvinhicking wrote:Apart from that, I'm not sure what is happening here. Could it be that the latest geshi plugin version is not complete on your server? Could you try the ZIP file from http://spartacus.s9y.org/cvs/additional ... _geshi.zip and extract those files over your plugin directory?
Issue solved

Thanks a lot, the new download did it right.

Cheers

Dirk

Re: GeSHi 0.8 defect?

Posted: Wed Apr 22, 2009 6:55 am
by ms-k
GeSHi 0.8 with PHP mode does not work.
Links to Manual in php.net are bloken.

I think /serendipity_event_geshi/geshi/php.php has an incorrect line.

Code: Select all

'URLS' => array(
        1 => '',
        2 => '',
        3 => 'http://www.php.net/{FNAMEL}'  //here
        ),
I changed this line as folows.
And now GeSHi is working.

Code: Select all

3 => 'http://www.php.net/{FNAME}':code

ps. I'm sorry for my bloken English. I cannot use English well :cry: